]> Untitled Git - lightcycles-love.git/blob - players/2.lua
Added player names and stub for collision detection
[lightcycles-love.git] / players / 2.lua
1 -- player 2
2
3 require 'vec2'
4 require 'player'
5
6 local width = love.graphics.getWidth()
7 local height = love.graphics.getHeight()
8
9 return Player:new({
10     name='Player 2',
11     position=vec2:new(width-100,height-100),
12     vector=Player.vectors.left,
13     path={},
14     color={255, 255, 0},
15     keys={
16         up='up',
17         down='down',
18         left='left',
19         right='right',
20         }
21     })