Skip to content

ziloka/tetris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f6d435c · Mar 22, 2024
Oct 24, 2023
Nov 6, 2023
Oct 16, 2023
Nov 5, 2023
Mar 22, 2024
Nov 5, 2023
Mar 22, 2024
Mar 22, 2024
Dec 31, 2022
Oct 23, 2023
Mar 22, 2024
Mar 22, 2024
Oct 23, 2023
Dec 31, 2022
Mar 22, 2024
Nov 5, 2023
Sep 16, 2023
Nov 5, 2023

Repository files navigation

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