Coder Social home page Coder Social logo

allegro_asteroids's Introduction

Chandler's Allegro Asteroids

A clone of the game Asteroids, written in C with the Allegro development library

Dependencies

This project requires math.c (which comes with common distributions of C, but still requires a seperate compiler flag to include, -lm), and requires Allegro, a free library for developing 2d games in C.

Compilation

If you're on Linux or Mac and have both Allegro5 and gcc installed, run compile.sh to compile this code. I have no clue how any of this would work on Windows, although Allegro does support Windows, so you can try.

Featuring:

  • Neato graphixz, with a pretty particle system
  • Loud noises to get your attention
  • Hours of asteroid-blasting fun
  • No mouse required
  • No mouse supported
  • Intense rage as you die to that same super small 9000 mile per hour asteroid again and again
  • Minimal memory and CPU usage; it'll run fine on any old computer
  • Source: I developed this on a 2007 Macbook. It ran smooth even when I had a browser and Atom open, and I only have 1 or 2 gigs of RAM.
  • It'll probably run on a raspberry Pi
  • I now spend too much time playing this game
  • Please help

What's Next

  • Nothing, because I haven't touched any of this code in 4 years. That being said . . .

Potential Improvements if I were to make some

  • Shorten the time to respawn. Some playtesters thought the game softlocked for a moment after the player died. 5 seconds is too long to reappear.
  • Add a seperate explosion sound effect for when the player blows up as opposed to when the asteroids blow up. This should make it easier to tell apart asteroid destruction and the player's death in chaotic gameplay.
  • Impose reasonable limits and tampers on an asteroid's velocity when splitting up, as well as perhaps a little bit of random direction to the new asteroid chunks.
  • Or, add different asteroid types that split in different directions or even different quantities when shot.
  • Make the asteroids more interesting to look at by adding different rugged shapes.
  • Add a highscore system where it stores high scores in a text file, or perhaps even a binary file to discourage user tampering.
  • Distribute some kind of package of this that runs on Windows, Mac, and most major Linux distributions

allegro_asteroids's People

Contributors

cpilipis avatar

Stargazers

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