Search found 4 matches

by ender
Wed Feb 21, 2024 10:59 am
Forum: General
Topic: why am i getting the error:
Replies: 2
Views: 1215

why am i getting the error:

Compilation error on line 146: C:\Users\admin\Downloads\work.love\main.lua:146: 'end' expected (to close 'function' at line 53) near '<eof>' my code is: function love.load() --best score 111 bomb_c = love.graphics.newImage("bomb.png") player_c = love.graphics.newImage("panda.png"...
by ender
Fri Feb 02, 2024 10:36 am
Forum: General
Topic: why is my code not working? (i am following sheepolution tutorial on how to make a game)
Replies: 2
Views: 966

why is my code not working? (i am following sheepolution tutorial on how to make a game)

function Player:keyPressed(key) if key == "space" then --to test\/ print("player.x, player.y", self.x, self.y) --to test/\ table.insert(listOfBullets, Bullet(self.x, self.y)) --also to test \/ for i,v in ipairs(listOfBullets) do --v:update(dt) print (i,v.x, v.y) end end end and i...