7 player = Player:new({position=vec2:new(100,100), vector=Player.vectors.right})
12 local bgcolor = {0.2, 0.2, 0.5}
13 love.graphics.setBackgroundColor(bgcolor)
16 love.graphics.setColor(0.3, 0.3, 0.6)
17 local width = love.graphics.getWidth()
18 local height = love.graphics.getHeight()
21 for x=0,width,delta do
22 love.graphics.line(x, 0, x, height)
25 for y=0,height,delta do
26 love.graphics.line(0, y, width, y)
33 function love.update(dt)
34 if love.keyboard.isDown('escape') then
41 print('Thanks for playing!')
42 print('Recorded ' .. #player.path / 2 .. ' player path points')