Skip to content

hanurd25/SpaceGame-Semesterproject

Repository files navigation

Welcome to SpaceGame!

- INTRODUCTION

This is a game where the player gets a spaceship which is controlled back and forward on a line. There comes Meteors towards the spaceship which the spaceship, controlled by the user, is supposed to shoot lasers at.

There are stars in the background of the scene which serves as decoration, and makes it look like the spaceship is traveling at high speed.

- HOW TO PLAY

The game uses input from the keyboard to play. Only 3 buttons are used. Right and left arrow keys is used to accelerate to the left and to the right. The space-bar is used to shoot lasers. The user can both accelerate by clicking and holding down the arrow-keys. When shooting lasers, you have to do a new click for each time you want to shoot

When a meteor is being hit by laser, it explodes, and fractions scatt in different directions from the hitpoint. The fractions are only for decoration, to simulate an explosion of the meteor, and can't be hit by a laser.

There is a points system where the score can increase by 100 for hitting meteors, when shooting lasers. the score can also decrease, by 100, each time if the meteors passes the position of the spaceship. The highest reachable score is 5000 and the lowest is -1000.

- What Workes?

- All the objects and the gameplay works correctly like mentioned above.

- Continuous integration (CI)

- Unit testing

- Important notes

- That the texture-files inside "resources" makes its way inside both the "cmake-build"-folder and inside the "test"-folder inside the "cmake-build"-folder, after building, is very important for the game to function properly.



- Picture of gameplay





- Resources used:

- Meteor STL-file: https://grabcad.com/library/asteroid-5

- SpaceShip STL-file: https://grabcad.com/library/batwing-bvs-1

- Star STL-file: https://grabcad.com/library/star_5-1

- threepp

- The code that has been gathered from the internet or threepp is presented alongside the corresponding source link.

About

AIS1002

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors