Difference between revisions of "Wintermute/Plugins"

Jump to navigation Jump to search
721 bytes added ,  23:19, 18 February 2020
Line 56: Line 56:
== [[Beyond the Threshold]] ==
== [[Beyond the Threshold]] ==
=== wme_displacement.dll ===
=== wme_displacement.dll ===
TODO
A plugin for WME 1.x by Wintermute Engine Forum user metamorphium.
 
Sources are lost in 2008, according to this thread: http://forum.dead-code.org/index.php?topic=1197.0
 
GetSupportedClasses() exports one class: '''Displacement'''.
 
Constructor parameters are not documented.
 
Required method: '''Animate()'''.
 
Usage:
<nowiki>
var e1 = Scene.GetNode("Ent2");
var e1s = e1.GetSpriteObject();
var e1f = e1s.GetFrame(0);
var e1sf = e1f.GetSubframe(0);
var e2 = Scene.GetNode("Ent1");
var e2s = e2.GetSpriteObject();
var e2f = e2s.GetFrame(0);
var e2sf = e2f.GetSubframe(0);
var displobject = new Displacement(e1sf, e2sf, 3, 4, 7);
while(1) {
displobject.Animate();
Sleep(80);
}
</nowiki>
 
TODO: reimplement this for ScummVM.


=== wme_snow.dll ===
=== wme_snow.dll ===
234

edits

Navigation menu