6 player = Player:new({position={x=100, y=100}, vector={x=Player.acceleration, y=0}})
11 local bgcolor = {0.2, 0.2, 0.5}
12 love.graphics.setBackgroundColor(bgcolor)
15 love.graphics.setColor(0.3, 0.3, 0.6)
16 local width = love.graphics.getWidth()
17 local height = love.graphics.getHeight()
20 for x=0,width,delta do
21 love.graphics.line(x, 0, x, height)
24 for y=0,height,delta do
25 love.graphics.line(0, y, width, y)
32 function love.update(dt)
33 if love.keyboard.isDown('escape') then
40 print('Thanks for playing!')
41 print('Recorded ' .. #player.path / 2 .. ' player path points')