Giter Site home page Giter Site logo

xttrs's Introduction

xttrs - (NES) Tetris in x86 assembly

Linux only, nostd, in about 2000 loc.

Showcase

Shit quality because GIF

Controls

  • move piece once to the left
  • move piece once to the right
  • toggle soft drop (can't be held because terminals don't support release events)
  • X rotate piece
  • ESC pause game

Options

Starting with -l or --level followed by a number starts the game at that level (max 999).

Building

To build you'll need:

  • Make
  • GNU As (doesn't have to be gnu, but must support GAS syntax)
  • ld

You should already have all that on any linux system

make build

Built binary will be called xttrs. The code doesn't link against any library so you should be able to run it from anywhere.

Persistence

The best score per user is stored in $XDG_DATA_HOME/xttrs/best_score (defaults to $HOME/.local/share/xttrs/best_score).

Internals

The whole codebase is a huge mess with no conventions, probably a lot of stupid things, I'm still learning.

xttrs's People

Contributors

viandoxdev avatar

Watchers

 avatar

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.