When I don't have any points, everything's perfectly fine. But when I make the game draw points, But only they appear on screen. Nothing else gets drawn anymore. :/
Here's code:
Code: Select all
function love.draw()
love.graphics.clear()
love.graphics.setColor(255,255,255)
love.graphics.setPointSize(2)
for i=0, StarCount, 1 do
love.graphics.point(0.5+StarPos[i][1],0.5+StarPos[i][2])
end
Ship:Draw()
end
Code: Select all
function Ship:Draw()
love.graphics.setColor(255,255,255)
love.graphics.print(Ship.Angle,200,200)
love.graphics.translate(Ship.X,Ship.Y)
love.graphics.rotate(math.rad(Ship.Angle))
love.graphics.line(-15, 15, 0, -25)
love.graphics.line(0, -25, 15, 15)
love.graphics.line(-15, 15, 0, 0)
love.graphics.line(0, 0, 15, 15)
end