Giter VIP home page Giter VIP logo

tetrs's Introduction

Tetrs

Tetris in Rust using ggez.

Left/right to move, up to rotate, space to drop, c to hold, down to soft drop.

Building and Running

To build: cargo build --release To run: cargo run --release

A resources folder with a folder called 'fonts' containing Xolonium-Regular.ttf must be in the same folder as the binary. The fonts folder can also be in various other places in Linux such as ~/.config/tetrs or ~/.local/share/tetrs.

.
├── resources
│   └── fonts
│       ├── FONTLOG.txt
│       ├── LICENSE.txt
│       ├── Xolonium-Bold.ttf
│       └── Xolonium-Regular.ttf
└── tetrs

Compiled binaries for Windows and Linux should be in the releases tab of GitHub.

Details

See HowItWorks.md or run cargo doc --open for simpler documentation

tetrs's People

Contributors

mkhan45 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

tetrs's Issues

It fails in macOS

Hey, would you know how to fix this?
Thanks!

❯ cargo run --release
   Compiling cargo_metadata v0.6.4
   Compiling cgl v0.2.3
   Compiling gfx_device_gl v0.16.1
   Compiling gfx v0.18.1
   Compiling coreaudio-sys v0.2.2
   Compiling lyon v0.13.4
error: failed to run custom build command for `coreaudio-sys v0.2.2`

Caused by:
  process didn't exit successfully: `/Users/rogerio/Documents/projects/_temp/tetrs/target/release/build/coreaudio-sys-ecaf9c7ede13cc67/build-script-build` (exit status: 101)
  --- stdout
  cargo:rustc-link-lib=framework=AudioUnit
  cargo:rustc-link-lib=framework=CoreAudio

  --- stderr
  error: header '/System/Library/Frameworks/CoreAudio.framework/Headers/CoreAudio.h' does not exist.
  thread 'main' panicked at 'unable to generate bindings: ()', /Users/rogerio/.cargo/registry/src/github.com-1ecc6299db9ec823/coreaudio-sys-0.2.2/build.rs:144:10
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: build failed

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.