AliYousuf / hedgewars

Automatically exported from code.google.com/p/hedgewars
GNU General Public License v2.0
0 stars 0 forks source link

Mission categories and mission menu with tabs #981

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Branch name:
missiontabs

Repository:
https://bitbucket.org/Wuzzy2/hedgewars-wuzzy/

It can be viewed online here:
https://bitbucket.org/Wuzzy2/hedgewars-wuzzy/commits/branch/missiontabs

Purpose of code changes on this branch:
This is based on my suggestion here:
http://www.hedgewars.org/node/6223

Here's what I have done:
Reorder all non-campaign missions into 3 new categories:
* Training
* Challenge
* Scenario

A training is a mission where the player learns something about the game. It's 
mostly for tutorials. Example: Basic Rope Training
A challenge is a mission where the player has to achieve a very good score or 
something. Example: Climb Home. There may or may not be a main goal, but the 
focus lies clearly on the high score.
A scenario is a mission with a main goal which the player must reach. It is 
mostly like a normal Hedgewars game but with a certain setup and maybe some 
additional scription. Example: Dangerous Ducklings.

The new mission folders are:
* Missions/Training
* Missions/Challenge
* Missions/Scenario

If needed, more categories could probably be added later, but so far all 
existing missions fit into one of the 3 categories.

The mission menu now comes with a simple tabbed interface.
Here is a screenshot:
https://i.imgur.com/nf850HR.png

When reviewing my code changes, please focus on:
Code correctness. Hopefully I did not break anything.
This change is pretty big, because a large amount of files is moved around.
Testing is of course needed, especially with regards to demos and replaying a 
mission. (The latter seems to work, but I don't know how demos work or how to 
test them).

Further notes:
It becomes clear now that Hedgewars has only a few training missions:
Rope, grenade and bazooka, but only the rope mission actually does some 
teaching, the other 2 missions are more like a poor man's aiming practice, 
actually.

Original issue reported on code.google.com by almikes@aol.com on 12 Aug 2015 at 8:08