How to track game progress
I'm making an application which encourages people to save energy. The savings will be donated to a charity!
A few steps have to be followed to 'complete' the game.
Roughly it goes like this
- Register a baseline ( consumption of energy over a certain period of time)
- When the game start register the current index of the meter
- When the game ends register the current index of the meter
- Show results to users
I have a controller and model for the meterreadings. However it should be possible to track the participant's progress. Eg. when you enter the baseline the next step should be to enter your current index and the previous task should be striped through.
I'm just wondering on how to best achieve this. The game can be played for electricity, water and gas. The user should also be able to indicate he only wants to participate for eg electricty and gas.
My current way of thinking was to create a database migration user_progress with fields: user_id, utility_type, task (1 to 4)
To update this table I would use Events which are triggered when the participant completes a task.
- Is this a good way of thinking?
- A problem that I see is that if I use 1 to 4 it's not saying a lot. Maybe i should change it to registered-baseline; registered-start-index;registered-end-index;calculated-results?
I'm more than happy to search for information myself, but I feel I could use a push in the good direction ...
Please or to participate in this conversation.