Search found 3 matches

by thebatzuk
Tue Sep 06, 2011 5:20 am
Forum: Support and Development
Topic: [solved] math.random problem
Replies: 4
Views: 2269

Re: [solved] math.random problem

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.
by thebatzuk
Tue Sep 06, 2011 4:14 am
Forum: Support and Development
Topic: [solved] math.random problem
Replies: 4
Views: 2269

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.
by thebatzuk
Tue Sep 06, 2011 3:45 am
Forum: Support and Development
Topic: [solved] math.random problem
Replies: 4
Views: 2269

[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...