marouen-lamiri / Second-Soul

Unity-Game
2 stars 0 forks source link

Save Data #77

Closed marouen-lamiri closed 9 years ago

marouen-lamiri commented 10 years ago

[Priority: 2] [SP: 8] As a user, i want to be able to save my data

marouen-lamiri commented 9 years ago

Task Breakdown (in hours)


Implementation Breakdown (in hours)

smileyWolf commented 9 years ago

Discussion (Facebook)

Lamiri Marouen

hey everyone, i managed to create a simple save but i need now to know what we would like to save. What stats do we need to save? Do we need to keep the same map as the one previously generated? If so, do we need to keep track of the damage we did to the enemy?

Guillaume Fortin

well health and energy are technically a secondary stat so you need to save level-strength, dex, endurance-wisdom, spirit, and wtv the last one is called

Lamiri Marouen

yea, it will be removed, i used it as a visual indicator that it worked OK, so instead of health and energy, should be the stats Guillaume says

smileyWolf commented 9 years ago

Discussion ...

More specific stats are:

primarystats

smileyWolf commented 9 years ago

Updated: Saving the primary stats https://github.com/marouen-lamiri/Second-Soul/commit/e10213d2affb3c69871f7ffe5d1b8b1a63d73118

I added a Log to display the save-process in the console:

saveprimarystats

smileyWolf commented 9 years ago

Black-Box Testing

Tests # Inputs Expected Output Status
Save Fighter's Primary Stats Time Interval Fighter's Primary Stats are saved when the Interval elapsed. Pass
Save Sorcerer's Primary Stats Time Interval Sorcerer's Primary Stats are saved when the Interval elapsed. Pass
Save Inventory Items Time Interval Inventory Items are saved when the Interval elapsed. Pass
Save Equipped Items Time Interval Equipped Items are saved when the Interval elapsed. Pass

Regression Testing

These issues have been retested: #65 #64 #27 #28 #29 Tests failed: None Last edit: 07/04/2015

smileyWolf commented 9 years ago

Demo Steps

  1. Save Fighter's Primary Stats.
    1. Notice the console's log that the Fighter's Primary Stats were saved.
  2. Save Sorcerer's Primary Stats.
    1. Notice the console's log that the Sorcerer's Primary Stats were saved.
  3. Save Inventory Items.
    1. Attack and kill an Enemy.
    2. Pick up the Item dropped by the killed Enemy.
    3. Notice the console's log that the Inventory Item was saved.
  4. Save Equipped Items.
    1. Attack and kill an Enemy.
    2. Pick up the Item dropped by the killed Enemy.
    3. Apply an Inventory Item to the Fighter by dragging it to the appropriate place.
    4. Notice the console's log that the Equipped Item was saved.
Kishor0122 commented 9 years ago

Character stats (and level) and inventory items are correctly saved when game is closed. Signing off.