SKTetris is an educational project for developers learning how to use Apple's SpriteKit 2D framework.
This is a partial recreation of the Tetris game.
This project uses gitmoji for its commit messages.
SpriteKit being a proprietary framework from Apple, the game will only be avaiable on the following Apple platforms:
- macOS 10.15+
- iOS / iPadOS 13+
- tvOS 13+
Due to obvious potential copyright infringements, SKTetris is not available directly from the App Store. If you want to play on your iPhone, iPad or Apple TV, please clone this repository, open the project directly in Xcode and run the game directly on your device.
Key | Command |
---|---|
F | Rotates the current piece counter clockwise |
G | Rotates the current piece clockwise |
P | Pauses / Unpauses the game |
Down arrow | Speeds up the descent of the current piece |
Left arrow | Moves the current piece to the left |
Right arrow | Moves the current piece to the right |
Escape | Opens / Closes options |
Key | Command |
---|---|
Arrow keys | Moves to the next control in the corresponding direction |
Space | Triggers the selected control |
The game uses the Game Controller framework, so only natively supported controllers will work.
Control | Command |
---|---|
D-pad | Moves to the next control in the corresponding direction |
A / | Triggers the selected control |
Control | Command |
---|---|
Press the touch area (top of the remote) | Rotates the current piece clockwise |
Swipe downwards | Speeds up the descent of the current piece |
Swipe to the Left | Moves the current piece to the left |
Swipe to the Right | Moves the current piece to the right |
Play / Pause button | Toggles options + pause |
Control | Command |
---|---|
Swipe on the touch area | Moves to the next control in the corresponding direction |
Press the touch area (top of the remote) | Triggers the selected control |
To the exception of those mentioned below, all source code and assets are distributed under the MIT License.
Designed by Marcelo Magalhães and distributed under the Open Font License on Google Fonts.
Distributed under CC-BY 3.0 Licence by Little Robot Sound Factory on Open Game Art.
Distributed under CC0 Public Domain by Joth on Open Game Art.