Tangent 4 years ago
parent
commit
b47fd3fbd1
3 changed files with 13 additions and 2 deletions
  1. 2
    0
      .gitignore
  2. 2
    1
      src/generate.moon
  3. 9
    1
      src/main.moon

+ 2
- 0
.gitignore View File

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

+ 2
- 1
src/generate.moon View File

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

+ 9
- 1
src/main.moon View File

@@ -40,7 +40,7 @@ class Map
40 40
 
41 41
 export map
42 42
 -- map = Map(2, 0.5)
43
-map = Map(4, 0.287, 4)
43
+map = Map(4, 0.3, 5)
44 44
 
45 45
 love.update = ->
46 46
   lovebird.update!
@@ -65,6 +65,14 @@ love.keypressed = (key) ->
65 65
   switch key
66 66
     when "escape"
67 67
       love.event.quit!
68
+    when "w"
69
+      map\generate(map.x, map.y - 600)
70
+    when "a"
71
+      map\generate(map.x - 600, map.y)
72
+    when "s"
73
+      map\generate(map.x, map.y + 600)
74
+    when "d"
75
+      map\generate(map.x + 600, map.y)
68 76
     -- when "w"
69 77
     --   map\setLacunarity map.lacunarity + 0.5
70 78
     -- when "s"