Spelunker is a game designed by Andreu Sacasas and Marc Torres as a project for Videogame Development, a subject from UPC university.
It was made with the objective of fullfill 3 basic requisites from the subject:
1 - Creating two different levels for a platformer with different layers in tiled.
2 - Having enemies in game that use pathfinding to reach the player or to interact with the map.
3 - Having a user interface functional, with buttons, main menu and everithing necessary to make the game look good.
As for the work of each member:
Andreu Sacasas:
- Design of the two maps
- Extracted sprites for the game
- Animations for the player and enemies
- UI Polish
Marc Torres:
- Pathfinding Implementation
- Entity Management (Controls, Movement, Collisions)
- UI Structurization and base integration
- Collision Optimization (tiled object load and active object check)
Both:
-Player physics
-Delta time for animations/physics
-Load infromation from tiled to the game
Innovation:
- Collision Optimization through active object checking:
Only object with need of collision management will actively detect collisions. This allows for:
- More collision search and have better position of these objects.
- Less iterations for collision detection.
Instructions:
- A - Move left
- D - Move right
- Space - Jump
If you press the jump button when you are already jumping and next to a wall you will perform a walljump (it only works if you are going up from the previous jump, if you are falling you cannot use it. It will give you an extra boost to jump higher.
- F1 - Start from the very first level
- F2 - Start from the beginning of the current level
- F5 - Save the current state
- F6 - Load the previous state
- F7 - Change Level
- F9 - View Colliders
- F10 - God Mode:
-The player is able to move the camera with the arrows.
-The player won’t be able to pass the level while in this mode, neither using the special keys nor finishing the level.
-Enemies cannot damage the player, but they will knockback him/her anyways.
-Using WASD in god mode allows it to fly around the map but the jump ability is disabled.- F11 - Enable/Disable Fps cap to 30
- ”+” to increase volume
- ”-“ to decrease volume
MIT License Copyright (c) 2017 Andreu Sacasas - Marc Torres
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.
Credits
Most of the sprites used are from “Spelunky”, a game created by Derek Yu launched on 2008.