ziloka / tetris

A port of four-tris

Home Page:https://ziloka.github.io/tetris/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Something similar to four-tris

Notes

The coordinate system is in the center of the screen

Everything is drawn every frame

Press ESC to open settings to change the controls Press F3 if you want to see debugging information

Tetris Guideline spefications are followed as closely as possible They are available via here

Logging

Contributing

During development run

cargo install cargo-watch
cargo watch -x run

to achieve hot code reloading

Use Act To test github actions

docker build --no-cache --tag ziloka/tetris:act-20.04 .
# docker scout quickview
act --platform ubuntu=latest=ziloka/tetris:act-20.04 --pull=false --artifact-server-path tmp/artifacts
# act --platform ubuntu-latest=ghcr.io/catthehacker/ubuntu:rust-22.04 --artifact-server-path tmp/artifacts

Inspiration taken from

https://github.com/vlang/v/tree/master/examples/tetris

https://github.com/corbamico/bevy-tetris

https://github.com/zigurous/unity-tetris-tutorial

https://github.com/JohnnyTurbo/LD43

Wallkicks

https://www.youtube.com/watch?v=yIpk5TJ_uaI

After 37 minutes On windows the memory goes from 50mb to 2015mb

https://github.com/thesilican/tetris-ai

About

A port of four-tris

https://ziloka.github.io/tetris/index.html

License:MIT License


Languages

Language:HTML 50.6%Language:JavaScript 45.4%Language:Rust 2.8%Language:CSS 1.0%Language:Shell 0.1%Language:Dockerfile 0.0%