Skip to content

Commit

Permalink
Merge pull request #7 from remyroez/release
Browse files Browse the repository at this point in the history
リリース準備
  • Loading branch information
remyroez authored Sep 17, 2019
2 parents ef7cfb6 + 557f257 commit 59aa812
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@

:black_square_button: Tetris game with LÖVE

![Screenshot](https://user-images.githubusercontent.com/1193542/64958539-65894880-d8ca-11e9-8dce-ef4582d35a1f.png)

## Controls

- In Title
- Start: Any key
- In Game
- Move: Left / Right key
- Soft drop: Down key
- Hard drop: Up key
- Rotate: A / D
- In Gameover
- Retry: Any key

## Getting Started

### Quick Start
Expand Down
2 changes: 1 addition & 1 deletion game/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ require 'autobatch'
require 'sbss'

-- デバッグモード
local debugMode = true
local debugMode = false

-- フォーカス
local pauseOnUnfocus = true
Expand Down
6 changes: 6 additions & 0 deletions game/src/Game/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ end
-- 描画
function Game:draw(...)
self.scene:draw()

-- デバッグモード表示
if self.debugMode then
love.graphics.setColor(1, 1, 1)
love.graphics.print('debug mode')
end
end

-- キー入力
Expand Down
2 changes: 2 additions & 0 deletions game/src/scenes/InGame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,8 @@ function Play:keypressed(key, scancode, isrepeat)
if self.stage:hit(self.currentTetrimino) then
self:gotoState 'Gameover'
end
elseif not self.app.debugMode then
-- 以下、デバッグモードのみ
elseif key == 'z' then
self.lines = self.lines + 10
self.level = self.level + 1
Expand Down

0 comments on commit 59aa812

Please sign in to comment.