- An other Tetris With
Python
+Pyxel
, Let's Play! - Programming Language: (Python3.10)
- Retro Game Engine Pyxel
- Linux (Absolutely worked)
- Windows (I didn't test)
- Mac (I didn't test)
- 3.10 or higher
- Install pyxel
python3 -m venv env source env/bin/activate pip3 install pyxel
- Enjoy!
- Run:
python3 pyxelTetris.py
- Run:
-
Notice!
- Chrome FireFox Are Best Choice For Phones
- FireFox Chrome Brave Are Best Choice For LapTop Or PCs
- Make virtualenv
python3 -m venv env source env/bin/activate pip3 install pyxel
- Install make tools
sudo apt install make
- Go to path/to/Tetris_Pyxel repo
-
PCs:
- Do it
git clone https://github.com/mehrdad-mixtape/Tetris_Pyxel cd Tetris_Pyxel/build make all cd ../wasm
- Connect your system to your local network
- Find IP-ADDRESS of your system. LAN or WLAN
- Linux:
ifconfig OR ip addr show
- Windows:
ipconfig
- Linux:
- Find IP-ADDRESS of your system. LAN or WLAN
- Run run-game-server.py On Terminal Or Cmd Or PowerShell Or WSL Or etc ...
python3 run-game-server.py --addr 192.168.x.x --port 8080
- Open Your Browser & Go to URL --> http://ADDR:8080 & Wait For Seconds
- Game Will Be Start On Your Browser!
- Do it
-
Phones: I Recommend UserLand (linux on android):
- Enable your data-network-connection and HotSpot network.
- Install UserLand and setup your linux distribution (I recommend install debian without Gui)
- Install this packages
sudo apt install curl git vim net-tools python3 make
- Find your IP-ADDRESS (looking for wlan interface)
ifconfig [...] wlan1 [...] 192.168.x.x [...] [...] OR ip addr show [...] wlan1 [...] 192.168.x.x [...] [...]
- Do it
git clone https://github.com/mehrdad-mixtape/Tetris_Pyxel cd Tetris_Pyxel/build make all cd ../wasm
- Run the source code of run-game-server.py
python3 run-game-server.py --addr 192.168.x.x --port 8080
- Open Your Chrome Browser & Go to URL --> http://ADDR:8080 & Wait For Seconds
- Game Will Be Start On Your Browser!
I fixed many Critical Bugs
, But maybe ... :)
- I made the first version in 3 days on my free time! Just for Fun with (Pyxel retro game engine)
- clean code
- Cross Platform
- sound effects aren't complete
- levels aren't implemented
- comments aren't complete
- [] cache the piece
- [] fix piece cover piece when move it left or right
- [] score board
- [] implement center rotation