World Aviator is a little top-down flight game I've been working on for the past two weeks. It has landing, crashing, refueling & two maps!
But it also doesn't have a rotating plane image, sounds, a working speedbreak or a map changing menu.
It still needs a lot of work!
Controls:
A to turn right
D to turn left
W to throttle up
S to throttle down
E to raise flaps
Q to lower flaps
T to raise landing gear
G to lower landing gear
1 & 2 to switch between maps.
1 is for USVI & surrounding islands
2 is for BETA ISLAND
While landed, press F to refuel.
Try it out!
World Aviator!
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: World Aviator!
Four remarks:
Oh, and, for everyone else playing this: be sure to retract your landing gear while on the ground, fun times!
- You can't steer and change the throttle at the same time, perhaps some elseifs that are supposed to be ifs?
- You can't see yourself on the minimap.
- Being able to land anywhere isn't as good for my ego when I land on an airstrip.
- The plane "blip" doesn't indicate a direction.
Oh, and, for everyone else playing this: be sure to retract your landing gear while on the ground, fun times!
Re: World Aviator!
I can't see the first map, I'm on a giant, blank, white land. The second works
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
- Jasoco
- Inner party member
- Posts: 3726
- Joined: Mon Jun 22, 2009 9:35 am
- Location: Pennsylvania, USA
- Contact:
Re: World Aviator!
Power of 2 strikes again! Whither thou 0.8.0? Comest and saveth us from this curse!
Re: World Aviator!
I have that issue too, when it comes to steering most of my code is "if k == 'a', direction=direction+1" type stuff. What would I do to allow multiple keypresses?bartbes wrote:Four remarks:Other than that, I like where this is going.
- You can't steer and change the throttle at the same time, perhaps some elseifs that are supposed to be ifs?
- You can't see yourself on the minimap.
- Being able to land anywhere isn't as good for my ego when I land on an airstrip.
- The plane "blip" doesn't indicate a direction.
Oh, and, for everyone else playing this: be sure to retract your landing gear while on the ground, fun times!
For landing on the airstrip, is there some way to detect what color is underneath the plane, or would I use a hit detection type setup?
Seems weird that it wouldn't show up, is there a "landmass.png" in the map1 folder?Nixola wrote:I can't see the first map, I'm on a giant, blank, white land. The second works
I don't know if this would be an issue, but are you using the 0.8.0 love files?
Re: World Aviator!
I tried both love and love-unstable (after reinstalling it, it removed itself '-'); with love I have the issue above, with love-unstable (0.8.0) the map is white. And it doesn't read keyboard input. I think I'll extract the .love file tomorrow, it's 1:17 AM here
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: World Aviator!
You could use ImageData:getPixel, or indeed compare against a few defined rectangles.Jack wrote: For landing on the airstrip, is there some way to detect what color is underneath the plane, or would I use a hit detection type setup?
Re: World Aviator!
I saw the example about issues with images that aren't divisible by 2, I could use that to fix the white boxes issue.
But for the getPixel, I don't really understand how it works. Would I call it in the update function?
But for the getPixel, I don't really understand how it works. Would I call it in the update function?
Re: World Aviator!
Nice work so far. Interesting project for LOVE portfolio of games.
It's for now a bit strange we start landed in plain sea. Bartbes suggestion will fit as a charm for land/sea/runway detection!
It's for now a bit strange we start landed in plain sea. Bartbes suggestion will fit as a charm for land/sea/runway detection!
Wait, shouldn't we retract the landing gear only in air?be sure to retract your landing gear while on the ground
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: World Aviator!
If you've loaded the map as ImageData, and you want to check if a certain pixel is runway, you use getPixel to find the color value at that spot, and compare it to the runway color.Jack wrote:But for the getPixel, I don't really understand how it works. Would I call it in the update function?
Which is exactly why you should try it.coffee wrote: Wait, shouldn't we retract the landing gear only in air?
Who is online
Users browsing this forum: Majestic-12 [Bot] and 0 guests