This game is a pretty awesome survival game. it is a bit like copter but once i am done it will have bombs, explosions and more. but sadly it would be much to quick to play so soon i will have to add delta time, all though it would be nice for someone to explain delta time to me, because on my pong quest game, i tried using delta time but it did not work so i had to use a less effective form of slowing down the game. this is my second game so i have not had much experience with collisions so i have not made the ground and ceiling change like in copter.
press up to go up. I now fixed the problem of going down right when you press enter. i am pretty sure i have delta time working. i am very sure that fast flight works on all computers now, to learn info about fastflight you can see my techono team at techono.weebly.com
good news! a update has came out! oh no you are about to hit a block, wait you have bomb!
in this new update, dodge 6 blocks and earn a bomb. than all you have to do is press right and you will fire your bomb
now you can store the scores of your last 2 games and try to beat them, you cant save the scores though.
there is now music
There is a store now! at this store you can buy new types of helicopters, and dual bombs so that you can have two bombs at a time
Note: I need a composer that would like to make a song for this game!
CONTROLS:
up arrow: move up
right arrow: fire bomb
(if you have dual bomb)left: fire bomb
w: enter store
e:leave store
1-9: buy items at store
enter: start game
fastflight
fastflight
- Attachments
-
- fastflight.love
- stores! yay!
- (3.25 MiB) Downloaded 192 times
-
- fastflight.love
- i am keeping this so that people with slow internet.
- (57.23 KiB) Downloaded 117 times
Last edited by musky44 on Thu Mar 07, 2013 12:11 am, edited 14 times in total.
- baconhawka7x
- Party member
- Posts: 494
- Joined: Mon Nov 21, 2011 7:05 am
- Location: Oregon, USA
- Contact:
Re: free flight
I like it.
It's kind of annoying that you fall immediately after spawning and have to hold up while pushing enter.
It's kind of annoying that you fall immediately after spawning and have to hold up while pushing enter.
Re: free flight
thanks, i will try to fix that problem.
Re: free flight
Delta time's purpose isn't slowing down your game, It's purpose is making your games speed consistent on different computers. If i read your code right, You should be using it in places like "fall=fall-1" Change that to "fall=fall-1 * dt" and you'll be good. (this will be extremely slow, so change the 1 to something higher)
As for the game, It's not bad. I would recommend you learn how to set up your game better, and how to use game states etc. Once your games get more advanced, your code will get longer, And having it all in main.lua might make it a bit hard to work with.
As for the game, It's not bad. I would recommend you learn how to set up your game better, and how to use game states etc. Once your games get more advanced, your code will get longer, And having it all in main.lua might make it a bit hard to work with.
-
- Citizen
- Posts: 65
- Joined: Sat Dec 22, 2012 8:17 am
Re: fastflight
If you add a number multiplied by delta time to a variable, ideally you will end up with that number added over the course of a second.
So will result in 10 being added to x over the course of a second.
This decouples the frames per second on any specific computer from the speed of the game logic (if the FPS is higher, dt is lower, if the FPS is lower, dt is higher, think on how that effects the above equation).
I wrote ideally because this isn't actually true, but it's probably enough accurate for your every day use.
So
Code: Select all
x = x + 10 * dt
This decouples the frames per second on any specific computer from the speed of the game logic (if the FPS is higher, dt is lower, if the FPS is lower, dt is higher, think on how that effects the above equation).
I wrote ideally because this isn't actually true, but it's probably enough accurate for your every day use.
Re: fastflight
if you want, post your high scores and see who can get the best scores on fast flight.!
Who is online
Users browsing this forum: No registered users and 6 guests