Reimplementation of Adventure of Lolo using C++
Adventure of Lolo is a puzzle video game released in 1989. In the course Introduction to C++, I need to reproduce a video game with the same gameplay. This one-month project aims at practising C++. In this project, I used the sprite of my favorite bomberman game in Childhood as texture. You can find the source code here.
Structure
I used SFML as the framework, which provides basic interface for developing multimedia app. Before programming, I designed the structure carefully so as to use the advantage of object-oriented programming.

Problematic
Collision
One of the difficulty comes from the collision, especially that between the movable box with other objects. To solve it, I used a ghost which is a bit smaller than its form. The ghost will move firstly and return the info whether it can move or not.
// The concept of shape and real is important
// to do the collision detection in game.
// Each element will have two rectangle shape representing
// the real part(invisible, a bit smaller and the visible part.
/*
-----------------
- shape -
- -
- ******** -
- * real * -
- * * -
- ******** -
-----------------
*/
By the way, I used this method to do collision detection.
AI behaviour
under construction.