Search found 2 matches
- Sun Jun 11, 2017 12:52 am
- Forum: Games and Creations
- Topic: Cactus game.
- Replies: 37
- Views: 36206
Re: Cactus game.
You can stop the score text from jittering by formating the string to always have two decimal places and using a monospace font: change line 203 in game.lua to self.distanceText:setText(string.format("%.2f", math.floor(self.distance * 100) / 100)) BPdots Square bold http://www.1001fonts.co...
- Fri May 19, 2017 1:14 pm
- Forum: Support and Development
- Topic: how do i spawn multiple objects by clicking
- Replies: 2
- Views: 2476
Re: how do i spawn multiple objects by clicking
You are not storing the positions of the box as you create them. As a result you will only ever see one box. You should store them in the objects array you created. You should also call love.draw() outside of other functions. This is more idiomatic and will help with code structure as your game incr...