Asteroids

Show off your games, demos and other (playable) creations.
Post Reply
iemfi
Citizen
Posts: 52
Joined: Fri Mar 30, 2012 11:03 am

Asteroids

Post by iemfi »

Asteroid mining has been big in the news lately. I'm thinking some sort of simple hard science asteroid mining game. I want all 600k known asteroids and the ability to zoom in and interact with each of them... Or something like that, what do you guys think?

Here's something I hacked together of all asteroids over 10km in diameter with the help of ftp://ftp.lowell.edu/pub/elgb/astorb.html. Mesmorizing, Just mind boggling how big space is!
Attachments
asteroids.love
(112.17 KiB) Downloaded 248 times
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Asteroids

Post by Nixola »

Is that white 5 at the top-left corner the FPS counter?
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: Asteroids

Post by kikito »

iemfi wrote:I want all 600k known asteroids and the ability to zoom in and interact with each of them... Or something like that, what do you guys think?
600k is very ambitious. I think the number you have now is enough for doing lots of stuff. You can probably still trim it down a bit. But well done!
When I write def I mean function.
User avatar
Jasoco
Inner party member
Posts: 3726
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Asteroids

Post by Jasoco »

Nixola wrote:Is that white 5 at the top-left corner the FPS counter?
No. The number stays at 5 for some reason no matter what. It runs much smoother and faster in LuaJIT. Does this use DT? I guess I should look at the code.

Edit: Haha.. I found the problem..

Code: Select all

love.graphics.print(5,5,love.timer.getFPS())
Guess where the problem lies.
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Asteroids

Post by Nixola »

Probably, it won't change so much on my PC
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
User avatar
josefnpat
Inner party member
Posts: 955
Joined: Wed Oct 05, 2011 1:36 am
Location: your basement
Contact:

Re: Asteroids

Post by josefnpat »

Jasoco wrote:
Nixola wrote:Is that white 5 at the top-left corner the FPS counter?
No. The number stays at 5 for some reason no matter what. It runs much smoother and faster in LuaJIT. Does this use DT? I guess I should look at the code.

Edit: Haha.. I found the problem..

Code: Select all

love.graphics.print(5,5,love.timer.getFPS())
Guess where the problem lies.
Now there's a mistake I'd be happy to make, although with a little modification:

Code: Select all

love.graphics.print(60,5,love.timer.getFPS())
Missing Sentinel Software | Twitter

FORCIBLY IGNORED.
<leafo> when in doubt delete all of your code
<bartbes> git rm -r *
<bartbes> git commit -m "Fixed all bugs"
<bartbes> git push
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest