Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lcaballero/ebiten-blocks
This is a tetris clone done from scratch to gain some experience with the ebiten library.
https://github.com/lcaballero/ebiten-blocks
Last synced: about 1 month ago
JSON representation
This is a tetris clone done from scratch to gain some experience with the ebiten library.
- Host: GitHub
- URL: https://github.com/lcaballero/ebiten-blocks
- Owner: lcaballero
- Created: 2023-03-22T19:42:58.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-23T06:42:26.000Z (about 1 year ago)
- Last Synced: 2024-04-14T19:27:32.048Z (9 months ago)
- Language: Go
- Size: 114 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.org
Awesome Lists containing this project
README
* Purpose
This is a tetris clone done from scratch to gain some experience
with the [[https://ebitengine.org/][ebiten]] engine.There are a handful of known bugs not yet fixed as of 2023-03-22.
* Getting Started
Use the =run.sh= script to build and run the project. It requires a
Mac or Linux machine with Go 1.19 installed and setup. (It will
likely run on Windows as well, it is just untested on that Platform)Add =$GOPATH/bin= to your path for convenience.
#+begin_src shell
export PATH="$GOPATH/bin:$PATH"
#+end_srcThen in a terminal, navigate to this directory and run the following
command:#+begin_src shell
go get gopkg.in/yaml.v3
go mod tidy && ./run.sh build && ebiten-01 new-game
#+end_srcThat should pull down the project dependencies, write the built
executable to =$GOPATH/bin/= and then execute the command.* Game Play
Use =j= to move =left=.Use =l= to ove =right=.
Use =space= to =rotate= the peice.
Use =k= to =drop= the peice.
Use =p= to =pause= the game.
Use =q= to =quit= the game.
Use =r= to =reset= peice, sending the falling peice to the top, but only
before it's been placed in the stackUse =0= will restart the game with score of zero, level one and clears the board.