Code Monkey home page Code Monkey logo

floppybird's Introduction

Floppy Bird

Floppy Bird is a clone of the infamous Flappy Bird written in 16 bit (x86) assembly.

In other words it works on RAW METAL and doesn't require an underlying operating system, it is an operating system on its own.

Floppy Bird

Getting Started

If you just want to try it out there's no need to install the development tools because you can use one of the provided 'disk images'.

However, if you really want to 'compile' it yourself then you'll need to install the following tools:

  • NASM (required)
  • QEMU (optional, needed for testing)
  • GIMP (optional, needed for altering "graphics")

To build it just type in any terminal:

make
make iso
Versions
  • build/floppybird.img - Image for Floppy / USB Drives
  • build/floppybird.iso - for CD-ROM Drives (with Floppy Emulation)
Virtual Machines

QEMU and VirtualBox have been tested and fully supported.

qemu-system-i386 -boot a -fda build/floppybird.img

WARNING

I am not responsible for any direct or indirect data loss after performing any of the destructive operations presented below.

BE SURE TO BACKUP THE CONTENTS OF YOUR FLOPPY/USB DRIVE.

Linux/Mac (in other words *unix)

You can use the dd utility or your favorite CD Burner like Brasero.

dd if=build/floppybird.img of=/dev/sdb

In the example above, /dev/sdb is your USB Drive.

Windows

You can use the Raw Write 32 utility or your favorite CD Burner like CDBurnerXP.

M$-DOS (BONUS)

It is also possible to run Floppy Bird as a regular .COM executable in any DOS-like environment, like DOSBox for instance.

To build it type:

make com

And then to run it type:

dosbox build/flpybird.com

Note: Make sure to set the cycles to a reasonable value like 10000 for an enjoyable experience.

Contribute

  • Fork the project.
  • Make your feature addition or bug fix.
  • Do not bump the version number.
  • Send me a pull request. Bonus points for topic branches.

License

Copyright (c) 2014, Mihail Szabolcs

Floppy Bird is provided as-is under the MIT license. For more information see LICENSE.

floppybird's People

Contributors

icebreaker 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  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  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

floppybird's Issues

Floppybird OS inside a BIOS chip - is working great ;-)

Even today the floppies are still being used, for example - as virtual floppies inside the coreboot open source BIOS. Just imagine: your wonderful OS could be a part of someone's BIOS build! (for coreboot supported motherboard, maybe you have or could get one - see https://www.coreboot.org/Supported_Motherboards )

If you already have a coreboot-supported motherboard, or a real chance to get one, - wouldn't it be cool to be able to launch your own OS straight from the BIOS chip? ;) With one simple command it is possible to add any floppy to coreboot BIOS build - and then you see it as a boot entry. Multiple floppies could be added this way (as long as you have enough space left inside the BIOS flash chip, luckily LZMA compression could be used for the stored floppies to reduce their occupied size) - although with the unofficial SeaBIOS multiple floppies patch found here - http://dangerousprototypes.com/docs/Lenovo_G505S_hacking#Unofficial_SeaBIOS_patches .

@icebreaker , my sincere congratulations: I added your FloppyBird compiled image (uploaded by my friend here - https://github.com/mikebdp2/floparchive/blob/master/floppies_extra/floppybird.img ) to the coreboot.rom BIOS build for my Lenovo G505S , and it's working perfectly 😉 Also, after LZMA compression your FloppyBird occupies just 2174 bytes inside the flash chip. Thank you very much for this beautiful game, Mihail, it made my BIOS better and funnier 👍

compile to .COM/.EXE file?

this is such a great work! a question: can you have Makefile to compile this to .COM (or .EXE) file, so it is possible to run the game under DosBox/DosEmu?

thanks.

Running Floppy Bird on BIOS

Hi Mihail,

I wanted to share with you something that I’ve been working on lately. It’s called Magnolia, and it’s a tool that lets you run arbitrary programs on the context of a PC BIOS. It works as an Option ROM that can be embedded in the BIOS or on a hardware device, and it executes during the POST. You can find it here: https://github.com/miraliumre/magnolia.

The reason I'm writing is because I have included Floppy Bird as a demo on Magnolia and, while searching if someone else had attempted to something similar before, I have found that there's a 2019 issue (#3) about a similar project. The key difference is that, as an Option ROM, Magnolia with Floppy Bird can be embedded in a much wider range of motherboards, not only those supported by coreboot.

Of course, Magnolia is still a work in progress and it has some bugs and limitations. For example, on one of the motherboards I have tested it in, I can exit Floppy Bird and boot normally, but if I try to enter the CMOS setup screen after playing, the PC crashes. But I’m working on fixing them and improving the functionality.

I hope you don’t mind me using your code for this project. I’ve given you full credit and linked to your GitHub page on the README file. I just wanted to show you what I’ve done with your amazing game and see what you think.

Cheers,
Rodrigo

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.