Share your repls and programming experiences

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

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
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 (143)

@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 (143)

@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 (143)

@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 (143)

@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/

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 (143)

@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 (143)

@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.

w00139 (1)

@RhinoRunner cool but slightly laggy. great coding though!

BotProgrammer (8)

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

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

Pythonator01 (2)

With a little more work, this could be awesome!

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 (143)

@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 (143)

@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

JakeHu2 (1)

How do you start? I pressed all the keys and nothing is working.

RhinoRunner (143)

@JakeHu2 Make sure you click on the game window first

CT2224 (141)

Actually, this is quite impressive.

RhinoRunner (143)

@RahulChoubey1 yeah there isn't a pause button... yet

ridark (106)

Go to the link here to have a BIG screen to play on: LINK

SILASRONCANCIO (1)

Wait... I don't see how there's levels though.

RhinoRunner (143)

@SILASRONCANCIO If you go long enough, it will say "level 1 completed" and bring you to a harder level. There are 3 levels.

LTI2 (113)

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

RhinoRunner (143)

@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 (143)

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

RhinoRunner (143)

@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