If anyone got interested on my game, here's the .love
Like I said, is something very simple. Actually it's the second graphic game I ever do.
Search found 3 matches
- Tue Sep 06, 2011 5:20 am
- Forum: Support and Development
- Topic: [solved] math.random problem
- Replies: 4
- Views: 2318
- Tue Sep 06, 2011 4:14 am
- Forum: Support and Development
- Topic: [solved] math.random problem
- Replies: 4
- Views: 2318
Re: math.random problem
Wow, thank you very much. It's working now!
Maybe I'll post the complete code of my game when it's ready. It's something simple (and not very original) about a triangle as a spaceship and some polygons as asteroids enemies.
Maybe I'll post the complete code of my game when it's ready. It's something simple (and not very original) about a triangle as a spaceship and some polygons as asteroids enemies.
- Tue Sep 06, 2011 3:45 am
- Forum: Support and Development
- Topic: [solved] math.random problem
- Replies: 4
- Views: 2318
[solved] math.random problem
Hey, I'm very new to Lua and LOVE and this forum ^^ ... so I've got this piece of code: function new_enemies() local enemy = {} for i = 1,nof_enemies do enemy.radius = math.random(10, 35) enemy.x = math.random(0 + enemy.radius, 800 - enemy.radius) enemy.y = math.random(0 + enemy.radius, 200) enemy.s...