Share your repls and programming experiences

← Back to all posts
The Helicopter Game
RhinoRunner (145)

Move the helicopter around with the arrow keys. Try to beat all of the 3 levels. Click the screen to start. Use the following link to play it in a larger window. https://repl.it/@RhinoRunner/The-Helicopter-Game?lite=1&outputonly=1

Commentshotnewtop
thewaydu (12)

Fun!, could use a few updates though.

RhinoRunner (145)

@thewaydu what would you like me to add?

thewaydu (12)

@RhinoRunner, its fun, but it displays a lot of error, and its a bit laggy, but other then that it is a great game.

RhinoRunner (145)

@thewaydu yeah the errors are primarily because of something to do with the sound card, even though there is no sound.

LTI2 (113)

Why is the government hunting me down with missiles and all that anyway? @RhinoRunner lol

RhinoRunner (145)

@LTI2 you stole some canned beanos from them.

LTI2 (113)

@RhinoRunner what i hate beans but i do remember stealing their burritos, and farted a lot

RhinoRunner (145)

@LTI2 not beans, beanos. Look up "beanos"

RhinoRunner (145)

@LTI2 No no no this is beanos

LTI2 (113)

@RhinoRunner oh sorry not drug beans, beans on drugs

LTI2 (113)

@RhinoRunner also stole their beano and beans

RahulChoubey1 (62)

What's with all of the <Event(number-eventname dict)>? Is it for debugging?

RahulChoubey1 (62)

@RhinoRunner In this view on the bottom right

firefish (794)

@RahulChoubey1 That is the event of the mouse moving. pygame for some reason prints it. (or I cannot find the code that prints it)#

EDIT:

RhinoRunner (145)

@RahulChoubey1 by using print(event) I can tell what is happening, such as when an enemy spawns it will print "<Event(25-UserEvent {'code': 0})>". It is mostly just for when I'm making the game I'll know if something is wrong.

bluemoon46 (2)

@RhinoRunner, I learned that today. I made a snake game.

NisheshBasam (5)

Fun game, but I suggest you add more realistic details like when the helicopter hits something it gets damaged. You should also add different maps.

RhinoRunner (145)

@NisheshBasam Technically, the different maps are just the background color changing.

noordabe (7)

Is there a way to shoot at the enemies?

noordabe (7)

@NisheshBasam Nonetheless, can you give me a quick rundown on all of the other controls?

NisheshBasam (5)

@noordabe, If you press enter, the game will start and you can just use the arrows to control the helicopter

RhinoRunner (145)

@NisheshBasam Actually you press the screen to play. Enter does nothing.

NisheshBasam (5)

@RhinoRunner For me it works if I press enter so it might just depend on what device you're on.

BotProgrammer (8)

Maybe make an explosion when you get hit and maybe different types of explosions for a different type of weapon/missile/bomb

Pythonator01 (2)

With a little more work, this could be awesome!

CT2224 (141)

Actually, this is quite impressive.

DanielGreynold1 (2)

ay man i think you got the wrong beat

DanielGreynold1 (2)

@RhinoRunner What the-!
Ay man, I think you got the wrong beat (No I don't)
So you sampled the song from SpongeBob? (Sure did!)
Hey (hey hey)
Oh (oh oh oh)
Ok ok I'm wit it now
Yeah, yeah

[Verse]
I gotta count up, count up, count up, count up
These racks I made today
If you ain't talking 'bout money man get out my damn face
I got cash, cash, cash means money to my bank
If you ain't gonna dance for cash lil' mama then you will not get paid
I'm gon' blow ten grand, these bands gon' make her dance
Runnin' runnin' runnin' runnin' to the money like I'm Spongebob
Just like he know the Krabby Patty formula I just be cookin' up straight bars
Then dig cash like I'm Mr. Krabs
I might just drive by the bank tomorrow
Do I go dumb I go stupid don't know what I'm doin' I feel like I'm Patrick Star
That's that Migo's flow right there and nobody can hear me
But, back on topic, got the top down, lock it
Got a bad thang waiting on me (Yeah, yeah)
Start flexin' on the gram you ain't gang, yeah
I ain't wastin' yo time, baby, you gotta drop that line, baby
Get on yo grind, baby, that flexin' ain't gon' help, baby
Had to call you out, yo, I had to call you out, yo
I had to call you out, yo

[Outro]
Holy Tony gone (gone gone)
Oh!

jianglele (5)

I found a place where pretty much no planes and obstacles go

RhinoRunner (145)

@jianglele the enemies spawn randomly across the right side of the screen. Chances are, you got lucky and very few enemies spawned in front of you.

jianglele (5)

@RhinoRunner you used "import random" right?

RhinoRunner (145)

@jianglele yes. Specifically I used random.randint

jianglele (5)

@RhinoRunner i don't rly know the difference between pygame and python, I kjust started pygame and i don't know the difference

RhinoRunner (145)

@jianglele pygame is just a module inside of python. Python is the actual coding language.

computerboi (2)

the further I got it got more laggy but besides that nice game

ThisUserTaken (232)

kinda like those space invaders tutorial except dif pictured and its along x axis but still good job!

hello1964 (26)

It's kind of laggy. Try to stop the printing in the console, I think that will help

noordabe (7)

Stupid question: How do you code in one of those UIs? I would really like to learn that. Is it from the pygame library or something? If so how do I import it?

RhinoRunner (145)

@noordabe just put in import pygame to import it. This site helped a lot on understanding it -> https://pythonprogramming.net/pygame-python-3-part-1-intro/

w00139 (1)

@RhinoRunner cool but slightly laggy. great coding though!

abdullahrajput9 (247)

Great game @RhinoRunner but you should add score and a leader board to make the game perfect.

Leroy01010 (388)

laws of physics Death broken

vismodo (3)

You could make the screen go blank when the loser crashes and say 'Game Over' instead of 'You Died'. Also, add a nice background of clouds for your background.

RhinoRunner (145)

@vismodo I will add something like that, thanks!

RolandJLevy (649)

Hey @RhinoRunner, Well done - I think your game is great. How long did it take you to make it?

RhinoRunner (145)

@rjlevy It took me about a week to make. I was still in the process of learning pygame and as I was I just kept on adding too it.

RolandJLevy (649)

@RhinoRunner, nice job. I like the fact that you took the time to use some cool graphics.

When I tried to view it in a new window, following this link I got errors. Why don't you put this link in the description so people can enjoy the game in a larger window?

dog123456789 (1)

how do we jone the zoom meting