Search found 2 matches

by Torbaz
Mon May 28, 2018 11:30 pm
Forum: Support and Development
Topic: (Solved) No objects are being drawn
Replies: 3
Views: 2704

Re: No objects are being drawn

So maybe I'm just not pairing them up properly but you have a stray end at the end of the file. Is all of the code you shown wrapped in another function? Edit: found it. Remove the end at the end of the file and add after the end for enemy:fire(). You ended the if statement but did not end the func...
by Torbaz
Mon May 28, 2018 10:06 am
Forum: Support and Development
Topic: (Solved) No objects are being drawn
Replies: 3
Views: 2704

(Solved) No objects are being drawn

enemy = {} enemies_controller = {} enemies_controller.enemies = {} function love.load() player = {} player.x = 0 player.y = 575 player.bullets = {} player.cooldown = 40 player.speed = 5 player.fire = function() if player.cooldown <= 0 then player.cooldown = 40 bullet = {} bullet.x = player.x + 35 b...