sm00thslp / hedgewars

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

Allow for custom gears in scripts #406

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This is a request for an ability to create custom gears in scripts, such that 
they would have custom behavior, custom sprites and sounds.

Original issue reported on code.google.com by unC0Rr on 7 Aug 2012 at 10:55

GoogleCodeExporter commented 9 years ago
WRT sprites, there is a generic animation Visual Gear already, that I used to 
replace a few places where we were just drawing an animation with movement.  It 
allows passing any sprite as a parameter.

There's also that gtGenericFaller that I tossed in recently, as you know.

A supporting script library could use vgtStraightShot to draw pretty much 
anything.
Faller could be adapted to have an arbitrary sprite as well.  Scripting already 
has the ability to set x/y/dx/dy/elasticity etc.

The scripting could then do things based upon gear conditions.

Some supporting lua lib stuff might make it easier.

Original comment by kyberneticist@gmail.com on 7 Aug 2012 at 1:26