Share your repls and programming experiences

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

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

Fun!, could use a few updates though.

RhinoRunner (112)

@thewaydu what would you like me to add?

thewaydu (10)

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

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

LTI2 (95)

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

RhinoRunner (112)

@LTI2 you stole some canned beanos from them.

LTI2 (95)

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

RhinoRunner (112)

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

LTI2 (95)

@RhinoRunner beanos are drug beans

RhinoRunner (112)

@LTI2 No no no this is beanos

LTI2 (95)

@RhinoRunner oh sorry not drug beans, beans on drugs

LTI2 (95)

@RhinoRunner also stole their beano and beans

RahulChoubey1 (29)

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

RahulChoubey1 (29)

@RhinoRunner In this view on the bottom right

firefish (589)

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

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

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

NisheshBasam (1)

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

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

noordabe (2)

Is there a way to shoot at the enemies?

noordabe (2)

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

NisheshBasam (1)

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

RhinoRunner (112)

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

NisheshBasam (1)

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

BotProgrammer (7)

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

Pythonator01 (1)

With a little more work, this could be awesome!

KirikAltekar (222)

Actually, this is quite impressive.

computerboi (1)

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

ThisUserTaken (121)

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

hello1964 (23)

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

noordabe (2)

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

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

@RhinoRunner cool but slightly laggy. great coding though!

abdullahrajput9 (22)

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

Leroy01010 (373)

laws of physics Death broken

RhinoRunner (112)

@Leroy01010 yeah the hitbox can be weird sometimes.

vismodo (2)

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

@vismodo I will add something like that, thanks!

RolandJLevy (499)

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

RhinoRunner (112)

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

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

how do we jone the zoom meting

JakeHu2 (0)

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

RhinoRunner (112)

@JakeHu2 Make sure you click on the game window first

RhinoRunner (112)

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