Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

F11 info, KERNING KERNING KERNING

  • Loading branch information...
commit 3e17cc74e6a07e2760741e536adab566217b3b60 1 parent 89fdd52
mbs6597 mbs6597 authored
4 src/gameModes/flip.lua
@@ -2,7 +2,7 @@ local makeMode = function()
2 2 local mode = {
3 3 static = false,
4 4 i = 1,
5   - baseTime = 1.5,
  5 + baseTime = 2,
6 6 modTime = 1,
7 7 games = {},
8 8
@@ -46,7 +46,7 @@ local makeMode = function()
46 46 end,
47 47
48 48 setResults = function(self, res)
49   - self.i = math.random(#self.games)--(self.i % #self.games)+1
  49 + self.i = math.random(#self.games*100)%#self.games+1
50 50 self.static = not self.static
51 51 end,
52 52
BIN  src/games/fix the kerning/icon-big.png
BIN  src/games/fix the kerning/icon.png
BIN  src/games/fix the kerning/music.mp3
Binary file not shown
10 src/initGameState.lua
@@ -59,6 +59,7 @@ local initState = function()
59 59 base.keytime = 0
60 60 base.keyed = false
61 61 base.key = ""
  62 + base.keyaccel = 0
62 63
63 64 base.nselected = 0
64 65
@@ -109,13 +110,17 @@ local initState = function()
109 110
110 111 local color = self.nselected==0 and 60 or 255
111 112 love.graphics.setColor(color,color,color)
112   - love.graphics.print("PRESS ENTER TO CONTINUE", 15, ny+50)
  113 + love.graphics.print("Press Enter To Continue", 15, ny+50)
  114 + love.graphics.setColor(255,255,255)
  115 + love.graphics.print("Press F11 for Fullscreen", love.graphics.getWidth()/2, ny+50)
113 116 end
114 117
115 118 base.keypressed = function(self, key)
116 119 self.keyed = true
117 120 self.key = key
118   - self.keytime = keyrep
  121 + self.keytime = keyrep-self.keyaccel
  122 + self.keyaccel = self.keyaccel +0.01
  123 + if self.keyaccel >0.1 then self.keyaccel = 0.1 end
119 124
120 125 if key == 'up' then
121 126 self.currentPosition = ((self.currentPosition -2) % #self.listOfGames)+1
@@ -154,6 +159,7 @@ local initState = function()
154 159
155 160 base.keyreleased = function(self, key)
156 161 self.keyed = false
  162 + self.keyaccel = 0
157 163 end
158 164
159 165 framework.mode = framework.modes.chooser
3  src/listOfGames.lua
@@ -13,7 +13,8 @@ listOfGames = {
13 13 "waste the ink",
14 14 "WaveAtTheTour",
15 15 "jet pack man",
16   - 'gun or umbrella'
  16 + 'gun or umbrella',
  17 + "fix the kerning"
17 18 }
18 19
19 20 return listOfGames

0 comments on commit 3e17cc7

Please sign in to comment.
Something went wrong with that request. Please try again.