Our project

Project for Videogame Development subject. The main goal here is to create a simple plattaformer with two levels done in Tiled, having a main character moving around while being able to save and load game’s state. On top of this enemies pathfinding is implemented along other stuff such as stable frame rate (30fps), normalized movement, structured entity system described in an UML file and code with Brofiler integration. We also have added an intro menu and HUD implemented through a strucured ui system described in a UML file.

This project has been done by two catalan students of CITM - UPC (Terrasa, Spain).

About the game

Simple platformer with a temple-type theme featuring a yellow character. Equipped with a gun, he will have to reach the end of the level avoiding obstacles and killing enemies.

Our Team

García Subirana, Guillermo’s responsability and Github account

Masó Garcia, Víctor’s responsability and Github account

Main core subsystems of the game

Our game code is structured in modules. The main module (called j1App.cpp) manages all the other modules calling in a loop its respective awake, preupdate, update, postupdte, cleanup that they share thorugh a base class j1Module. Down below a basic scheme of this (some modules are missing) shows what has been explained:

For a better organization and performance a entity factory system has been implemented along with an UI module that manages all the events that happen in UI and it’s independent to everything else.

Animations, file paths, and levels are read and loaded through parsing xml files to avoid ‘magic numbers’, improve readability and boost changes when testing.

Innovations

Tools used

Gameplay



Installation instructions

Download the zip file and unzip it. Open the folder, execute the .exe and enjoy!

IMPORTANT: do not modify, change or add any folder or file as you might not be able to execute the game. ___

How to play

The game is quite simple. You must reach the end of each level (there are two) collecting all the coins you can while killing enemies and avoiding obstacles. You start with three lives but every time you collect 10 coins you earn an extra life (up to 6). you can can consult game controls down below. Have fun!

Controls


Player controls:
- JUMP: W key (twice for double jump)
- LEFT: A key
- RIGHT: D key
- SHOOT: SPACE key (hold for continuous shooting)

General/developer controls:
- PAUSE GAME: ESC key
- EXIT CREDITS: ESC key
- SKIP INTRO TITLE: SPACE key
- SKIP CREDITS: hold SPACE key
- START FROM THE VERY FIRST LEVEL: F1 key
- START FROM THE BEGGINING OF THE CURRENT LEVEL: F2 key
- SHOW COLLIDERS: F3
- GOD_MODE (NO FLYING) = F4
- SAVE GAME (player position and current level):  F5 key
- LOAD GAME (player position and level saved): F6 key
- UI DEBUG MODE: F8
- GOD MODE (FLYING): F10
- CAP FRAMERATE: F11

Credits for artwork, music/sound fx and fonts

Sprites:

Tilesets:

Music:

Sound FX:

Fonts:


Download the last version of the game HERE

Check our Github repository HERE



License


MIT License

Copyright (c) 2017 

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.