Git Product home page Git Product logo

asteroids-demo's Introduction

Asteroids Clone for Windows

This game is a simple Asteroids clone primarily intended to demonstrate the capabilities and flexibility of w64devkit. It has real-time graphics (OpenGL), sound (DirectSound), and gamepad support (XInput). Anyone running Windows is about a minute away from building this program from source, without the need to install tools. It's easy for anyone to modify and adapt, or to serve as a starting point for their own projects.

Other than the operating system and trivially-obtained compiler toolchain, there are no build dependencies. There are also no run-time dependencies, so distribution of the game .exe is trivial.

For an introduction and overview of the game's source code, see Nolan Prescott's excellent guide.

Build

Download a w64devkit release, unzip anywhere, double-click the unzipped activate.bat to bring up a console window, navigate to this source directory (cd), and run make. This compiles a ready-to-play 47kB asteroids.exe.

Gameplay

Lives are unlimited but every death halves your score. Each time the asteroids are cleared the game slightly increases in difficulty.

Keyboard: Arrows keys for turning and thrust. Spacebar to shoot.

Gamepad: X or Y for thrust, and A or B to shoot. Shoulder buttons, D-pad, or left thumbstick to turn.

Linux and such

While the game depends explicitly on Windows, it runs comfortably on other x86 systems via Wine. To build using a cross-compiler:

make CROSS=x86_64-w64-mingw32-

Then run with Wine:

wine64 ./asteroids.exe

asteroids-demo's People

Contributors

skeeto 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.