Code Monkey home page Code Monkey logo

cge-altitudezero's Introduction

MSc CGE (Game Programming - 2D game) Altitude Zero

==============

Title: AltitudeZero

Fly .. shoot things .. don't get shot or crash.

By: Willem B. van der Merwe 33245888

!!Requires OpenAL!!

Code layout:

assets.h

Holds enums for texture and sound assets Sets up and contains textures

collision.h

Does collision checks between two CollisionData items .. badly

gameobj.h

Happy with this.. or where this is going Classes for game objects

GameObj

Used as base for all game objects Records vertices, x/y position, modelToWorld matrix & texture for rendering Records friction, thrust, bounding box & radius, speed, etc. for "physics" Has virtual function for boundary checks Has a function for simulating physics & some game mechanics

Projectile

Used for bullets Records it's own damage Has its own boundary check function

Craft

Used as base for enemy and player craft Records its own health Has functions for adjusting health (heal and damage)

Fighter

Has own boundary check and simulate function

Enemy

Has own boundary check Has function for behaviour .. which does nothing

render.h

Sets up compiles and links a shader program Has a function to render RenderData

structs.h

Contains two structs RenderData and CollisionData used in game

Borrowed from Andy:

file_manager.h matrix.h sound_manager.h texture_manager.h vector.h

Creds:

arboris.deviantart.com for the Fighter space-ship sprites http://arboris.deviantart.com/art/Spaceship-sprites-43030167

Skorpio for the Enemy space-ship sprites http://opengameart.org/content/top-down-space-fighters

Quake3 audio team for their machinegun and rocket sounds

Andy Thomason for several of the .h classes which made this "game" possible within a week of coding

ENOISE ( http://e-noise.com/ ) for being flexible on work hours

cge-altitudezero's People

Contributors

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