This commit is contained in:
Tangent 2019-09-01 01:12:48 -07:00
parent 994c0e2e20
commit b47fd3fbd1
3 changed files with 13 additions and 2 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
!src/lovebird.lua
*.lua

View File

@ -3,7 +3,8 @@ send = select 1, ...
receive = select 2, ... receive = select 2, ...
offset = love.math.random! offset = love.math.random!
scale = 0.0005 -- scale = 0.0005
scale = 0.00005
colors = { colors = {
{0.92, {0.7, 0.7, 1, 1}}, {0.92, {0.7, 0.7, 1, 1}},

View File

@ -40,7 +40,7 @@ class Map
export map export map
-- map = Map(2, 0.5) -- map = Map(2, 0.5)
map = Map(4, 0.287, 4) map = Map(4, 0.3, 5)
love.update = -> love.update = ->
lovebird.update! lovebird.update!
@ -65,6 +65,14 @@ love.keypressed = (key) ->
switch key switch key
when "escape" when "escape"
love.event.quit! love.event.quit!
when "w"
map\generate(map.x, map.y - 600)
when "a"
map\generate(map.x - 600, map.y)
when "s"
map\generate(map.x, map.y + 600)
when "d"
map\generate(map.x + 600, map.y)
-- when "w" -- when "w"
-- map\setLacunarity map.lacunarity + 0.5 -- map\setLacunarity map.lacunarity + 0.5
-- when "s" -- when "s"