AliYousuf / hedgewars

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

Overhaul of target practice missions (code inside) #863

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What problem are you currently facing?
The target practice missions Hedgewars currently has are pretty outdated and 
don’t use the newest features of the Lua API. The stats screen is not used by 
any of the missions and all missions have a pretty similar and redundant code.

Also, creating new target practice missions is pretty much redundant.

How do you think the situation should be improved?
By writing a small Lua library to easy the process of creating target practice 
missions, and then writing a couple of short scripts for the actual target 
practice missions.
Using a common code base makes it easier to improve the general stuff about the 
missions and avoids redundancy a lot.

What version of the product are you using? On what operating system?
Hedgewars 0.9.20 on GNU/Linux.

Don't forget that patches are welcome ;)
I have already written working code for this.
Here’s a thread:
http://hedgewars.org/node/5958

The framework presented here supports the stats screen. There are 7 playtested 
missions included, including a reimplementation of the cluster bomb mission. Of 
course this would make the current cluster bomb training obsolete.

Original issue reported on code.google.com by almikes@aol.com on 13 Dec 2014 at 9:45

GoogleCodeExporter commented 8 years ago
Addendum: The sniper rifle training is too complex and can not be replaced by 
the framework. But I have an update for this mission, too. See here:
http://hedgewars.org/node/5951

Original comment by almikes@aol.com on 13 Dec 2014 at 9:46

GoogleCodeExporter commented 8 years ago
Addendum 2: WARNING: This code would violate string freeze of 0.9.20.

Original comment by almikes@aol.com on 13 Dec 2014 at 9:52

GoogleCodeExporter commented 8 years ago
Already added three days ago in 2093cf51eea1 and 1c85a442bd56.

Original comment by RedGrin...@gmail.com on 15 Dec 2014 at 4:47