Skip to content

kwarkGorny/3DGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

3DGame

2.5D top-down space shooter just destroy as much asteroids as you can before getting your ship wreck.

Controls:

A - to move left
D - to move right
F1(on release) - standard shader 
F2(on release) - grey scale
F3(on release) - color inversion

Configuration:

Basic gameplay parameters can be change form config.lua

return {
    canonShootingFrequency = 2, -- shoots per second
    canonBulletsVelocity = 20, -- meters per second
    spaceShipForwardVelocity = 10, -- meters per second
    asteroidsAngularVelocityRange = {-math.pi, math.pi}, -- radians per second
    explosionDuration = 0.1, -- seconds
    manoeuveringEnginesThrust = 100000, -- newtons
    spaceShipMass = 5000, -- kilograms
    initialAsteroidAppearanceFrequency = 1, -- number per seconds
    asteroidAppearanceFrequencyIncrease = 0.01 -- number per seconds
}

Third-party libraries:

All third-party libraries are located in external folder:

Building:

to build project you need to dowload submodules from external folder after then you can generate project using cmake:

git clone --recursive https://github.com/kwarkGorny/3DGame.git
cd 3DGame
mkdir build
cd build
cmake ..
cmake --build . --config Release

Assets:

Preview:

ToDo