Coder Social home page Coder Social logo

tetris's Introduction

Tetris

The Tetris is an implementation of the classic game for UEFI platform.
I believe this Open Source application will be useful for students learning programming. 
Dedicated to my little princess Maria. 

FEATURES
- Simple Object Oriented structure 'Game -> Board -> Piece'
- Doxygen complient
- Periodic timer callback
- Pseudorandom generator
- Simple rotation alghorithm
- No global variables
- use __debugbreak(); for breakpoint in the debug mode

HOW TO INCORPORATE THIS APPLICATION INTO NT32

The instructions below are included as a sample and template on how a developer may integrate this code into an existing platform:

  1. Copy files into ShellPkg folder: \ShellPkg\Application\Tetris

  2. Add this app build to the NT32 build: Add the Tetris.inf to the [components] section as it is in the ShellPkg.dsc: ShellPkg/Application/Tetris/Tetris.inf

  3. Find the [PcdsDynamicDefault.common.DEFAULT] section in the Nt32Pkg.dsc file and change the PcdWinNtFileSystem folder: gEfiNt32PkgTokenSpaceGuid.PcdWinNtFileSystem|L".!........\Build\Shell\DEBUG_MYTOOLS\IA32"|VOID*|106

  4. Build Tetris under ShellPkg: build -p ShellPkg\ShellPkg.dsc -a IA32 -m ShellPkg\Application\Tetris\Tetris.inf

  5. Build NT32 build all

  6. Run NT32 build run

  7. enter fsnt1: and execute Tetris.efi

Enjoy!

tetris's People

Contributors

swmicro avatar

Watchers

James Cloos 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.