Code Monkey home page Code Monkey logo

boot2flappy's Introduction

boot2flappy Build Status

Flappy Bird for UEFI written in x86 Assembly.

Screenshot

Getting the source

Download the source code by running the following code in your command prompt:

$ git clone https://github.com/fabianishere/boot2flappy.git --recursive

or simply grab a copy of the source code as a Zip file.

Building

We provide two ways for building the project: manually on your local system or in a container using Docker. If installing the required dependencies is not trivial or unwanted, we suggest building the project with Docker.

Make sure you have also downloaded the deps/gnu-efi submodule, which may be done via:

$ git submodule update --init

Manual

Create the build directory.

$ mkdir build
$ cd build

boot2flappy requires CMake and a specific C cross-compiler (namely mingw-w64-x86-64) in order to build. On Ubuntu, please install the following packages:

  • binutils-mingw-w64
  • gcc-mingw-w64-x86-64

Then, simply create the Makefiles:

$ cmake ..

and finally, build it using the building system you chose (e.g. Make):

$ make

Docker

Build the project with the provided fabianishere/boot2flappy container as follows. Make sure you run the command in the project root directory.

$ docker run --rm -it -v `pwd`:/root/boot2flappy fabianishere/boot2flappy

This will build the project in the build/ directory. Since Docker runs as root user, you need to fix the permissions of the build directory in order to run the game:

$ sudo chown -R $USER:$USER build/

Playing

QEMU

After building the project, in the build directory, run the following code in your command prompt:

$ vm/start.sh

This will start a QEMU virtual machine in which you can play the game. Make sure QEMU is installed.

Why

One of the assignments for the Computer Organisation course of 2016 at Delft University of Technology was to create a bootable game in x86 assembly. Why not create a simple EFI game with nice graphics?

License

The code is released under the MIT license. See the LICENSE file.

All sprite files in the resources directory: all copyrights belong to their respective owners. The files are used for education purpose only.

boot2flappy's People

Contributors

fabianishere avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

boot2flappy's Issues

Error: attempt to store non-zero value in section '.bss' (console.s)

Hi there! I'm getting these errors while trying to build:

/root/boot2flappy/src/efi-x86_64/console.s:32: Error: attempt to store non-zero value in section `.bss'
/root/boot2flappy/src/efi-x86_64/console.s:33: Error: attempt to store non-zero value in section `.bss'
/root/boot2flappy/src/efi-x86_64/console.s:34: Error: attempt to store non-zero value in section `.bss'

-- Related? Uzebox/uzebox#65

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.