Code Monkey home page Code Monkey logo

asteroids's Introduction

Asteroids

Classic Asteroids game with a 3D flight-sim perspective, written in Monogame. You are the pilot of a ship trying to save your planet from giant lava rocks that have erupted from a nearby space volcano. Destroy them!

Controls

Mouse - steer ship

W - Thrust

A/D - Roll

Left Mouse Button - Fire Torpedo (cooldown of 2 seconds)

Q - Activate Shrink

The World

Asteroids come in 3 sizes, small, medium, and large, and spawn in random shapes and sizes. Hit one, you die and lose a life. Lose all three of your lives and it's GG.

Powerups

Powerups occasionally spawn in random positions of the world.

Shields allow you to hit an asteroid without dying. The shield is consumed once used, and the asteroid is blown up.

Shrinks decrease the size of your ship, allowing you to get out of sticky situations. The shrink lasts 10 seconds before you revert to normal size.

Environment

  • Windows 10
  • Visual Studio 2015
  • Monogame Development Branch (3.5+ essentially), otherwise it doesn't work with VS 2015
  • Other versions of Windows or VS may work, I have not tested them.

Setup

  • Install Monogame from the development branch
  • Clone repo, open in Visual Studio, verify everything builds with the Monogame Pipeline Tool
  • Run it in Visual Studio

Known Unresolved Issues

  • Occasionally when two asteroids collide the game hangs and nothing is drawn. I have not been able to figure out why this happens. Press "R" to fix this if it happens. Not pretty, but it works.
  • Occasionally when exiting the game a NullReferenceException is thrown related to the Mouse.

asteroids's People

Contributors

ajbowler avatar

Watchers

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