diff --git a/Bundled/FrankieDeath.wav b/Bundled/FrankieDeath.wav new file mode 100644 index 0000000..301307e Binary files /dev/null and b/Bundled/FrankieDeath.wav differ diff --git a/Bundled/amb_bird_1.wav b/Bundled/amb_bird_1.wav new file mode 100644 index 0000000..c1af1f7 Binary files /dev/null and b/Bundled/amb_bird_1.wav differ diff --git a/Bundled/amb_bird_2.wav b/Bundled/amb_bird_2.wav new file mode 100644 index 0000000..fc56fb3 Binary files /dev/null and b/Bundled/amb_bird_2.wav differ diff --git a/Bundled/amb_cricket_1.wav b/Bundled/amb_cricket_1.wav new file mode 100644 index 0000000..7707031 Binary files /dev/null and b/Bundled/amb_cricket_1.wav differ diff --git a/Bundled/amb_forest.wav b/Bundled/amb_forest.wav new file mode 100644 index 0000000..6104508 Binary files /dev/null and b/Bundled/amb_forest.wav differ diff --git a/Bundled/amb_frog_1.wav b/Bundled/amb_frog_1.wav new file mode 100644 index 0000000..15bc60b Binary files /dev/null and b/Bundled/amb_frog_1.wav differ diff --git a/Bundled/amb_mountains.wav b/Bundled/amb_mountains.wav new file mode 100644 index 0000000..1221a47 Binary files /dev/null and b/Bundled/amb_mountains.wav differ diff --git a/Bundled/amb_river-old1.wav b/Bundled/amb_river-old1.wav new file mode 100644 index 0000000..749a17d Binary files /dev/null and b/Bundled/amb_river-old1.wav differ diff --git a/Bundled/amb_river.wav b/Bundled/amb_river.wav new file mode 100644 index 0000000..3f73659 Binary files /dev/null and b/Bundled/amb_river.wav differ diff --git a/Bundled/amb_stream.wav b/Bundled/amb_stream.wav new file mode 100644 index 0000000..3ffca7c Binary files /dev/null and b/Bundled/amb_stream.wav differ diff --git a/Bundled/amb_waterdrip_1.wav b/Bundled/amb_waterdrip_1.wav new file mode 100644 index 0000000..072af4b Binary files /dev/null and b/Bundled/amb_waterdrip_1.wav differ diff --git a/Bundled/amb_waterdrip_2.wav b/Bundled/amb_waterdrip_2.wav new file mode 100644 index 0000000..daae48a Binary files /dev/null and b/Bundled/amb_waterdrip_2.wav differ diff --git a/Bundled/amb_waterdrip_3.wav b/Bundled/amb_waterdrip_3.wav new file mode 100644 index 0000000..1d227fb Binary files /dev/null and b/Bundled/amb_waterdrip_3.wav differ diff --git a/Bundled/amb_waterdrip_4.wav b/Bundled/amb_waterdrip_4.wav new file mode 100644 index 0000000..7f2d166 Binary files /dev/null and b/Bundled/amb_waterdrip_4.wav differ diff --git a/Bundled/amb_waterfall.wav b/Bundled/amb_waterfall.wav new file mode 100644 index 0000000..a5db950 Binary files /dev/null and b/Bundled/amb_waterfall.wav differ diff --git a/Bundled/amb_wind_1.wav b/Bundled/amb_wind_1.wav new file mode 100644 index 0000000..6887d36 Binary files /dev/null and b/Bundled/amb_wind_1.wav differ diff --git a/Bundled/config.arm b/Bundled/config.arm new file mode 100644 index 0000000..edba981 --- /dev/null +++ b/Bundled/config.arm @@ -0,0 +1,20 @@ +{ + "rp_bloom": true, + "rp_dynres": false, + "rp_gi": false, + "rp_motionblur": false, + "rp_shadowmap_cascade": 1024, + "rp_shadowmap_cube": 512, + "rp_ssgi": true, + "rp_ssr": true, + "rp_supersample": 1.0, + "window_h": 1080, + "window_maximizable": false, + "window_minimizable": true, + "window_mode": 0, + "window_msaa": 1, + "window_resizable": false, + "window_scale": 1.0, + "window_vsync": true, + "window_w": 1920 +} \ No newline at end of file diff --git a/Bundled/frankie_dielava.wav b/Bundled/frankie_dielava.wav new file mode 100644 index 0000000..6c4370e Binary files /dev/null and b/Bundled/frankie_dielava.wav differ diff --git a/Bundled/frankieloop2.wav b/Bundled/frankieloop2.wav new file mode 100644 index 0000000..b376d41 Binary files /dev/null and b/Bundled/frankieloop2.wav differ diff --git a/Bundled/msx_peachvalley.wav b/Bundled/msx_peachvalley.wav new file mode 100644 index 0000000..2440859 Binary files /dev/null and b/Bundled/msx_peachvalley.wav differ diff --git a/Bundled/sfx_jump.wav b/Bundled/sfx_jump.wav new file mode 100644 index 0000000..b175c6b Binary files /dev/null and b/Bundled/sfx_jump.wav differ diff --git a/Bundled/sfx_jump2.wav b/Bundled/sfx_jump2.wav new file mode 100644 index 0000000..dc0832b Binary files /dev/null and b/Bundled/sfx_jump2.wav differ diff --git a/Sources/arm/Character.hx b/Sources/arm/Character.hx new file mode 100644 index 0000000..49bb8c4 --- /dev/null +++ b/Sources/arm/Character.hx @@ -0,0 +1,79 @@ +package arm; + +import iron.object.Object; +import iron.object.Animation; +import iron.Trait; +import iron.system.Input; +import iron.math.Vec4; +import iron.math.Quat; + +class Character extends Trait { + + var currentAction:String; + var animation:Animation; + + var speed = 0.0; + var loc:Vec4 = new Vec4(); + var lastLoc:Vec4 = null; + var framesIdle = 0; // Number of frames character did not move + + @:prop + var actionIdle:String = "idle"; + + @:prop + var actionMove:String = "run"; + + public function new() { + super(); + + currentAction = actionIdle; + notifyOnInit(init); + } + + function init() { + animation = object.animation; + + // Try first child if we are running from armature + if (animation == null) { + if(object.children.length > 0) { + animation = object.children[0].animation; + } + } + + if (animation == null) return; + notifyOnUpdate(update); + } + + function update() { + // Get current position + var tr = object.transform; + loc.set(tr.worldx(), tr.worldy(), tr.worldz()); + + // Set previous position to current position if there is no previous position + if (lastLoc == null) lastLoc = new Vec4(loc.x, loc.y, loc.z); + + // Check if character moved compared from last position + speed = Vec4.distance(loc, lastLoc); + + // Update previous position to current position + // in preparation for next check + lastLoc.setFrom(loc); + + if (speed == 0) framesIdle++; + else framesIdle = 0; + + // If state is idle and character is in movement, play move walk animation + if (currentAction == actionIdle && framesIdle == 0) { + currentAction = actionMove; + + if (actionMove != null) animation.play(actionMove); + } + + // Otherwise if state is walking and character is idle, play idle animation + else if (currentAction == actionMove && framesIdle > 2) { + currentAction = actionIdle; + + if (actionIdle != null) animation.play(actionIdle); + } + } +} diff --git a/Sources/arm/Intro_cam.hx b/Sources/arm/Intro_cam.hx index f50659b..a976711 100644 --- a/Sources/arm/Intro_cam.hx +++ b/Sources/arm/Intro_cam.hx @@ -3,6 +3,7 @@ package arm; import iron.Scene; import iron.math.Vec4; import iron.math.Quat; +import iron.math.Mat4; import iron.data.SceneFormat; import iron.data.Data; import iron.data.MeshData; @@ -10,6 +11,7 @@ import iron.data.MaterialData; import iron.system.Input; import iron.system.Time; import iron.system.Tween; +import armory.trait.PhysicsBreak; // // Intro_cam : Animation for the begining @@ -24,20 +26,23 @@ class Intro_cam extends iron.Trait { var go= false; // Suiveur - var loc_init = new Vec4 (0 , 0, 0); - var loc_to = new Vec4 (0 , 0, 0); - var loc_from = new Vec4 (0 , 0, 0); - var deltaxyz = new Vec4 (0 , 0, 0); + var loc_to = new Vec4 (); + var loc_from = new Vec4 (); + var deltaxyz = new Vec4 (); + var scale = new Vec4 (); var deltax = 0.0; var deltay = 0.0; var deltaz = 0.0; + var delta_a = 0.0; + var delta_b = 0.0; + var delta_c = 0.0; var position = 0; // Tempo var duration_cycle=0.01; var duration=0.0; - // Positions (repère objet de la courbe) + // Positions (repère objet de la courbe (dump python)) var delta = [ new Vec4 (0.0, 0.0, 0.0), new Vec4 (-0.714604914188385, -1.9046026468276978, 0.36248692870140076), @@ -56,7 +61,11 @@ class Intro_cam extends iron.Trait { ]; // Cible camera - // var target = new Vec4 (0 , 0, 0); + var target = new Vec4 (2.2124, -6.7793, 0.95099); + var rot_from = new Quat(); + var rot_from2 = new Quat(); + var rot_to = new Quat(); + var rot_to2 = new Quat(); // // notifyOnInit @@ -64,10 +73,8 @@ class Intro_cam extends iron.Trait { notifyOnInit(function() { - loc_init = object.transform.loc; duration=duration_cycle; go= false; - }); // @@ -76,39 +83,74 @@ class Intro_cam extends iron.Trait { notifyOnUpdate(function() { - // Point 1 + // Point 1 var mouse = Input.getMouse(); if (mouse.started()) { position=1; + + // Localisation loc_from = object.transform.loc; deltax = (delta[position].x-delta[position-1].x); deltay = (delta[position].y-delta[position-1].y); deltaz = (delta[position].z-delta[position-1].z); deltaxyz.set(deltax, deltay, deltaz); loc_to.addvecs(loc_from,deltaxyz); - trace("position "+Std.string(position)); - trace("loc_from "+Std.string(loc_from)); - trace("loc_to "+Std.string(loc_to)); - trace("deltaxyz "+Std.string(deltaxyz)); - trace("Delta "+Std.string(deltax)+" " +Std.string(deltay)+" " +Std.string(deltaz)); - go= true; + + // Rotation + // object.transform.scale.z = -1; + object.transform.buildMatrix(); + rot_from.fromMat(iron.Scene.active.getChild("Target_pos0").transform.world); + rot_from2.set(rot_from.x*1, rot_from.y*1, rot_from.z*1, rot_from.w*1); + object.transform.rot.fromEuler(rot_from2.getEuler().x, rot_from2.getEuler().y, rot_from2.getEuler().z); + object.transform.buildMatrix(); + + rot_to.fromMat(iron.Scene.active.getChild("Target_pos1").transform.world); + rot_to2.set(rot_to.x*1, rot_to.y*1, rot_to.z*1, rot_to.w*1); + trace("rot_from "+Std.string(rot_from2)); + trace("rot_to "+Std.string(rot_to2)); + delta_a = ((rot_to2.getEuler().x)-(rot_from2.getEuler().x)); + delta_b = (rot_to2.getEuler().y-rot_from2.getEuler().y); + delta_c = (rot_to2.getEuler().z-rot_from2.getEuler().z); + + // orientation_from.set(target.x-object.transform.world.getLoc().x, target.y-object.transform.world.getLoc().y, target.z-object.transform.world.getLoc().z); + // orientation_to.set(target.x-object.transform.world.getLoc().x, target.y-object.transform.world.getLoc().y, target.z-object.transform.world.getLoc().z); + + // trace("object.transform.world.getLoc() "+Std.string(object.transform.world.getLoc())); + // trace("target "+Std.string(target)); + + // orientation_from.set(target.x-object.transform.world.getLoc().x, target.y-object.transform.world.getLoc().y, target.z-object.transform.world.getLoc().z); + // orientation_to.set(target.x-loc_from.x, target.y-loc_from.y, target.z-loc_from.z); + // orientation_to.set(target.x-loc_to.x, target.y-loc_to.y, target.z-loc_to.z); + // trace("orientation_from "+Std.string(orientation_from)); + // trace("orientation_to "+Std.string(orientation_to)); + // orientation_quat.fromTo(orientation_from, orientation_to); + go= true; } // Déplacement if (go) { duration -= iron.system.Time.delta; if (duration <= 0.0) { - object.transform.translate(deltax/100, deltay/100, deltaz/100); // x, y, z + object.transform.translate(deltax/100, deltay/100, deltaz/100); // Translation x, y, z + object.transform.rotate(Vec4.xAxis(), delta_a/100); + object.transform.rotate(Vec4.yAxis(), delta_b/100); + object.transform.rotate(Vec4.zAxis(), delta_c/100); duration=duration_cycle; // Arrivée ? if (loc_to.x - object.transform.loc.x < 0.01 && loc_to.y - object.transform.loc.y < 0.01 && loc_to.z - object.transform.loc.z < 0.01) { + + // Correction du point de départ object.transform.translate(loc_to.x - object.transform.loc.x, loc_to.y - object.transform.loc.y, loc_to.z - object.transform.loc.z); // Point ++ if (position<13) { + position++; + trace("position "+Std.string(position)); + + // Localisation loc_from = object.transform.loc; deltax = (delta[position].x-delta[position-1].x); deltay = (delta[position].y-delta[position-1].y); @@ -116,11 +158,22 @@ class Intro_cam extends iron.Trait { deltaxyz.set(deltax, deltay, deltaz); loc_to.addvecs(loc_from,deltaxyz); trace("position "+Std.string(position)); - trace("loc_from "+Std.string(loc_from)); - trace("loc_to "+Std.string(loc_to)); - trace("deltaxyz "+Std.string(deltaxyz)); - trace("Delta "+Std.string(deltax)+" " +Std.string(deltay)+" " +Std.string(deltaz)); - go= true; + + // Rotation + rot_from.fromMat(iron.Scene.active.getChild("Target_pos"+Std.string(position-1)).transform.world); + rot_from2.set(rot_from.x*1, rot_from.y*1, rot_from.z*1, rot_from.w*1); + object.transform.rot.fromEuler(rot_from2.getEuler().x, rot_from2.getEuler().y, rot_from2.getEuler().z); + object.transform.buildMatrix(); + + rot_to.fromMat(iron.Scene.active.getChild("Target_pos"+Std.string(position)).transform.world); + rot_to2.set(rot_to.x*1, rot_to.y*1, rot_to.z*1, rot_to.w*1); + trace("rot_from "+Std.string(rot_from2)); + trace("rot_to "+Std.string(rot_to2)); + delta_a = (rot_to2.getEuler().x-rot_from2.getEuler().x); + delta_b = (rot_to2.getEuler().y-rot_from2.getEuler().y); + delta_c = (rot_to2.getEuler().z-rot_from2.getEuler().z); + + go= true; } else go= false; } diff --git a/Sources/arm/Sound_amb.hx b/Sources/arm/Sound_amb.hx new file mode 100644 index 0000000..0784888 --- /dev/null +++ b/Sources/arm/Sound_amb.hx @@ -0,0 +1,27 @@ +package arm; + +class Sound_amb extends iron.Trait { + public function new() { + super(); + + // notifyOnInit(function() { + // }); + + notifyOnUpdate(function() { + + var mouse = iron.system.Input.getMouse(); + + // Mouse clicked + if (mouse.started()) { + + // Randomly play one of the three hit sounds + iron.data.Data.getSound('amb_bird_1.wav', function(sound:kha.Sound) { + iron.system.Audio.play(sound); + }); + } + }); + + // notifyOnRemove(function() { + // }); + } +} diff --git a/Sources/arm/node/Generale.hx b/Sources/arm/node/General.hx similarity index 98% rename from Sources/arm/node/Generale.hx rename to Sources/arm/node/General.hx index 0e781e3..2eebcdb 100644 --- a/Sources/arm/node/Generale.hx +++ b/Sources/arm/node/General.hx @@ -1,6 +1,6 @@ package arm.node; -@:keep class Generale extends armory.logicnode.LogicTree { +@:keep class General extends armory.logicnode.LogicTree { var functionNodes:Map; @@ -8,7 +8,7 @@ package arm.node; public function new() { super(); - name = "Generale"; + name = "General"; this.functionNodes = new Map(); this.functionOutputNodes = new Map(); notifyOnAdd(add); diff --git a/Sources/arm/node/Intro.hx b/Sources/arm/node/Intro.hx index 324860d..adad06e 100644 --- a/Sources/arm/node/Intro.hx +++ b/Sources/arm/node/Intro.hx @@ -158,10 +158,6 @@ package arm.node; _OnMouse.property0 = "Down"; _OnMouse.property1 = "left"; _OnMouse.addOutputs([new armory.logicnode.NullNode(this)]); - var _LookAt = new armory.logicnode.LookAtNode(this); - _LookAt.addInput(new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0), 0); - _LookAt.addInput(new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0), 0); - _LookAt.addOutputs([new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0)]); var _SetVariable_003 = new armory.logicnode.SetVariableNode(this); var _OnMouse_001 = new armory.logicnode.OnMouseNode(this); _OnMouse_001.property0 = "Down"; diff --git a/Sources/arm/node/Intro_cam2.hx b/Sources/arm/node/Intro_cam2.hx new file mode 100644 index 0000000..2034485 --- /dev/null +++ b/Sources/arm/node/Intro_cam2.hx @@ -0,0 +1,70 @@ +package arm.node; + +@:keep class Intro_cam2 extends armory.logicnode.LogicTree { + + var functionNodes:Map; + + var functionOutputNodes:Map; + + public function new() { + super(); + name = "Intro_cam2"; + this.functionNodes = new Map(); + this.functionOutputNodes = new Map(); + notifyOnAdd(add); + } + + override public function add() { + var _SetRotation = new armory.logicnode.SetRotationNode(this); + var _Branch = new armory.logicnode.BranchNode(this); + var _OnUpdate = new armory.logicnode.OnUpdateNode(this); + _OnUpdate.property0 = "Update"; + _OnUpdate.addOutputs([_Branch]); + _Branch.addInput(_OnUpdate, 0); + var _LookingAt = new armory.logicnode.LookingAtNode(this); + var _GetLocation = new armory.logicnode.GetLocationNode(this); + var _Object = new armory.logicnode.ObjectNode(this); + _Object.addInput(new armory.logicnode.ObjectNode(this, "Signpost_depart"), 0); + _Object.addOutputs([_GetLocation]); + _GetLocation.addInput(_Object, 0); + _GetLocation.addOutputs([_LookingAt]); + _LookingAt.addInput(_GetLocation, 0); + var _GetLocation_001 = new armory.logicnode.GetLocationNode(this); + var _Object_001 = new armory.logicnode.ObjectNode(this); + _Object_001.addInput(new armory.logicnode.ObjectNode(this, ""), 0); + _Object_001.addOutputs([_GetLocation_001]); + _GetLocation_001.addInput(_Object_001, 0); + _GetLocation_001.addOutputs([_LookingAt]); + _LookingAt.addInput(_GetLocation_001, 0); + var _Vector = new armory.logicnode.VectorNode(this); + _Vector.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + _Vector.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + _Vector.addInput(new armory.logicnode.FloatNode(this, 1.0), 0); + _Vector.addOutputs([_LookingAt]); + _LookingAt.addInput(_Vector, 0); + var _Vector_001 = new armory.logicnode.VectorNode(this); + _Vector_001.addInput(new armory.logicnode.FloatNode(this, 1.0), 0); + _Vector_001.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + _Vector_001.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + _Vector_001.addOutputs([_LookingAt]); + _LookingAt.addInput(_Vector_001, 0); + _LookingAt.addInput(new armory.logicnode.BooleanNode(this, false), 0); + _LookingAt.addInput(new armory.logicnode.BooleanNode(this, false), 0); + _LookingAt.addInput(new armory.logicnode.BooleanNode(this, false), 0); + _LookingAt.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + _LookingAt.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + _LookingAt.addInput(new armory.logicnode.BooleanNode(this, false), 0); + _LookingAt.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + _LookingAt.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + _LookingAt.addOutputs([_SetRotation]); + _LookingAt.addOutputs([new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0)]); + _LookingAt.addOutputs([_Branch]); + _Branch.addInput(_LookingAt, 2); + _Branch.addOutputs([_SetRotation]); + _Branch.addOutputs([new armory.logicnode.NullNode(this)]); + _SetRotation.addInput(_Branch, 0); + _SetRotation.addInput(new armory.logicnode.ObjectNode(this, ""), 0); + _SetRotation.addInput(_LookingAt, 0); + _SetRotation.addOutputs([new armory.logicnode.NullNode(this)]); + } +} \ No newline at end of file diff --git a/Sources/arm/node/Deplacement.hx b/Sources/arm/node/Moving.hx similarity index 97% rename from Sources/arm/node/Deplacement.hx rename to Sources/arm/node/Moving.hx index e7c996d..4e111fc 100644 --- a/Sources/arm/node/Deplacement.hx +++ b/Sources/arm/node/Moving.hx @@ -1,6 +1,6 @@ package arm.node; -@:keep class Deplacement extends armory.logicnode.LogicTree { +@:keep class Moving extends armory.logicnode.LogicTree { var functionNodes:Map; @@ -8,7 +8,7 @@ package arm.node; public function new() { super(); - name = "Deplacement"; + name = "Moving"; this.functionNodes = new Map(); this.functionOutputNodes = new Map(); notifyOnAdd(add); @@ -141,176 +141,6 @@ package arm.node; _PlayAction_006.addInput(new armory.logicnode.FloatNode(this, 0.20000000298023224), 0); _PlayAction_006.addOutputs([new armory.logicnode.NullNode(this)]); _PlayAction_006.addOutputs([new armory.logicnode.NullNode(this)]); - var _PlayAction_011 = new armory.logicnode.PlayActionNode(this); - var _PlayAction_010 = new armory.logicnode.PlayActionNode(this); - var _ApplyForce = new armory.logicnode.ApplyForceNode(this); - var _IsTrue = new armory.logicnode.IsTrueNode(this); - var _ArrayLoop = new armory.logicnode.ArrayLoopNode(this); - var _IsFalse_004 = new armory.logicnode.IsFalseNode(this); - var _OnKeyboard = new armory.logicnode.OnKeyboardNode(this); - _OnKeyboard.property0 = "Started"; - _OnKeyboard.property1 = "space"; - _OnKeyboard.addOutputs([_IsFalse_004]); - _IsFalse_004.addInput(_OnKeyboard, 0); - var _GetProperty_004 = new armory.logicnode.GetPropertyNode(this); - _GetProperty_004.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); - _GetProperty_004.addInput(new armory.logicnode.StringNode(this, "courrir_on"), 0); - _GetProperty_004.addOutputs([_IsFalse_004]); - _IsFalse_004.addInput(_GetProperty_004, 0); - _IsFalse_004.addOutputs([_ArrayLoop]); - _ArrayLoop.addInput(_IsFalse_004, 0); - var _Array_Object_ = new armory.logicnode.ArrayObjectNode(this); - _Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "Terrain"), 0); - _Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "bridge_01"), 0); - _Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "bridge_02"), 0); - _Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "Platforme"), 0); - _Array_Object_.addOutputs([_ArrayLoop]); - _Array_Object_.addOutputs([new armory.logicnode.IntegerNode(this, 0)]); - _ArrayLoop.addInput(_Array_Object_, 0); - _ArrayLoop.addOutputs([_IsTrue]); - var _HasContact = new armory.logicnode.HasContactNode(this); - _HasContact.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); - _HasContact.addInput(_ArrayLoop, 1); - _HasContact.addOutputs([_IsTrue]); - _ArrayLoop.addOutputs([_HasContact]); - _ArrayLoop.addOutputs([new armory.logicnode.NullNode(this)]); - _IsTrue.addInput(_ArrayLoop, 0); - _IsTrue.addInput(_HasContact, 0); - var _LoopBreak = new armory.logicnode.LoopBreakNode(this); - _LoopBreak.addInput(_IsTrue, 0); - _IsTrue.addOutputs([_ApplyForce, _LoopBreak]); - _ApplyForce.addInput(_IsTrue, 0); - _ApplyForce.addInput(new armory.logicnode.ObjectNode(this, ""), 0); - var _Vector_002 = new armory.logicnode.VectorNode(this); - _Vector_002.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); - _Vector_002.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); - var _Float_002 = new armory.logicnode.FloatNode(this); - _Float_002.addInput(new armory.logicnode.FloatNode(this, 500.0), 0); - _Float_002.addOutputs([_Vector_002]); - _Vector_002.addInput(_Float_002, 0); - _Vector_002.addOutputs([_ApplyForce]); - _ApplyForce.addInput(_Vector_002, 0); - _ApplyForce.addOutputs([_PlayAction_010]); - _PlayAction_010.addInput(_ApplyForce, 0); - _PlayAction_010.addInput(new armory.logicnode.ObjectNode(this, "RigFrankie"), 0); - _PlayAction_010.addInput(new armory.logicnode.StringNode(this, "Frankie_Jump"), 0); - _PlayAction_010.addInput(new armory.logicnode.FloatNode(this, 0.20000000298023224), 0); - _PlayAction_010.addOutputs([new armory.logicnode.NullNode(this)]); - _PlayAction_010.addOutputs([_PlayAction_011]); - _PlayAction_011.addInput(_PlayAction_010, 1); - _PlayAction_011.addInput(new armory.logicnode.ObjectNode(this, "RigFrankie"), 0); - _PlayAction_011.addInput(new armory.logicnode.StringNode(this, "Frankie_Falling"), 0); - _PlayAction_011.addInput(new armory.logicnode.FloatNode(this, 0.20000000298023224), 0); - _PlayAction_011.addOutputs([new armory.logicnode.NullNode(this)]); - _PlayAction_011.addOutputs([new armory.logicnode.NullNode(this)]); - var _TranslateOnLocalAxis_001 = new armory.logicnode.TranslateOnLocalAxisNode(this); - var _IsFalse_003 = new armory.logicnode.IsFalseNode(this); - var _OnKeyboard_001 = new armory.logicnode.OnKeyboardNode(this); - _OnKeyboard_001.property0 = "Down"; - _OnKeyboard_001.property1 = "down"; - _OnKeyboard_001.addOutputs([_IsFalse_003]); - _IsFalse_003.addInput(_OnKeyboard_001, 0); - var _GetProperty_003 = new armory.logicnode.GetPropertyNode(this); - _GetProperty_003.addInput(new armory.logicnode.ObjectNode(this, "Signpost_depart"), 0); - _GetProperty_003.addInput(new armory.logicnode.StringNode(this, "depart"), 0); - var _IsFalse_002 = new armory.logicnode.IsFalseNode(this); - var _OnKeyboard_009 = new armory.logicnode.OnKeyboardNode(this); - _OnKeyboard_009.property0 = "Down"; - _OnKeyboard_009.property1 = "up"; - _OnKeyboard_009.addOutputs([_IsFalse_002]); - _IsFalse_002.addInput(_OnKeyboard_009, 0); - _IsFalse_002.addInput(_GetProperty_003, 0); - var _Branch = new armory.logicnode.BranchNode(this); - _Branch.addInput(_IsFalse_002, 0); - var _GetProperty = new armory.logicnode.GetPropertyNode(this); - _GetProperty.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); - _GetProperty.addInput(new armory.logicnode.StringNode(this, "courrir_on"), 0); - _GetProperty.addOutputs([_Branch]); - _Branch.addInput(_GetProperty, 0); - var _SendEvent_001 = new armory.logicnode.SendEventNode(this); - _SendEvent_001.addInput(_Branch, 0); - _SendEvent_001.addInput(new armory.logicnode.StringNode(this, "courrir"), 0); - _SendEvent_001.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); - _SendEvent_001.addOutputs([new armory.logicnode.NullNode(this)]); - _Branch.addOutputs([_SendEvent_001]); - var _SendEvent = new armory.logicnode.SendEventNode(this); - _SendEvent.addInput(_Branch, 1); - _SendEvent.addInput(new armory.logicnode.StringNode(this, "avancer"), 0); - _SendEvent.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); - _SendEvent.addOutputs([new armory.logicnode.NullNode(this)]); - _Branch.addOutputs([_SendEvent]); - _IsFalse_002.addOutputs([_Branch]); - _GetProperty_003.addOutputs([_IsFalse_002, _IsFalse_003]); - _IsFalse_003.addInput(_GetProperty_003, 0); - var _PlayAction_001 = new armory.logicnode.PlayActionNode(this); - _PlayAction_001.addInput(_IsFalse_003, 0); - _PlayAction_001.addInput(new armory.logicnode.ObjectNode(this, "RigFrankie"), 0); - _PlayAction_001.addInput(new armory.logicnode.StringNode(this, "Frankie_WalkBack"), 0); - _PlayAction_001.addInput(new armory.logicnode.FloatNode(this, 0.20000000298023224), 0); - _PlayAction_001.addOutputs([new armory.logicnode.NullNode(this)]); - _PlayAction_001.addOutputs([new armory.logicnode.NullNode(this)]); - _IsFalse_003.addOutputs([_TranslateOnLocalAxis_001, _PlayAction_001]); - _TranslateOnLocalAxis_001.addInput(_IsFalse_003, 0); - _TranslateOnLocalAxis_001.addInput(new armory.logicnode.ObjectNode(this, ""), 0); - var _Float = new armory.logicnode.FloatNode(this); - _Float.addInput(new armory.logicnode.FloatNode(this, 0.20000000298023224), 0); - var _TranslateOnLocalAxis = new armory.logicnode.TranslateOnLocalAxisNode(this); - var _OnEvent = new armory.logicnode.OnEventNode(this); - _OnEvent.property0 = "avancer"; - var _PlayAction = new armory.logicnode.PlayActionNode(this); - _PlayAction.addInput(_OnEvent, 0); - _PlayAction.addInput(new armory.logicnode.ObjectNode(this, "RigFrankie"), 0); - _PlayAction.addInput(new armory.logicnode.StringNode(this, "Frankie_Walk"), 0); - _PlayAction.addInput(new armory.logicnode.FloatNode(this, 0.20000000298023224), 0); - var _Sleep = new armory.logicnode.SleepNode(this); - _Sleep.addInput(_PlayAction, 0); - _Sleep.addInput(new armory.logicnode.FloatNode(this, 1.0), 0); - var _SetProperty = new armory.logicnode.SetPropertyNode(this); - _SetProperty.addInput(_Sleep, 0); - _SetProperty.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); - _SetProperty.addInput(new armory.logicnode.StringNode(this, "courrir_on"), 0); - var _Boolean = new armory.logicnode.BooleanNode(this); - _Boolean.addInput(new armory.logicnode.BooleanNode(this, true), 0); - _Boolean.addOutputs([_SetProperty]); - _SetProperty.addInput(_Boolean, 0); - _SetProperty.addOutputs([new armory.logicnode.NullNode(this)]); - _Sleep.addOutputs([_SetProperty]); - _PlayAction.addOutputs([_Sleep]); - _PlayAction.addOutputs([new armory.logicnode.NullNode(this)]); - _OnEvent.addOutputs([_TranslateOnLocalAxis, _PlayAction]); - _TranslateOnLocalAxis.addInput(_OnEvent, 0); - _TranslateOnLocalAxis.addInput(new armory.logicnode.ObjectNode(this, ""), 0); - _TranslateOnLocalAxis.addInput(_Float, 0); - _TranslateOnLocalAxis.addInput(new armory.logicnode.IntegerNode(this, 1), 0); - _TranslateOnLocalAxis.addInput(new armory.logicnode.BooleanNode(this, true), 0); - _TranslateOnLocalAxis.addOutputs([new armory.logicnode.NullNode(this)]); - _Float.addOutputs([_TranslateOnLocalAxis_001, _TranslateOnLocalAxis]); - _TranslateOnLocalAxis_001.addInput(_Float, 0); - _TranslateOnLocalAxis_001.addInput(new armory.logicnode.IntegerNode(this, 1), 0); - _TranslateOnLocalAxis_001.addInput(new armory.logicnode.BooleanNode(this, false), 0); - _TranslateOnLocalAxis_001.addOutputs([new armory.logicnode.NullNode(this)]); - var _PlayAction_005 = new armory.logicnode.PlayActionNode(this); - var _OnEvent_001 = new armory.logicnode.OnEventNode(this); - _OnEvent_001.property0 = "courrir"; - var _TranslateOnLocalAxis_002 = new armory.logicnode.TranslateOnLocalAxisNode(this); - _TranslateOnLocalAxis_002.addInput(_OnEvent_001, 0); - _TranslateOnLocalAxis_002.addInput(new armory.logicnode.ObjectNode(this, ""), 0); - _TranslateOnLocalAxis_002.addInput(new armory.logicnode.FloatNode(this, 0.5), 0); - _TranslateOnLocalAxis_002.addInput(new armory.logicnode.IntegerNode(this, 1), 0); - _TranslateOnLocalAxis_002.addInput(new armory.logicnode.BooleanNode(this, true), 0); - _TranslateOnLocalAxis_002.addOutputs([new armory.logicnode.NullNode(this)]); - _OnEvent_001.addOutputs([_TranslateOnLocalAxis_002, _PlayAction_005]); - _PlayAction_005.addInput(_OnEvent_001, 0); - _PlayAction_005.addInput(new armory.logicnode.ObjectNode(this, "RigFrankie"), 0); - _PlayAction_005.addInput(new armory.logicnode.StringNode(this, "Frankie_Run"), 0); - _PlayAction_005.addInput(new armory.logicnode.FloatNode(this, 0.20000000298023224), 0); - _PlayAction_005.addOutputs([new armory.logicnode.NullNode(this)]); - _PlayAction_005.addOutputs([new armory.logicnode.NullNode(this)]); - var _SetActionSpeed = new armory.logicnode.SetActionSpeedNode(this); - _SetActionSpeed.addInput(new armory.logicnode.NullNode(this), 0); - _SetActionSpeed.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); - _SetActionSpeed.addInput(new armory.logicnode.FloatNode(this, 0.5), 0); - _SetActionSpeed.addOutputs([new armory.logicnode.NullNode(this)]); var _RotateObject_002 = new armory.logicnode.RotateObjectNode(this); var _Branch_002 = new armory.logicnode.BranchNode(this); var _IsFalse = new armory.logicnode.IsFalseNode(this); @@ -425,5 +255,179 @@ package arm.node; _RotateObject_002.addInput(new armory.logicnode.ObjectNode(this, ""), 0); _RotateObject_002.addInput(_Vector_003, 0); _RotateObject_002.addOutputs([new armory.logicnode.NullNode(this)]); + var _TranslateOnLocalAxis_001 = new armory.logicnode.TranslateOnLocalAxisNode(this); + var _IsFalse_003 = new armory.logicnode.IsFalseNode(this); + var _OnKeyboard_001 = new armory.logicnode.OnKeyboardNode(this); + _OnKeyboard_001.property0 = "Down"; + _OnKeyboard_001.property1 = "down"; + _OnKeyboard_001.addOutputs([_IsFalse_003]); + _IsFalse_003.addInput(_OnKeyboard_001, 0); + var _GetProperty_003 = new armory.logicnode.GetPropertyNode(this); + _GetProperty_003.addInput(new armory.logicnode.ObjectNode(this, "Signpost_depart"), 0); + _GetProperty_003.addInput(new armory.logicnode.StringNode(this, "depart"), 0); + var _IsFalse_002 = new armory.logicnode.IsFalseNode(this); + var _OnKeyboard_009 = new armory.logicnode.OnKeyboardNode(this); + _OnKeyboard_009.property0 = "Down"; + _OnKeyboard_009.property1 = "up"; + _OnKeyboard_009.addOutputs([_IsFalse_002]); + _IsFalse_002.addInput(_OnKeyboard_009, 0); + _IsFalse_002.addInput(_GetProperty_003, 0); + var _Branch = new armory.logicnode.BranchNode(this); + _Branch.addInput(_IsFalse_002, 0); + var _GetProperty = new armory.logicnode.GetPropertyNode(this); + _GetProperty.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); + _GetProperty.addInput(new armory.logicnode.StringNode(this, "courrir_on"), 0); + _GetProperty.addOutputs([_Branch]); + _Branch.addInput(_GetProperty, 0); + var _SendEvent_001 = new armory.logicnode.SendEventNode(this); + _SendEvent_001.addInput(_Branch, 0); + _SendEvent_001.addInput(new armory.logicnode.StringNode(this, "courrir"), 0); + _SendEvent_001.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); + _SendEvent_001.addOutputs([new armory.logicnode.NullNode(this)]); + _Branch.addOutputs([_SendEvent_001]); + var _SendEvent = new armory.logicnode.SendEventNode(this); + _SendEvent.addInput(_Branch, 1); + _SendEvent.addInput(new armory.logicnode.StringNode(this, "avancer"), 0); + _SendEvent.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); + _SendEvent.addOutputs([new armory.logicnode.NullNode(this)]); + _Branch.addOutputs([_SendEvent]); + _IsFalse_002.addOutputs([_Branch]); + _GetProperty_003.addOutputs([_IsFalse_002, _IsFalse_003]); + _IsFalse_003.addInput(_GetProperty_003, 0); + var _PlayAction_001 = new armory.logicnode.PlayActionNode(this); + _PlayAction_001.addInput(_IsFalse_003, 0); + _PlayAction_001.addInput(new armory.logicnode.ObjectNode(this, "RigFrankie"), 0); + _PlayAction_001.addInput(new armory.logicnode.StringNode(this, "Frankie_WalkBack"), 0); + _PlayAction_001.addInput(new armory.logicnode.FloatNode(this, 0.20000000298023224), 0); + _PlayAction_001.addOutputs([new armory.logicnode.NullNode(this)]); + _PlayAction_001.addOutputs([new armory.logicnode.NullNode(this)]); + _IsFalse_003.addOutputs([_TranslateOnLocalAxis_001, _PlayAction_001]); + _TranslateOnLocalAxis_001.addInput(_IsFalse_003, 0); + _TranslateOnLocalAxis_001.addInput(new armory.logicnode.ObjectNode(this, ""), 0); + var _Float = new armory.logicnode.FloatNode(this); + _Float.addInput(new armory.logicnode.FloatNode(this, 0.20000000298023224), 0); + var _TranslateOnLocalAxis = new armory.logicnode.TranslateOnLocalAxisNode(this); + var _OnEvent = new armory.logicnode.OnEventNode(this); + _OnEvent.property0 = "avancer"; + var _PlayAction = new armory.logicnode.PlayActionNode(this); + _PlayAction.addInput(_OnEvent, 0); + _PlayAction.addInput(new armory.logicnode.ObjectNode(this, "RigFrankie"), 0); + _PlayAction.addInput(new armory.logicnode.StringNode(this, "Frankie_Walk"), 0); + _PlayAction.addInput(new armory.logicnode.FloatNode(this, 0.20000000298023224), 0); + var _Sleep = new armory.logicnode.SleepNode(this); + _Sleep.addInput(_PlayAction, 0); + _Sleep.addInput(new armory.logicnode.FloatNode(this, 1.0), 0); + var _SetProperty = new armory.logicnode.SetPropertyNode(this); + _SetProperty.addInput(_Sleep, 0); + _SetProperty.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); + _SetProperty.addInput(new armory.logicnode.StringNode(this, "courrir_on"), 0); + var _Boolean = new armory.logicnode.BooleanNode(this); + _Boolean.addInput(new armory.logicnode.BooleanNode(this, true), 0); + _Boolean.addOutputs([_SetProperty]); + _SetProperty.addInput(_Boolean, 0); + _SetProperty.addOutputs([new armory.logicnode.NullNode(this)]); + _Sleep.addOutputs([_SetProperty]); + _PlayAction.addOutputs([_Sleep]); + _PlayAction.addOutputs([new armory.logicnode.NullNode(this)]); + _OnEvent.addOutputs([_TranslateOnLocalAxis, _PlayAction]); + _TranslateOnLocalAxis.addInput(_OnEvent, 0); + _TranslateOnLocalAxis.addInput(new armory.logicnode.ObjectNode(this, ""), 0); + _TranslateOnLocalAxis.addInput(_Float, 0); + _TranslateOnLocalAxis.addInput(new armory.logicnode.IntegerNode(this, 1), 0); + _TranslateOnLocalAxis.addInput(new armory.logicnode.BooleanNode(this, true), 0); + _TranslateOnLocalAxis.addOutputs([new armory.logicnode.NullNode(this)]); + _Float.addOutputs([_TranslateOnLocalAxis_001, _TranslateOnLocalAxis]); + _TranslateOnLocalAxis_001.addInput(_Float, 0); + _TranslateOnLocalAxis_001.addInput(new armory.logicnode.IntegerNode(this, 1), 0); + _TranslateOnLocalAxis_001.addInput(new armory.logicnode.BooleanNode(this, false), 0); + _TranslateOnLocalAxis_001.addOutputs([new armory.logicnode.NullNode(this)]); + var _PlayAction_005 = new armory.logicnode.PlayActionNode(this); + var _OnEvent_001 = new armory.logicnode.OnEventNode(this); + _OnEvent_001.property0 = "courrir"; + var _TranslateOnLocalAxis_002 = new armory.logicnode.TranslateOnLocalAxisNode(this); + _TranslateOnLocalAxis_002.addInput(_OnEvent_001, 0); + _TranslateOnLocalAxis_002.addInput(new armory.logicnode.ObjectNode(this, ""), 0); + _TranslateOnLocalAxis_002.addInput(new armory.logicnode.FloatNode(this, 0.5), 0); + _TranslateOnLocalAxis_002.addInput(new armory.logicnode.IntegerNode(this, 1), 0); + _TranslateOnLocalAxis_002.addInput(new armory.logicnode.BooleanNode(this, true), 0); + _TranslateOnLocalAxis_002.addOutputs([new armory.logicnode.NullNode(this)]); + _OnEvent_001.addOutputs([_TranslateOnLocalAxis_002, _PlayAction_005]); + _PlayAction_005.addInput(_OnEvent_001, 0); + _PlayAction_005.addInput(new armory.logicnode.ObjectNode(this, "RigFrankie"), 0); + _PlayAction_005.addInput(new armory.logicnode.StringNode(this, "Frankie_Run"), 0); + _PlayAction_005.addInput(new armory.logicnode.FloatNode(this, 0.20000000298023224), 0); + _PlayAction_005.addOutputs([new armory.logicnode.NullNode(this)]); + _PlayAction_005.addOutputs([new armory.logicnode.NullNode(this)]); + var _SetActionSpeed = new armory.logicnode.SetActionSpeedNode(this); + _SetActionSpeed.addInput(new armory.logicnode.NullNode(this), 0); + _SetActionSpeed.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); + _SetActionSpeed.addInput(new armory.logicnode.FloatNode(this, 0.5), 0); + _SetActionSpeed.addOutputs([new armory.logicnode.NullNode(this)]); + var _PlayAction_011 = new armory.logicnode.PlayActionNode(this); + var _PlayAction_010 = new armory.logicnode.PlayActionNode(this); + var _ApplyForce = new armory.logicnode.ApplyForceNode(this); + var _PlaySpeaker = new armory.logicnode.PlaySoundNode(this); + var _IsTrue = new armory.logicnode.IsTrueNode(this); + var _ArrayLoop = new armory.logicnode.ArrayLoopNode(this); + var _IsFalse_004 = new armory.logicnode.IsFalseNode(this); + var _OnKeyboard = new armory.logicnode.OnKeyboardNode(this); + _OnKeyboard.property0 = "Started"; + _OnKeyboard.property1 = "space"; + _OnKeyboard.addOutputs([_IsFalse_004]); + _IsFalse_004.addInput(_OnKeyboard, 0); + _IsFalse_004.addInput(new armory.logicnode.BooleanNode(this, false), 0); + _IsFalse_004.addOutputs([_ArrayLoop]); + _ArrayLoop.addInput(_IsFalse_004, 0); + var _Array_Object_ = new armory.logicnode.ArrayObjectNode(this); + _Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "Terrain"), 0); + _Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "bridge_01"), 0); + _Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "bridge_02"), 0); + _Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "Platforme"), 0); + _Array_Object_.addOutputs([_ArrayLoop]); + _Array_Object_.addOutputs([new armory.logicnode.IntegerNode(this, 0)]); + _ArrayLoop.addInput(_Array_Object_, 0); + _ArrayLoop.addOutputs([_IsTrue]); + var _HasContact = new armory.logicnode.HasContactNode(this); + _HasContact.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); + _HasContact.addInput(_ArrayLoop, 1); + _HasContact.addOutputs([_IsTrue]); + _ArrayLoop.addOutputs([_HasContact]); + _ArrayLoop.addOutputs([new armory.logicnode.NullNode(this)]); + _IsTrue.addInput(_ArrayLoop, 0); + _IsTrue.addInput(_HasContact, 0); + var _LoopBreak = new armory.logicnode.LoopBreakNode(this); + _LoopBreak.addInput(_IsTrue, 0); + _IsTrue.addOutputs([_LoopBreak, _PlaySpeaker]); + _PlaySpeaker.addInput(_IsTrue, 0); + _PlaySpeaker.addInput(new armory.logicnode.ObjectNode(this, "sfx_jump"), 0); + _PlaySpeaker.addOutputs([_ApplyForce]); + _ApplyForce.addInput(_PlaySpeaker, 0); + _ApplyForce.addInput(new armory.logicnode.ObjectNode(this, ""), 0); + var _Vector_002 = new armory.logicnode.VectorNode(this); + _Vector_002.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + _Vector_002.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + var _Float_002 = new armory.logicnode.FloatNode(this); + _Float_002.addInput(new armory.logicnode.FloatNode(this, 500.0), 0); + _Float_002.addOutputs([_Vector_002]); + _Vector_002.addInput(_Float_002, 0); + _Vector_002.addOutputs([_ApplyForce]); + _ApplyForce.addInput(_Vector_002, 0); + _ApplyForce.addOutputs([_PlayAction_010]); + _PlayAction_010.addInput(_ApplyForce, 0); + _PlayAction_010.addInput(new armory.logicnode.ObjectNode(this, "RigFrankie"), 0); + _PlayAction_010.addInput(new armory.logicnode.StringNode(this, "Frankie_Jump"), 0); + _PlayAction_010.addInput(new armory.logicnode.FloatNode(this, 0.20000000298023224), 0); + _PlayAction_010.addOutputs([new armory.logicnode.NullNode(this)]); + _PlayAction_010.addOutputs([_PlayAction_011]); + _PlayAction_011.addInput(_PlayAction_010, 1); + _PlayAction_011.addInput(new armory.logicnode.ObjectNode(this, "RigFrankie"), 0); + _PlayAction_011.addInput(new armory.logicnode.StringNode(this, "Frankie_Falling"), 0); + _PlayAction_011.addInput(new armory.logicnode.FloatNode(this, 0.20000000298023224), 0); + _PlayAction_011.addOutputs([new armory.logicnode.NullNode(this)]); + _PlayAction_011.addOutputs([new armory.logicnode.NullNode(this)]); + var _GetProperty_004 = new armory.logicnode.GetPropertyNode(this); + _GetProperty_004.addInput(new armory.logicnode.ObjectNode(this, "Joueur"), 0); + _GetProperty_004.addInput(new armory.logicnode.StringNode(this, "courrir_on"), 0); + _GetProperty_004.addOutputs([new armory.logicnode.NullNode(this)]); } } \ No newline at end of file diff --git a/Sources/arm/node/NodeTree.hx b/Sources/arm/node/NodeTree.hx deleted file mode 100644 index 25436c0..0000000 --- a/Sources/arm/node/NodeTree.hx +++ /dev/null @@ -1,50 +0,0 @@ -package arm.node; - -@:keep class NodeTree extends armory.logicnode.LogicTree { - - var functionNodes:Map; - - var functionOutputNodes:Map; - - public function new() { - super(); - name = "NodeTree"; - this.functionNodes = new Map(); - this.functionOutputNodes = new Map(); - notifyOnAdd(add); - } - - override public function add() { - var _Print_001 = new armory.logicnode.PrintNode(this); - var _SetProperty = new armory.logicnode.SetPropertyNode(this); - var _SetLocation_002 = new armory.logicnode.SetLocationNode(this); - var _Print = new armory.logicnode.PrintNode(this); - _Print.addInput(new armory.logicnode.NullNode(this), 0); - var _GetLocation_001 = new armory.logicnode.GetLocationNode(this); - _GetLocation_001.addInput(new armory.logicnode.ObjectNode(this, "plateforme_step4"), 0); - _GetLocation_001.addOutputs([_SetLocation_002, _Print]); - _Print.addInput(_GetLocation_001, 0); - _Print.addOutputs([_SetLocation_002]); - _SetLocation_002.addInput(_Print, 0); - _SetLocation_002.addInput(new armory.logicnode.ObjectNode(this, ""), 0); - _SetLocation_002.addInput(_GetLocation_001, 0); - _SetLocation_002.addOutputs([_SetProperty]); - _SetProperty.addInput(_SetLocation_002, 0); - _SetProperty.addInput(new armory.logicnode.ObjectNode(this, ""), 0); - _SetProperty.addInput(new armory.logicnode.StringNode(this, "step"), 0); - var _Integer = new armory.logicnode.IntegerNode(this); - _Integer.addInput(new armory.logicnode.IntegerNode(this, 4), 0); - _Integer.addOutputs([_SetProperty, _Print_001]); - _SetProperty.addInput(_Integer, 0); - _SetProperty.addOutputs([_Print_001]); - _Print_001.addInput(_SetProperty, 0); - _Print_001.addInput(_Integer, 0); - _Print_001.addOutputs([new armory.logicnode.NullNode(this)]); - var _OnInit_001 = new armory.logicnode.OnInitNode(this); - _OnInit_001.addOutputs([new armory.logicnode.NullNode(this)]); - var _OnMouse = new armory.logicnode.OnMouseNode(this); - _OnMouse.property0 = "Down"; - _OnMouse.property1 = "left"; - _OnMouse.addOutputs([new armory.logicnode.NullNode(this)]); - } -} \ No newline at end of file diff --git a/Sources/arm/node/Plateforme_mvt.hx b/Sources/arm/node/Platform_mvt.hx similarity index 96% rename from Sources/arm/node/Plateforme_mvt.hx rename to Sources/arm/node/Platform_mvt.hx index 4dd1ed3..01ab404 100644 --- a/Sources/arm/node/Plateforme_mvt.hx +++ b/Sources/arm/node/Platform_mvt.hx @@ -1,6 +1,6 @@ package arm.node; -@:keep class Plateforme_mvt extends armory.logicnode.LogicTree { +@:keep class Platform_mvt extends armory.logicnode.LogicTree { var functionNodes:Map; @@ -8,85 +8,13 @@ package arm.node; public function new() { super(); - name = "Plateforme_mvt"; + name = "Platform_mvt"; this.functionNodes = new Map(); this.functionOutputNodes = new Map(); notifyOnAdd(add); } override public function add() { - var _FunctionOutput_003 = new armory.logicnode.FunctionOutputNode(this); - this.functionOutputNodes.set("_FunctionOutput_003", _FunctionOutput_003); - var _Merge_004 = new armory.logicnode.MergeNode(this); - var _SetVariable_010 = new armory.logicnode.SetVariableNode(this); - var _Gate_013 = new armory.logicnode.GateNode(this); - _Gate_013.property0 = "Greater"; - _Gate_013.property1 = 9.999999747378752e-05; - var _Function_003 = new armory.logicnode.FunctionNode(this); - this.functionNodes.set("_Function_003", _Function_003); - _Function_003.addOutputs([_Gate_013]); - var _Math_010 = new armory.logicnode.MathNode(this); - _Math_010.property0 = "Subtract"; - _Math_010.property1 = "false"; - _Math_010.addInput(_Function_003, 1); - _Math_010.addInput(_Function_003, 2); - var _Math_013 = new armory.logicnode.MathNode(this); - _Math_013.property0 = "Abs"; - _Math_013.property1 = "false"; - _Math_013.addInput(_Math_010, 0); - _Math_013.addInput(new armory.logicnode.FloatNode(this, 0.5), 0); - var _Gate_014 = new armory.logicnode.GateNode(this); - _Gate_014.property0 = "Greater"; - _Gate_014.property1 = 9.999999747378752e-05; - _Gate_014.addInput(_Gate_013, 1); - _Gate_014.addInput(_Math_013, 0); - var _Float_007 = new armory.logicnode.FloatNode(this); - _Float_007.addInput(new armory.logicnode.FloatNode(this, 0.019999999552965164), 0); - var _Math_015 = new armory.logicnode.MathNode(this); - _Math_015.property0 = "Multiply"; - _Math_015.property1 = "false"; - _Math_015.addInput(_Float_007, 0); - _Math_015.addInput(new armory.logicnode.FloatNode(this, -1.0), 0); - var _SetVariable_012 = new armory.logicnode.SetVariableNode(this); - _SetVariable_012.addInput(_Gate_014, 0); - var _Float_006 = new armory.logicnode.FloatNode(this); - _Float_006.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); - var _SetVariable_013 = new armory.logicnode.SetVariableNode(this); - _SetVariable_013.addInput(_Gate_014, 1); - _SetVariable_013.addInput(_Float_006, 0); - var _Float_008 = new armory.logicnode.FloatNode(this); - _Float_008.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); - _Float_008.addOutputs([_SetVariable_013]); - _SetVariable_013.addInput(_Float_008, 0); - _SetVariable_013.addOutputs([_Merge_004]); - _Float_006.addOutputs([_SetVariable_010, _SetVariable_012, _SetVariable_013, _FunctionOutput_003]); - _SetVariable_012.addInput(_Float_006, 0); - _SetVariable_012.addInput(_Math_015, 0); - _SetVariable_012.addOutputs([_Merge_004]); - _Math_015.addOutputs([_SetVariable_012]); - _Float_007.addOutputs([_Gate_013, _Gate_014, _SetVariable_010, _Math_015]); - _Gate_014.addInput(_Float_007, 0); - _Gate_014.addOutputs([_SetVariable_012]); - _Gate_014.addOutputs([_SetVariable_013]); - _Math_013.addOutputs([_Gate_014]); - _Math_010.addOutputs([_Gate_013, _Math_013]); - _Function_003.addOutputs([_Math_010]); - _Function_003.addOutputs([_Math_010]); - _Gate_013.addInput(_Function_003, 0); - _Gate_013.addInput(_Math_010, 0); - _Gate_013.addInput(_Float_007, 0); - _Gate_013.addOutputs([_SetVariable_010]); - _Gate_013.addOutputs([_Gate_014]); - _SetVariable_010.addInput(_Gate_013, 0); - _SetVariable_010.addInput(_Float_006, 0); - _SetVariable_010.addInput(_Float_007, 0); - _SetVariable_010.addOutputs([_Merge_004]); - _Merge_004.addInput(_SetVariable_010, 0); - _Merge_004.addInput(_SetVariable_012, 0); - _Merge_004.addInput(_SetVariable_013, 0); - _Merge_004.addOutputs([_FunctionOutput_003]); - _FunctionOutput_003.addInput(_Merge_004, 0); - _FunctionOutput_003.addInput(_Float_006, 0); var _FunctionOutput_004 = new armory.logicnode.FunctionOutputNode(this); this.functionOutputNodes.set("_FunctionOutput_004", _FunctionOutput_004); var _Merge_005 = new armory.logicnode.MergeNode(this); @@ -165,33 +93,6 @@ package arm.node; _Merge_005.addOutputs([_FunctionOutput_004]); _FunctionOutput_004.addInput(_Merge_005, 0); _FunctionOutput_004.addInput(_Vector_012, 0); - var _Print_001 = new armory.logicnode.PrintNode(this); - var _SetProperty = new armory.logicnode.SetPropertyNode(this); - var _SetLocation_002 = new armory.logicnode.SetLocationNode(this); - var _Print = new armory.logicnode.PrintNode(this); - var _OnInit_001 = new armory.logicnode.OnInitNode(this); - _OnInit_001.addOutputs([_Print]); - _Print.addInput(_OnInit_001, 0); - var _GetLocation_001 = new armory.logicnode.GetLocationNode(this); - _GetLocation_001.addInput(new armory.logicnode.ObjectNode(this, "plateforme_step4"), 0); - _GetLocation_001.addOutputs([_SetLocation_002, _Print]); - _Print.addInput(_GetLocation_001, 0); - _Print.addOutputs([_SetLocation_002]); - _SetLocation_002.addInput(_Print, 0); - _SetLocation_002.addInput(new armory.logicnode.ObjectNode(this, "Plateforme_box"), 0); - _SetLocation_002.addInput(_GetLocation_001, 0); - _SetLocation_002.addOutputs([_SetProperty]); - _SetProperty.addInput(_SetLocation_002, 0); - _SetProperty.addInput(new armory.logicnode.ObjectNode(this, ""), 0); - _SetProperty.addInput(new armory.logicnode.StringNode(this, "step"), 0); - var _Integer = new armory.logicnode.IntegerNode(this); - _Integer.addInput(new armory.logicnode.IntegerNode(this, 4), 0); - _Integer.addOutputs([_SetProperty, _Print_001]); - _SetProperty.addInput(_Integer, 0); - _SetProperty.addOutputs([_Print_001]); - _Print_001.addInput(_SetProperty, 0); - _Print_001.addInput(_Integer, 0); - _Print_001.addOutputs([new armory.logicnode.NullNode(this)]); var _SetVariable_015 = new armory.logicnode.SetVariableNode(this); var _CallFunction_012 = new armory.logicnode.CallFunctionNode(this); var _IsTrue_006 = new armory.logicnode.IsTrueNode(this); @@ -371,8 +272,107 @@ package arm.node; _SetVariable_015.addInput(_Vector_011, 0); _SetVariable_015.addInput(_CallFunction_012, 1); _SetVariable_015.addOutputs([new armory.logicnode.NullNode(this)]); + var _FunctionOutput_003 = new armory.logicnode.FunctionOutputNode(this); + this.functionOutputNodes.set("_FunctionOutput_003", _FunctionOutput_003); + var _Merge_004 = new armory.logicnode.MergeNode(this); + var _SetVariable_010 = new armory.logicnode.SetVariableNode(this); + var _Gate_013 = new armory.logicnode.GateNode(this); + _Gate_013.property0 = "Greater"; + _Gate_013.property1 = 9.999999747378752e-05; + var _Function_003 = new armory.logicnode.FunctionNode(this); + this.functionNodes.set("_Function_003", _Function_003); + _Function_003.addOutputs([_Gate_013]); + var _Math_010 = new armory.logicnode.MathNode(this); + _Math_010.property0 = "Subtract"; + _Math_010.property1 = "false"; + _Math_010.addInput(_Function_003, 1); + _Math_010.addInput(_Function_003, 2); + var _Math_013 = new armory.logicnode.MathNode(this); + _Math_013.property0 = "Abs"; + _Math_013.property1 = "false"; + _Math_013.addInput(_Math_010, 0); + _Math_013.addInput(new armory.logicnode.FloatNode(this, 0.5), 0); + var _Gate_014 = new armory.logicnode.GateNode(this); + _Gate_014.property0 = "Greater"; + _Gate_014.property1 = 9.999999747378752e-05; + _Gate_014.addInput(_Gate_013, 1); + _Gate_014.addInput(_Math_013, 0); + var _Float_007 = new armory.logicnode.FloatNode(this); + _Float_007.addInput(new armory.logicnode.FloatNode(this, 0.019999999552965164), 0); + var _Math_015 = new armory.logicnode.MathNode(this); + _Math_015.property0 = "Multiply"; + _Math_015.property1 = "false"; + _Math_015.addInput(_Float_007, 0); + _Math_015.addInput(new armory.logicnode.FloatNode(this, -1.0), 0); + var _SetVariable_012 = new armory.logicnode.SetVariableNode(this); + _SetVariable_012.addInput(_Gate_014, 0); + var _Float_006 = new armory.logicnode.FloatNode(this); + _Float_006.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + var _SetVariable_013 = new armory.logicnode.SetVariableNode(this); + _SetVariable_013.addInput(_Gate_014, 1); + _SetVariable_013.addInput(_Float_006, 0); + var _Float_008 = new armory.logicnode.FloatNode(this); + _Float_008.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + _Float_008.addOutputs([_SetVariable_013]); + _SetVariable_013.addInput(_Float_008, 0); + _SetVariable_013.addOutputs([_Merge_004]); + _Float_006.addOutputs([_SetVariable_010, _SetVariable_012, _SetVariable_013, _FunctionOutput_003]); + _SetVariable_012.addInput(_Float_006, 0); + _SetVariable_012.addInput(_Math_015, 0); + _SetVariable_012.addOutputs([_Merge_004]); + _Math_015.addOutputs([_SetVariable_012]); + _Float_007.addOutputs([_Gate_013, _Gate_014, _SetVariable_010, _Math_015]); + _Gate_014.addInput(_Float_007, 0); + _Gate_014.addOutputs([_SetVariable_012]); + _Gate_014.addOutputs([_SetVariable_013]); + _Math_013.addOutputs([_Gate_014]); + _Math_010.addOutputs([_Gate_013, _Math_013]); + _Function_003.addOutputs([_Math_010]); + _Function_003.addOutputs([_Math_010]); + _Gate_013.addInput(_Function_003, 0); + _Gate_013.addInput(_Math_010, 0); + _Gate_013.addInput(_Float_007, 0); + _Gate_013.addOutputs([_SetVariable_010]); + _Gate_013.addOutputs([_Gate_014]); + _SetVariable_010.addInput(_Gate_013, 0); + _SetVariable_010.addInput(_Float_006, 0); + _SetVariable_010.addInput(_Float_007, 0); + _SetVariable_010.addOutputs([_Merge_004]); + _Merge_004.addInput(_SetVariable_010, 0); + _Merge_004.addInput(_SetVariable_012, 0); + _Merge_004.addInput(_SetVariable_013, 0); + _Merge_004.addOutputs([_FunctionOutput_003]); + _FunctionOutput_003.addInput(_Merge_004, 0); + _FunctionOutput_003.addInput(_Float_006, 0); + var _SetProperty = new armory.logicnode.SetPropertyNode(this); + var _SetLocation_002 = new armory.logicnode.SetLocationNode(this); + var _OnInit_001 = new armory.logicnode.OnInitNode(this); + _OnInit_001.addOutputs([_SetLocation_002]); + _SetLocation_002.addInput(_OnInit_001, 0); + _SetLocation_002.addInput(new armory.logicnode.ObjectNode(this, "Plateforme_box"), 0); + var _GetLocation_001 = new armory.logicnode.GetLocationNode(this); + _GetLocation_001.addInput(new armory.logicnode.ObjectNode(this, "plateforme_step4"), 0); + _GetLocation_001.addOutputs([_SetLocation_002]); + _SetLocation_002.addInput(_GetLocation_001, 0); + _SetLocation_002.addOutputs([_SetProperty]); + _SetProperty.addInput(_SetLocation_002, 0); + _SetProperty.addInput(new armory.logicnode.ObjectNode(this, ""), 0); + _SetProperty.addInput(new armory.logicnode.StringNode(this, "step"), 0); + var _Integer = new armory.logicnode.IntegerNode(this); + _Integer.addInput(new armory.logicnode.IntegerNode(this, 4), 0); + _Integer.addOutputs([_SetProperty]); + _SetProperty.addInput(_Integer, 0); + _SetProperty.addOutputs([new armory.logicnode.NullNode(this)]); } + public function nextstep() { + var functionNode = this.functionNodes["_Function_002"]; + functionNode.args = []; + functionNode.run(0); + return this.functionOutputNodes["_FunctionOutput_004"].result; + } + + public function pas(arg0:Dynamic, arg1:Dynamic) { var functionNode = this.functionNodes["_Function_003"]; functionNode.args = []; @@ -382,12 +382,4 @@ package arm.node; return this.functionOutputNodes["_FunctionOutput_003"].result; } - - public function nextstep() { - var functionNode = this.functionNodes["_Function_002"]; - functionNode.args = []; - functionNode.run(0); - return this.functionOutputNodes["_FunctionOutput_004"].result; - } - } \ No newline at end of file diff --git a/Sources/arm/node/Decor.hx b/Sources/arm/node/Scatter.hx similarity index 99% rename from Sources/arm/node/Decor.hx rename to Sources/arm/node/Scatter.hx index d89c67f..fd2f9f5 100644 --- a/Sources/arm/node/Decor.hx +++ b/Sources/arm/node/Scatter.hx @@ -1,6 +1,6 @@ package arm.node; -@:keep class Decor extends armory.logicnode.LogicTree { +@:keep class Scatter extends armory.logicnode.LogicTree { var functionNodes:Map; @@ -8,161 +8,13 @@ package arm.node; public function new() { super(); - name = "Decor"; + name = "Scatter"; this.functionNodes = new Map(); this.functionOutputNodes = new Map(); notifyOnAdd(add); } override public function add() { - var _Vector = new armory.logicnode.VectorNode(this); - _Vector.addInput(new armory.logicnode.FloatNode(this, -12.0), 0); - _Vector.addInput(new armory.logicnode.FloatNode(this, -10.0), 0); - _Vector.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); - _Vector.addOutputs([new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0)]); - var _Vector_013 = new armory.logicnode.VectorNode(this); - _Vector_013.addInput(new armory.logicnode.FloatNode(this, 1.0), 0); - _Vector_013.addInput(new armory.logicnode.FloatNode(this, 140.0), 0); - _Vector_013.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); - _Vector_013.addOutputs([new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0)]); - var _Vector_012 = new armory.logicnode.VectorNode(this); - _Vector_012.addInput(new armory.logicnode.FloatNode(this, -7.0), 0); - _Vector_012.addInput(new armory.logicnode.FloatNode(this, 67.0), 0); - _Vector_012.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); - _Vector_012.addOutputs([new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0)]); - var _Vector_015 = new armory.logicnode.VectorNode(this); - _Vector_015.addInput(new armory.logicnode.FloatNode(this, -14.799999237060547), 0); - _Vector_015.addInput(new armory.logicnode.FloatNode(this, 70.0), 0); - _Vector_015.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); - _Vector_015.addOutputs([new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0)]); - var _Vector_014 = new armory.logicnode.VectorNode(this); - _Vector_014.addInput(new armory.logicnode.FloatNode(this, 5.0), 0); - _Vector_014.addInput(new armory.logicnode.FloatNode(this, 141.0), 0); - _Vector_014.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); - _Vector_014.addOutputs([new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0)]); - var _Vector_003 = new armory.logicnode.VectorNode(this); - _Vector_003.addInput(new armory.logicnode.FloatNode(this, 4.5), 0); - _Vector_003.addInput(new armory.logicnode.FloatNode(this, 135.0), 0); - _Vector_003.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); - _Vector_003.addOutputs([new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0)]); - var _CallFunction_016 = new armory.logicnode.CallFunctionNode(this); - var _CallFunction_015 = new armory.logicnode.CallFunctionNode(this); - var _CallFunction_014 = new armory.logicnode.CallFunctionNode(this); - var _OnInit_001 = new armory.logicnode.OnInitNode(this); - _OnInit_001.addOutputs([_CallFunction_014]); - _CallFunction_014.addInput(_OnInit_001, 0); - var _SelfTrait_005 = new armory.logicnode.SelfTraitNode(this); - _SelfTrait_005.addOutputs([_CallFunction_014, _CallFunction_015, _CallFunction_016]); - _CallFunction_014.addInput(_SelfTrait_005, 0); - _CallFunction_014.addInput(new armory.logicnode.StringNode(this, "Ajout_objet"), 0); - var _Array_Object_ = new armory.logicnode.ArrayObjectNode(this); - _Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "Champignon_ brun1"), 0); - _Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "Champignon_ brun2"), 0); - _Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "Champignon_ rouge1"), 0); - _Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "Champignon_ rouge2"), 0); - _Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "flower_001.007"), 0); - _Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "flower_001.008"), 0); - _Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "flower_001.013"), 0); - _Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "flower_001.026"), 0); - _Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "flower_001.028"), 0); - _Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "flower_001.029"), 0); - _Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "flower_001.030"), 0); - _Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "flower_star_long1"), 0); - _Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "flower_star_long2"), 0); - _Array_Object_.addOutputs([_CallFunction_014, _CallFunction_015, _CallFunction_016]); - _Array_Object_.addOutputs([new armory.logicnode.IntegerNode(this, 0)]); - _CallFunction_014.addInput(_Array_Object_, 0); - var _Array_Integer_ = new armory.logicnode.ArrayIntegerNode(this); - var _Integer = new armory.logicnode.IntegerNode(this); - _Integer.addInput(new armory.logicnode.IntegerNode(this, 10), 0); - _Integer.addOutputs([_Array_Integer_, _Array_Integer_, _Array_Integer_, _Array_Integer_, _Array_Integer_, _Array_Integer_, _Array_Integer_, _Array_Integer_, _Array_Integer_, _Array_Integer_, _Array_Integer_, _Array_Integer_, _Array_Integer_]); - _Array_Integer_.addInput(_Integer, 0); - _Array_Integer_.addInput(_Integer, 0); - _Array_Integer_.addInput(_Integer, 0); - _Array_Integer_.addInput(_Integer, 0); - _Array_Integer_.addInput(_Integer, 0); - _Array_Integer_.addInput(_Integer, 0); - _Array_Integer_.addInput(_Integer, 0); - _Array_Integer_.addInput(_Integer, 0); - _Array_Integer_.addInput(_Integer, 0); - _Array_Integer_.addInput(_Integer, 0); - _Array_Integer_.addInput(_Integer, 0); - _Array_Integer_.addInput(_Integer, 0); - _Array_Integer_.addInput(_Integer, 0); - _Array_Integer_.addOutputs([_CallFunction_014, _CallFunction_015, _CallFunction_016]); - _Array_Integer_.addOutputs([new armory.logicnode.IntegerNode(this, 0)]); - _CallFunction_014.addInput(_Array_Integer_, 0); - var _Array_Float_ = new armory.logicnode.ArrayFloatNode(this); - _Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); - _Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); - _Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); - _Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); - _Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.7649999856948853), 0); - _Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.7649999856948853), 0); - _Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.7649999856948853), 0); - _Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.7649999856948853), 0); - _Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.7649999856948853), 0); - _Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.7649999856948853), 0); - _Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.7649999856948853), 0); - _Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); - _Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); - _Array_Float_.addOutputs([_CallFunction_014, _CallFunction_015, _CallFunction_016]); - _Array_Float_.addOutputs([new armory.logicnode.IntegerNode(this, 0)]); - _CallFunction_014.addInput(_Array_Float_, 0); - var _Float_002 = new armory.logicnode.FloatNode(this); - _Float_002.addInput(new armory.logicnode.FloatNode(this, 1.0), 0); - _Float_002.addOutputs([_CallFunction_014]); - _CallFunction_014.addInput(_Float_002, 0); - var _Float_009 = new armory.logicnode.FloatNode(this); - _Float_009.addInput(new armory.logicnode.FloatNode(this, 4.0), 0); - _Float_009.addOutputs([_CallFunction_014]); - _CallFunction_014.addInput(_Float_009, 0); - var _Float_010 = new armory.logicnode.FloatNode(this); - _Float_010.addInput(new armory.logicnode.FloatNode(this, -10.0), 0); - _Float_010.addOutputs([_CallFunction_014]); - _CallFunction_014.addInput(_Float_010, 0); - _CallFunction_014.addOutputs([_CallFunction_015]); - _CallFunction_014.addOutputs([new armory.logicnode.NullNode(this)]); - _CallFunction_015.addInput(_CallFunction_014, 0); - _CallFunction_015.addInput(_SelfTrait_005, 0); - _CallFunction_015.addInput(new armory.logicnode.StringNode(this, "Ajout_objet"), 0); - _CallFunction_015.addInput(_Array_Object_, 0); - _CallFunction_015.addInput(_Array_Integer_, 0); - _CallFunction_015.addInput(_Array_Float_, 0); - var _Float_001 = new armory.logicnode.FloatNode(this); - _Float_001.addInput(new armory.logicnode.FloatNode(this, 0.5), 0); - _Float_001.addOutputs([_CallFunction_015]); - _CallFunction_015.addInput(_Float_001, 0); - var _Float_011 = new armory.logicnode.FloatNode(this); - _Float_011.addInput(new armory.logicnode.FloatNode(this, 18.0), 0); - _Float_011.addOutputs([_CallFunction_015]); - _CallFunction_015.addInput(_Float_011, 0); - var _Float_012 = new armory.logicnode.FloatNode(this); - _Float_012.addInput(new armory.logicnode.FloatNode(this, 4.0), 0); - _Float_012.addOutputs([_CallFunction_015]); - _CallFunction_015.addInput(_Float_012, 0); - _CallFunction_015.addOutputs([_CallFunction_016]); - _CallFunction_015.addOutputs([new armory.logicnode.NullNode(this)]); - _CallFunction_016.addInput(_CallFunction_015, 0); - _CallFunction_016.addInput(_SelfTrait_005, 0); - _CallFunction_016.addInput(new armory.logicnode.StringNode(this, "Ajout_objet"), 0); - _CallFunction_016.addInput(_Array_Object_, 0); - _CallFunction_016.addInput(_Array_Integer_, 0); - _CallFunction_016.addInput(_Array_Float_, 0); - var _Float = new armory.logicnode.FloatNode(this); - _Float.addInput(new armory.logicnode.FloatNode(this, 0.5), 0); - _Float.addOutputs([_CallFunction_016]); - _CallFunction_016.addInput(_Float, 0); - var _Float_013 = new armory.logicnode.FloatNode(this); - _Float_013.addInput(new armory.logicnode.FloatNode(this, 45.0), 0); - _Float_013.addOutputs([_CallFunction_016]); - _CallFunction_016.addInput(_Float_013, 0); - var _Float_014 = new armory.logicnode.FloatNode(this); - _Float_014.addInput(new armory.logicnode.FloatNode(this, 25.0), 0); - _Float_014.addOutputs([_CallFunction_016]); - _CallFunction_016.addInput(_Float_014, 0); - _CallFunction_016.addOutputs([new armory.logicnode.NullNode(this)]); - _CallFunction_016.addOutputs([new armory.logicnode.NullNode(this)]); var _FunctionOutput_006 = new armory.logicnode.FunctionOutputNode(this); this.functionOutputNodes.set("_FunctionOutput_006", _FunctionOutput_006); var _Loop = new armory.logicnode.LoopNode(this); @@ -587,6 +439,154 @@ package arm.node; _Vector_002.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); _Vector_002.addOutputs([_FunctionOutput]); _FunctionOutput.addInput(_Vector_002, 0); + var _Vector = new armory.logicnode.VectorNode(this); + _Vector.addInput(new armory.logicnode.FloatNode(this, -12.0), 0); + _Vector.addInput(new armory.logicnode.FloatNode(this, -10.0), 0); + _Vector.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + _Vector.addOutputs([new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0)]); + var _Vector_013 = new armory.logicnode.VectorNode(this); + _Vector_013.addInput(new armory.logicnode.FloatNode(this, 1.0), 0); + _Vector_013.addInput(new armory.logicnode.FloatNode(this, 140.0), 0); + _Vector_013.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + _Vector_013.addOutputs([new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0)]); + var _Vector_012 = new armory.logicnode.VectorNode(this); + _Vector_012.addInput(new armory.logicnode.FloatNode(this, -7.0), 0); + _Vector_012.addInput(new armory.logicnode.FloatNode(this, 67.0), 0); + _Vector_012.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + _Vector_012.addOutputs([new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0)]); + var _Vector_015 = new armory.logicnode.VectorNode(this); + _Vector_015.addInput(new armory.logicnode.FloatNode(this, -14.799999237060547), 0); + _Vector_015.addInput(new armory.logicnode.FloatNode(this, 70.0), 0); + _Vector_015.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + _Vector_015.addOutputs([new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0)]); + var _Vector_014 = new armory.logicnode.VectorNode(this); + _Vector_014.addInput(new armory.logicnode.FloatNode(this, 5.0), 0); + _Vector_014.addInput(new armory.logicnode.FloatNode(this, 141.0), 0); + _Vector_014.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + _Vector_014.addOutputs([new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0)]); + var _Vector_003 = new armory.logicnode.VectorNode(this); + _Vector_003.addInput(new armory.logicnode.FloatNode(this, 4.5), 0); + _Vector_003.addInput(new armory.logicnode.FloatNode(this, 135.0), 0); + _Vector_003.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + _Vector_003.addOutputs([new armory.logicnode.VectorNode(this, 0.0, 0.0, 0.0)]); + var _CallFunction_016 = new armory.logicnode.CallFunctionNode(this); + var _CallFunction_015 = new armory.logicnode.CallFunctionNode(this); + var _CallFunction_014 = new armory.logicnode.CallFunctionNode(this); + var _OnInit_001 = new armory.logicnode.OnInitNode(this); + _OnInit_001.addOutputs([_CallFunction_014]); + _CallFunction_014.addInput(_OnInit_001, 0); + var _SelfTrait_005 = new armory.logicnode.SelfTraitNode(this); + _SelfTrait_005.addOutputs([_CallFunction_014, _CallFunction_015, _CallFunction_016]); + _CallFunction_014.addInput(_SelfTrait_005, 0); + _CallFunction_014.addInput(new armory.logicnode.StringNode(this, "Ajout_objet"), 0); + var _Array_Object_ = new armory.logicnode.ArrayObjectNode(this); + _Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "Champignon_ brun1"), 0); + _Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "Champignon_ brun2"), 0); + _Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "Champignon_ rouge1"), 0); + _Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "Champignon_ rouge2"), 0); + _Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "flower_001.007"), 0); + _Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "flower_001.008"), 0); + _Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "flower_001.013"), 0); + _Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "flower_001.026"), 0); + _Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "flower_001.028"), 0); + _Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "flower_001.029"), 0); + _Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "flower_001.030"), 0); + _Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "flower_star_long1"), 0); + _Array_Object_.addInput(new armory.logicnode.ObjectNode(this, "flower_star_long2"), 0); + _Array_Object_.addOutputs([_CallFunction_014, _CallFunction_015, _CallFunction_016]); + _Array_Object_.addOutputs([new armory.logicnode.IntegerNode(this, 0)]); + _CallFunction_014.addInput(_Array_Object_, 0); + var _Array_Integer_ = new armory.logicnode.ArrayIntegerNode(this); + var _Integer = new armory.logicnode.IntegerNode(this); + _Integer.addInput(new armory.logicnode.IntegerNode(this, 10), 0); + _Integer.addOutputs([_Array_Integer_, _Array_Integer_, _Array_Integer_, _Array_Integer_, _Array_Integer_, _Array_Integer_, _Array_Integer_, _Array_Integer_, _Array_Integer_, _Array_Integer_, _Array_Integer_, _Array_Integer_, _Array_Integer_]); + _Array_Integer_.addInput(_Integer, 0); + _Array_Integer_.addInput(_Integer, 0); + _Array_Integer_.addInput(_Integer, 0); + _Array_Integer_.addInput(_Integer, 0); + _Array_Integer_.addInput(_Integer, 0); + _Array_Integer_.addInput(_Integer, 0); + _Array_Integer_.addInput(_Integer, 0); + _Array_Integer_.addInput(_Integer, 0); + _Array_Integer_.addInput(_Integer, 0); + _Array_Integer_.addInput(_Integer, 0); + _Array_Integer_.addInput(_Integer, 0); + _Array_Integer_.addInput(_Integer, 0); + _Array_Integer_.addInput(_Integer, 0); + _Array_Integer_.addOutputs([_CallFunction_014, _CallFunction_015, _CallFunction_016]); + _Array_Integer_.addOutputs([new armory.logicnode.IntegerNode(this, 0)]); + _CallFunction_014.addInput(_Array_Integer_, 0); + var _Array_Float_ = new armory.logicnode.ArrayFloatNode(this); + _Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + _Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + _Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + _Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + _Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.7649999856948853), 0); + _Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.7649999856948853), 0); + _Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.7649999856948853), 0); + _Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.7649999856948853), 0); + _Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.7649999856948853), 0); + _Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.7649999856948853), 0); + _Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.7649999856948853), 0); + _Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + _Array_Float_.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); + _Array_Float_.addOutputs([_CallFunction_014, _CallFunction_015, _CallFunction_016]); + _Array_Float_.addOutputs([new armory.logicnode.IntegerNode(this, 0)]); + _CallFunction_014.addInput(_Array_Float_, 0); + var _Float_002 = new armory.logicnode.FloatNode(this); + _Float_002.addInput(new armory.logicnode.FloatNode(this, 1.0), 0); + _Float_002.addOutputs([_CallFunction_014]); + _CallFunction_014.addInput(_Float_002, 0); + var _Float_009 = new armory.logicnode.FloatNode(this); + _Float_009.addInput(new armory.logicnode.FloatNode(this, 4.0), 0); + _Float_009.addOutputs([_CallFunction_014]); + _CallFunction_014.addInput(_Float_009, 0); + var _Float_010 = new armory.logicnode.FloatNode(this); + _Float_010.addInput(new armory.logicnode.FloatNode(this, -10.0), 0); + _Float_010.addOutputs([_CallFunction_014]); + _CallFunction_014.addInput(_Float_010, 0); + _CallFunction_014.addOutputs([_CallFunction_015]); + _CallFunction_014.addOutputs([new armory.logicnode.NullNode(this)]); + _CallFunction_015.addInput(_CallFunction_014, 0); + _CallFunction_015.addInput(_SelfTrait_005, 0); + _CallFunction_015.addInput(new armory.logicnode.StringNode(this, "Ajout_objet"), 0); + _CallFunction_015.addInput(_Array_Object_, 0); + _CallFunction_015.addInput(_Array_Integer_, 0); + _CallFunction_015.addInput(_Array_Float_, 0); + var _Float_001 = new armory.logicnode.FloatNode(this); + _Float_001.addInput(new armory.logicnode.FloatNode(this, 0.5), 0); + _Float_001.addOutputs([_CallFunction_015]); + _CallFunction_015.addInput(_Float_001, 0); + var _Float_011 = new armory.logicnode.FloatNode(this); + _Float_011.addInput(new armory.logicnode.FloatNode(this, 18.0), 0); + _Float_011.addOutputs([_CallFunction_015]); + _CallFunction_015.addInput(_Float_011, 0); + var _Float_012 = new armory.logicnode.FloatNode(this); + _Float_012.addInput(new armory.logicnode.FloatNode(this, 4.0), 0); + _Float_012.addOutputs([_CallFunction_015]); + _CallFunction_015.addInput(_Float_012, 0); + _CallFunction_015.addOutputs([_CallFunction_016]); + _CallFunction_015.addOutputs([new armory.logicnode.NullNode(this)]); + _CallFunction_016.addInput(_CallFunction_015, 0); + _CallFunction_016.addInput(_SelfTrait_005, 0); + _CallFunction_016.addInput(new armory.logicnode.StringNode(this, "Ajout_objet"), 0); + _CallFunction_016.addInput(_Array_Object_, 0); + _CallFunction_016.addInput(_Array_Integer_, 0); + _CallFunction_016.addInput(_Array_Float_, 0); + var _Float = new armory.logicnode.FloatNode(this); + _Float.addInput(new armory.logicnode.FloatNode(this, 0.5), 0); + _Float.addOutputs([_CallFunction_016]); + _CallFunction_016.addInput(_Float, 0); + var _Float_013 = new armory.logicnode.FloatNode(this); + _Float_013.addInput(new armory.logicnode.FloatNode(this, 45.0), 0); + _Float_013.addOutputs([_CallFunction_016]); + _CallFunction_016.addInput(_Float_013, 0); + var _Float_014 = new armory.logicnode.FloatNode(this); + _Float_014.addInput(new armory.logicnode.FloatNode(this, 25.0), 0); + _Float_014.addOutputs([_CallFunction_016]); + _CallFunction_016.addInput(_Float_014, 0); + _CallFunction_016.addOutputs([new armory.logicnode.NullNode(this)]); + _CallFunction_016.addOutputs([new armory.logicnode.NullNode(this)]); } public function Cast_ray_cercle(arg0:Dynamic, arg1:Dynamic, arg2:Dynamic) { diff --git a/Sources/arm/node/Sound_ambiance.hx b/Sources/arm/node/Sound_ambiance.hx new file mode 100644 index 0000000..b6fd089 --- /dev/null +++ b/Sources/arm/node/Sound_ambiance.hx @@ -0,0 +1,415 @@ +package arm.node; + +@:keep class Sound_ambiance extends armory.logicnode.LogicTree { + + var functionNodes:Map; + + var functionOutputNodes:Map; + + public function new() { + super(); + name = "Sound_ambiance"; + this.functionNodes = new Map(); + this.functionOutputNodes = new Map(); + notifyOnAdd(add); + } + + override public function add() { + var _SetVariable_006 = new armory.logicnode.SetVariableNode(this); + var _Merge_002 = new armory.logicnode.MergeNode(this); + var _PlaySpeaker_002 = new armory.logicnode.PlaySoundNode(this); + var _Branch_002 = new armory.logicnode.BranchNode(this); + var _IsTrue_004 = new armory.logicnode.IsTrueNode(this); + var _Print_005 = new armory.logicnode.PrintNode(this); + var _SetVariable_007 = new armory.logicnode.SetVariableNode(this); + var _OnTimer_002 = new armory.logicnode.OnTimerNode(this); + _OnTimer_002.addInput(new armory.logicnode.FloatNode(this, 1.0), 0); + _OnTimer_002.addInput(new armory.logicnode.BooleanNode(this, true), 0); + _OnTimer_002.addOutputs([_SetVariable_007]); + _SetVariable_007.addInput(_OnTimer_002, 0); + var _Integer_012 = new armory.logicnode.IntegerNode(this); + _Integer_012.addInput(new armory.logicnode.IntegerNode(this, 0), 0); + var _Math_002 = new armory.logicnode.MathNode(this); + _Math_002.property0 = "Add"; + _Math_002.property1 = "false"; + _Math_002.addInput(_Integer_012, 0); + _Math_002.addInput(new armory.logicnode.FloatNode(this, 1.0), 0); + var _Compare_002 = new armory.logicnode.CompareNode(this); + _Compare_002.property0 = "Equal"; + _Compare_002.property1 = 9.999999747378752e-05; + _Compare_002.addInput(_Math_002, 0); + var _Function_002 = new armory.logicnode.FunctionNode(this); + this.functionNodes.set("_Function_002", _Function_002); + var _SetVariable_008 = new armory.logicnode.SetVariableNode(this); + _SetVariable_008.addInput(_Function_002, 0); + _SetVariable_008.addInput(_Integer_012, 0); + var _Integer_013 = new armory.logicnode.IntegerNode(this); + _Integer_013.addInput(new armory.logicnode.IntegerNode(this, 0), 0); + _Integer_013.addOutputs([_SetVariable_008]); + _SetVariable_008.addInput(_Integer_013, 0); + _SetVariable_008.addOutputs([new armory.logicnode.NullNode(this)]); + _Function_002.addOutputs([_SetVariable_008]); + _Function_002.addOutputs([_PlaySpeaker_002]); + _Function_002.addOutputs([_Compare_002]); + _Compare_002.addInput(_Function_002, 2); + _Compare_002.addOutputs([_IsTrue_004]); + _Math_002.addOutputs([_SetVariable_007, _Compare_002]); + _Integer_012.addOutputs([_SetVariable_007, _Math_002, _SetVariable_006, _Print_005, _SetVariable_008]); + _SetVariable_007.addInput(_Integer_012, 0); + _SetVariable_007.addInput(_Math_002, 0); + _SetVariable_007.addOutputs([_Print_005]); + _Print_005.addInput(_SetVariable_007, 0); + _Print_005.addInput(_Integer_012, 0); + _Print_005.addOutputs([_IsTrue_004]); + _IsTrue_004.addInput(_Print_005, 0); + _IsTrue_004.addInput(_Compare_002, 0); + _IsTrue_004.addOutputs([_Branch_002]); + _Branch_002.addInput(_IsTrue_004, 0); + var _Random_Boolean__002 = new armory.logicnode.RandomBooleanNode(this); + _Random_Boolean__002.addOutputs([_Branch_002]); + _Branch_002.addInput(_Random_Boolean__002, 0); + _Branch_002.addOutputs([_PlaySpeaker_002]); + _Branch_002.addOutputs([_Merge_002]); + _PlaySpeaker_002.addInput(_Branch_002, 0); + _PlaySpeaker_002.addInput(_Function_002, 1); + _PlaySpeaker_002.addOutputs([_Merge_002]); + _Merge_002.addInput(_PlaySpeaker_002, 0); + _Merge_002.addInput(_Branch_002, 1); + _Merge_002.addOutputs([_SetVariable_006]); + _SetVariable_006.addInput(_Merge_002, 0); + _SetVariable_006.addInput(_Integer_012, 0); + var _Integer_011 = new armory.logicnode.IntegerNode(this); + _Integer_011.addInput(new armory.logicnode.IntegerNode(this, 0), 0); + _Integer_011.addOutputs([_SetVariable_006]); + _SetVariable_006.addInput(_Integer_011, 0); + _SetVariable_006.addOutputs([new armory.logicnode.NullNode(this)]); + var _SetVariable_009 = new armory.logicnode.SetVariableNode(this); + var _Merge_003 = new armory.logicnode.MergeNode(this); + var _PlaySpeaker_003 = new armory.logicnode.PlaySoundNode(this); + var _Branch_003 = new armory.logicnode.BranchNode(this); + var _IsTrue_005 = new armory.logicnode.IsTrueNode(this); + var _SetVariable_010 = new armory.logicnode.SetVariableNode(this); + var _OnTimer_003 = new armory.logicnode.OnTimerNode(this); + _OnTimer_003.addInput(new armory.logicnode.FloatNode(this, 1.0), 0); + _OnTimer_003.addInput(new armory.logicnode.BooleanNode(this, true), 0); + _OnTimer_003.addOutputs([_SetVariable_010]); + _SetVariable_010.addInput(_OnTimer_003, 0); + var _Integer_016 = new armory.logicnode.IntegerNode(this); + _Integer_016.addInput(new armory.logicnode.IntegerNode(this, 0), 0); + var _Math_003 = new armory.logicnode.MathNode(this); + _Math_003.property0 = "Add"; + _Math_003.property1 = "false"; + _Math_003.addInput(_Integer_016, 0); + _Math_003.addInput(new armory.logicnode.FloatNode(this, 1.0), 0); + var _Compare_003 = new armory.logicnode.CompareNode(this); + _Compare_003.property0 = "Equal"; + _Compare_003.property1 = 9.999999747378752e-05; + _Compare_003.addInput(_Math_003, 0); + var _Function_003 = new armory.logicnode.FunctionNode(this); + this.functionNodes.set("_Function_003", _Function_003); + var _SetVariable_011 = new armory.logicnode.SetVariableNode(this); + _SetVariable_011.addInput(_Function_003, 0); + _SetVariable_011.addInput(_Integer_016, 0); + var _Integer_015 = new armory.logicnode.IntegerNode(this); + _Integer_015.addInput(new armory.logicnode.IntegerNode(this, 0), 0); + _Integer_015.addOutputs([_SetVariable_011]); + _SetVariable_011.addInput(_Integer_015, 0); + _SetVariable_011.addOutputs([new armory.logicnode.NullNode(this)]); + _Function_003.addOutputs([_SetVariable_011]); + _Function_003.addOutputs([_PlaySpeaker_003]); + _Function_003.addOutputs([_Compare_003]); + _Compare_003.addInput(_Function_003, 2); + _Compare_003.addOutputs([_IsTrue_005]); + _Math_003.addOutputs([_SetVariable_010, _Compare_003]); + _Integer_016.addOutputs([_SetVariable_010, _Math_003, _SetVariable_009, _SetVariable_011]); + _SetVariable_010.addInput(_Integer_016, 0); + _SetVariable_010.addInput(_Math_003, 0); + _SetVariable_010.addOutputs([_IsTrue_005]); + _IsTrue_005.addInput(_SetVariable_010, 0); + _IsTrue_005.addInput(_Compare_003, 0); + _IsTrue_005.addOutputs([_Branch_003]); + _Branch_003.addInput(_IsTrue_005, 0); + var _Random_Boolean__003 = new armory.logicnode.RandomBooleanNode(this); + _Random_Boolean__003.addOutputs([_Branch_003]); + _Branch_003.addInput(_Random_Boolean__003, 0); + _Branch_003.addOutputs([_PlaySpeaker_003]); + _Branch_003.addOutputs([_Merge_003]); + _PlaySpeaker_003.addInput(_Branch_003, 0); + _PlaySpeaker_003.addInput(_Function_003, 1); + _PlaySpeaker_003.addOutputs([_Merge_003]); + _Merge_003.addInput(_PlaySpeaker_003, 0); + _Merge_003.addInput(_Branch_003, 1); + _Merge_003.addOutputs([_SetVariable_009]); + _SetVariable_009.addInput(_Merge_003, 0); + _SetVariable_009.addInput(_Integer_016, 0); + var _Integer_014 = new armory.logicnode.IntegerNode(this); + _Integer_014.addInput(new armory.logicnode.IntegerNode(this, 0), 0); + _Integer_014.addOutputs([_SetVariable_009]); + _SetVariable_009.addInput(_Integer_014, 0); + _SetVariable_009.addOutputs([new armory.logicnode.NullNode(this)]); + var _SetVariable_003 = new armory.logicnode.SetVariableNode(this); + var _Merge_001 = new armory.logicnode.MergeNode(this); + var _PlaySpeaker_001 = new armory.logicnode.PlaySoundNode(this); + var _Branch_001 = new armory.logicnode.BranchNode(this); + var _IsTrue_003 = new armory.logicnode.IsTrueNode(this); + var _SetVariable_004 = new armory.logicnode.SetVariableNode(this); + var _OnTimer_001 = new armory.logicnode.OnTimerNode(this); + _OnTimer_001.addInput(new armory.logicnode.FloatNode(this, 1.0), 0); + _OnTimer_001.addInput(new armory.logicnode.BooleanNode(this, true), 0); + _OnTimer_001.addOutputs([_SetVariable_004]); + _SetVariable_004.addInput(_OnTimer_001, 0); + var _Integer_007 = new armory.logicnode.IntegerNode(this); + _Integer_007.addInput(new armory.logicnode.IntegerNode(this, 0), 0); + var _Math_001 = new armory.logicnode.MathNode(this); + _Math_001.property0 = "Add"; + _Math_001.property1 = "false"; + _Math_001.addInput(_Integer_007, 0); + _Math_001.addInput(new armory.logicnode.FloatNode(this, 1.0), 0); + var _Compare_001 = new armory.logicnode.CompareNode(this); + _Compare_001.property0 = "Equal"; + _Compare_001.property1 = 9.999999747378752e-05; + _Compare_001.addInput(_Math_001, 0); + var _Function_001 = new armory.logicnode.FunctionNode(this); + this.functionNodes.set("_Function_001", _Function_001); + var _SetVariable_005 = new armory.logicnode.SetVariableNode(this); + _SetVariable_005.addInput(_Function_001, 0); + _SetVariable_005.addInput(_Integer_007, 0); + var _Integer_008 = new armory.logicnode.IntegerNode(this); + _Integer_008.addInput(new armory.logicnode.IntegerNode(this, 0), 0); + _Integer_008.addOutputs([_SetVariable_005]); + _SetVariable_005.addInput(_Integer_008, 0); + _SetVariable_005.addOutputs([new armory.logicnode.NullNode(this)]); + _Function_001.addOutputs([_SetVariable_005]); + _Function_001.addOutputs([_PlaySpeaker_001]); + _Function_001.addOutputs([_Compare_001]); + _Compare_001.addInput(_Function_001, 2); + _Compare_001.addOutputs([_IsTrue_003]); + _Math_001.addOutputs([_SetVariable_004, _Compare_001]); + _Integer_007.addOutputs([_SetVariable_004, _Math_001, _SetVariable_003, _SetVariable_005]); + _SetVariable_004.addInput(_Integer_007, 0); + _SetVariable_004.addInput(_Math_001, 0); + _SetVariable_004.addOutputs([_IsTrue_003]); + _IsTrue_003.addInput(_SetVariable_004, 0); + _IsTrue_003.addInput(_Compare_001, 0); + _IsTrue_003.addOutputs([_Branch_001]); + _Branch_001.addInput(_IsTrue_003, 0); + var _Random_Boolean__001 = new armory.logicnode.RandomBooleanNode(this); + _Random_Boolean__001.addOutputs([_Branch_001]); + _Branch_001.addInput(_Random_Boolean__001, 0); + _Branch_001.addOutputs([_PlaySpeaker_001]); + _Branch_001.addOutputs([_Merge_001]); + _PlaySpeaker_001.addInput(_Branch_001, 0); + _PlaySpeaker_001.addInput(_Function_001, 1); + _PlaySpeaker_001.addOutputs([_Merge_001]); + _Merge_001.addInput(_PlaySpeaker_001, 0); + _Merge_001.addInput(_Branch_001, 1); + _Merge_001.addOutputs([_SetVariable_003]); + _SetVariable_003.addInput(_Merge_001, 0); + _SetVariable_003.addInput(_Integer_007, 0); + var _Integer_006 = new armory.logicnode.IntegerNode(this); + _Integer_006.addInput(new armory.logicnode.IntegerNode(this, 0), 0); + _Integer_006.addOutputs([_SetVariable_003]); + _SetVariable_003.addInput(_Integer_006, 0); + _SetVariable_003.addOutputs([new armory.logicnode.NullNode(this)]); + var _SetVariable_001 = new armory.logicnode.SetVariableNode(this); + var _Merge = new armory.logicnode.MergeNode(this); + var _PlaySpeaker = new armory.logicnode.PlaySoundNode(this); + var _Branch = new armory.logicnode.BranchNode(this); + var _IsTrue_002 = new armory.logicnode.IsTrueNode(this); + var _SetVariable = new armory.logicnode.SetVariableNode(this); + var _OnTimer = new armory.logicnode.OnTimerNode(this); + _OnTimer.addInput(new armory.logicnode.FloatNode(this, 1.0), 0); + _OnTimer.addInput(new armory.logicnode.BooleanNode(this, true), 0); + _OnTimer.addOutputs([_SetVariable]); + _SetVariable.addInput(_OnTimer, 0); + var _Integer_001 = new armory.logicnode.IntegerNode(this); + _Integer_001.addInput(new armory.logicnode.IntegerNode(this, 0), 0); + var _Math = new armory.logicnode.MathNode(this); + _Math.property0 = "Add"; + _Math.property1 = "false"; + _Math.addInput(_Integer_001, 0); + _Math.addInput(new armory.logicnode.FloatNode(this, 1.0), 0); + var _Compare = new armory.logicnode.CompareNode(this); + _Compare.property0 = "Equal"; + _Compare.property1 = 9.999999747378752e-05; + _Compare.addInput(_Math, 0); + var _Function = new armory.logicnode.FunctionNode(this); + this.functionNodes.set("_Function", _Function); + var _SetVariable_002 = new armory.logicnode.SetVariableNode(this); + _SetVariable_002.addInput(_Function, 0); + _SetVariable_002.addInput(_Integer_001, 0); + var _Integer_003 = new armory.logicnode.IntegerNode(this); + _Integer_003.addInput(new armory.logicnode.IntegerNode(this, 0), 0); + _Integer_003.addOutputs([_SetVariable_002]); + _SetVariable_002.addInput(_Integer_003, 0); + _SetVariable_002.addOutputs([new armory.logicnode.NullNode(this)]); + _Function.addOutputs([_SetVariable_002]); + _Function.addOutputs([_PlaySpeaker]); + _Function.addOutputs([_Compare]); + _Compare.addInput(_Function, 2); + _Compare.addOutputs([_IsTrue_002]); + _Math.addOutputs([_SetVariable, _Compare]); + _Integer_001.addOutputs([_SetVariable, _Math, _SetVariable_001, _SetVariable_002]); + _SetVariable.addInput(_Integer_001, 0); + _SetVariable.addInput(_Math, 0); + _SetVariable.addOutputs([_IsTrue_002]); + _IsTrue_002.addInput(_SetVariable, 0); + _IsTrue_002.addInput(_Compare, 0); + _IsTrue_002.addOutputs([_Branch]); + _Branch.addInput(_IsTrue_002, 0); + var _Random_Boolean_ = new armory.logicnode.RandomBooleanNode(this); + _Random_Boolean_.addOutputs([_Branch]); + _Branch.addInput(_Random_Boolean_, 0); + _Branch.addOutputs([_PlaySpeaker]); + _Branch.addOutputs([_Merge]); + _PlaySpeaker.addInput(_Branch, 0); + _PlaySpeaker.addInput(_Function, 1); + _PlaySpeaker.addOutputs([_Merge]); + _Merge.addInput(_PlaySpeaker, 0); + _Merge.addInput(_Branch, 1); + _Merge.addOutputs([_SetVariable_001]); + _SetVariable_001.addInput(_Merge, 0); + _SetVariable_001.addInput(_Integer_001, 0); + var _Integer_002 = new armory.logicnode.IntegerNode(this); + _Integer_002.addInput(new armory.logicnode.IntegerNode(this, 0), 0); + _Integer_002.addOutputs([_SetVariable_001]); + _SetVariable_001.addInput(_Integer_002, 0); + _SetVariable_001.addOutputs([new armory.logicnode.NullNode(this)]); + var _CallFunction = new armory.logicnode.CallFunctionNode(this); + var _OnInit = new armory.logicnode.OnInitNode(this); + var _CallFunction_001 = new armory.logicnode.CallFunctionNode(this); + _CallFunction_001.addInput(_OnInit, 0); + var _SelfTrait_001 = new armory.logicnode.SelfTraitNode(this); + _SelfTrait_001.addOutputs([_CallFunction_001]); + _CallFunction_001.addInput(_SelfTrait_001, 0); + _CallFunction_001.addInput(new armory.logicnode.StringNode(this, "Son_ambiance1"), 0); + var _ArrayGet_002 = new armory.logicnode.ArrayGetNode(this); + var _Array_Object__002 = new armory.logicnode.ArrayObjectNode(this); + _Array_Object__002.addInput(new armory.logicnode.ObjectNode(this, "amb_bird_1"), 0); + _Array_Object__002.addInput(new armory.logicnode.ObjectNode(this, "amb_bird_2"), 0); + _Array_Object__002.addInput(new armory.logicnode.ObjectNode(this, "amb_cricket_1"), 0); + _Array_Object__002.addInput(new armory.logicnode.ObjectNode(this, "amb_frog_1"), 0); + var _ArrayGet = new armory.logicnode.ArrayGetNode(this); + _ArrayGet.addInput(_Array_Object__002, 0); + var _Integer_004 = new armory.logicnode.IntegerNode(this); + _Integer_004.addInput(new armory.logicnode.IntegerNode(this, 0), 0); + var _ArrayGet_001 = new armory.logicnode.ArrayGetNode(this); + var _Array_Integer_ = new armory.logicnode.ArrayIntegerNode(this); + _Array_Integer_.addInput(new armory.logicnode.IntegerNode(this, 10), 0); + _Array_Integer_.addInput(new armory.logicnode.IntegerNode(this, 8), 0); + _Array_Integer_.addInput(new armory.logicnode.IntegerNode(this, 2), 0); + _Array_Integer_.addInput(new armory.logicnode.IntegerNode(this, 5), 0); + var _ArrayGet_003 = new armory.logicnode.ArrayGetNode(this); + _ArrayGet_003.addInput(_Array_Integer_, 0); + var _Integer_005 = new armory.logicnode.IntegerNode(this); + _Integer_005.addInput(new armory.logicnode.IntegerNode(this, 1), 0); + _Integer_005.addOutputs([_ArrayGet_002, _ArrayGet_003]); + _ArrayGet_003.addInput(_Integer_005, 0); + _ArrayGet_003.addOutputs([_CallFunction_001]); + var _ArrayGet_007 = new armory.logicnode.ArrayGetNode(this); + _ArrayGet_007.addInput(_Array_Integer_, 0); + var _Integer_009 = new armory.logicnode.IntegerNode(this); + _Integer_009.addInput(new armory.logicnode.IntegerNode(this, 3), 0); + var _ArrayGet_006 = new armory.logicnode.ArrayGetNode(this); + _ArrayGet_006.addInput(_Array_Object__002, 0); + _ArrayGet_006.addInput(_Integer_009, 0); + var _CallFunction_003 = new armory.logicnode.CallFunctionNode(this); + _CallFunction_003.addInput(_OnInit, 0); + var _SelfTrait_003 = new armory.logicnode.SelfTraitNode(this); + _SelfTrait_003.addOutputs([_CallFunction_003]); + _CallFunction_003.addInput(_SelfTrait_003, 0); + _CallFunction_003.addInput(new armory.logicnode.StringNode(this, "Son_ambiance3"), 0); + _CallFunction_003.addInput(_ArrayGet_006, 0); + _CallFunction_003.addInput(_ArrayGet_007, 0); + _CallFunction_003.addOutputs([new armory.logicnode.NullNode(this)]); + _CallFunction_003.addOutputs([new armory.logicnode.NullNode(this)]); + _ArrayGet_006.addOutputs([_CallFunction_003]); + _Integer_009.addOutputs([_ArrayGet_006, _ArrayGet_007]); + _ArrayGet_007.addInput(_Integer_009, 0); + _ArrayGet_007.addOutputs([_CallFunction_003]); + var _ArrayGet_005 = new armory.logicnode.ArrayGetNode(this); + _ArrayGet_005.addInput(_Array_Integer_, 0); + var _Integer_010 = new armory.logicnode.IntegerNode(this); + _Integer_010.addInput(new armory.logicnode.IntegerNode(this, 2), 0); + var _ArrayGet_004 = new armory.logicnode.ArrayGetNode(this); + _ArrayGet_004.addInput(_Array_Object__002, 0); + _ArrayGet_004.addInput(_Integer_010, 0); + var _CallFunction_002 = new armory.logicnode.CallFunctionNode(this); + _CallFunction_002.addInput(_OnInit, 0); + var _SelfTrait_002 = new armory.logicnode.SelfTraitNode(this); + _SelfTrait_002.addOutputs([_CallFunction_002]); + _CallFunction_002.addInput(_SelfTrait_002, 0); + _CallFunction_002.addInput(new armory.logicnode.StringNode(this, "Son_ambiance2"), 0); + _CallFunction_002.addInput(_ArrayGet_004, 0); + _CallFunction_002.addInput(_ArrayGet_005, 0); + _CallFunction_002.addOutputs([new armory.logicnode.NullNode(this)]); + _CallFunction_002.addOutputs([new armory.logicnode.NullNode(this)]); + _ArrayGet_004.addOutputs([_CallFunction_002]); + _Integer_010.addOutputs([_ArrayGet_005, _ArrayGet_004]); + _ArrayGet_005.addInput(_Integer_010, 0); + _ArrayGet_005.addOutputs([_CallFunction_002]); + _Array_Integer_.addOutputs([_ArrayGet_001, _ArrayGet_003, _ArrayGet_007, _ArrayGet_005]); + _Array_Integer_.addOutputs([new armory.logicnode.IntegerNode(this, 0)]); + _ArrayGet_001.addInput(_Array_Integer_, 0); + _ArrayGet_001.addInput(_Integer_004, 0); + _ArrayGet_001.addOutputs([_CallFunction]); + _Integer_004.addOutputs([_ArrayGet, _ArrayGet_001]); + _ArrayGet.addInput(_Integer_004, 0); + _ArrayGet.addOutputs([_CallFunction]); + _Array_Object__002.addOutputs([_ArrayGet, _ArrayGet_002, _ArrayGet_006, _ArrayGet_004]); + _Array_Object__002.addOutputs([new armory.logicnode.IntegerNode(this, 0)]); + _ArrayGet_002.addInput(_Array_Object__002, 0); + _ArrayGet_002.addInput(_Integer_005, 0); + _ArrayGet_002.addOutputs([_CallFunction_001]); + _CallFunction_001.addInput(_ArrayGet_002, 0); + _CallFunction_001.addInput(_ArrayGet_003, 0); + _CallFunction_001.addOutputs([new armory.logicnode.NullNode(this)]); + _CallFunction_001.addOutputs([new armory.logicnode.NullNode(this)]); + _OnInit.addOutputs([_CallFunction, _CallFunction_001, _CallFunction_002, _CallFunction_003]); + _CallFunction.addInput(_OnInit, 0); + var _SelfTrait = new armory.logicnode.SelfTraitNode(this); + _SelfTrait.addOutputs([_CallFunction]); + _CallFunction.addInput(_SelfTrait, 0); + _CallFunction.addInput(new armory.logicnode.StringNode(this, "Son_ambiance0"), 0); + _CallFunction.addInput(_ArrayGet, 0); + _CallFunction.addInput(_ArrayGet_001, 0); + _CallFunction.addOutputs([new armory.logicnode.NullNode(this)]); + _CallFunction.addOutputs([new armory.logicnode.NullNode(this)]); + } + + public function Son_ambiance0(arg0:Dynamic, arg1:Dynamic) { + var functionNode = this.functionNodes["_Function_002"]; + functionNode.args = []; + functionNode.args.push(arg0); + functionNode.args.push(arg1); + functionNode.run(0); + } + + + public function Son_ambiance3(arg0:Dynamic, arg1:Dynamic) { + var functionNode = this.functionNodes["_Function_003"]; + functionNode.args = []; + functionNode.args.push(arg0); + functionNode.args.push(arg1); + functionNode.run(0); + } + + + public function Son_ambiance2(arg0:Dynamic, arg1:Dynamic) { + var functionNode = this.functionNodes["_Function_001"]; + functionNode.args = []; + functionNode.args.push(arg0); + functionNode.args.push(arg1); + functionNode.run(0); + } + + + public function Son_ambiance1(arg0:Dynamic, arg1:Dynamic) { + var functionNode = this.functionNodes["_Function"]; + functionNode.args = []; + functionNode.args.push(arg0); + functionNode.args.push(arg1); + functionNode.run(0); + } + +} \ No newline at end of file diff --git a/Sources/arm/node/Ascenseur_saut.hx b/Sources/arm/node/Springbox_jump.hx similarity index 95% rename from Sources/arm/node/Ascenseur_saut.hx rename to Sources/arm/node/Springbox_jump.hx index 764016e..f700f88 100644 --- a/Sources/arm/node/Ascenseur_saut.hx +++ b/Sources/arm/node/Springbox_jump.hx @@ -1,6 +1,6 @@ package arm.node; -@:keep class Ascenseur_saut extends armory.logicnode.LogicTree { +@:keep class Springbox_jump extends armory.logicnode.LogicTree { var functionNodes:Map; @@ -8,7 +8,7 @@ package arm.node; public function new() { super(); - name = "Ascenseur_saut"; + name = "Springbox_jump"; this.functionNodes = new Map(); this.functionOutputNodes = new Map(); notifyOnAdd(add); @@ -35,7 +35,7 @@ package arm.node; _Vector.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); _Vector.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); var _Float = new armory.logicnode.FloatNode(this); - _Float.addInput(new armory.logicnode.FloatNode(this, 1500.0), 0); + _Float.addInput(new armory.logicnode.FloatNode(this, 1000.0), 0); _Float.addOutputs([_Vector]); _Vector.addInput(_Float, 0); _Vector.addOutputs([_ApplyForce]); @@ -67,7 +67,7 @@ package arm.node; _Vector_001.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); _Vector_001.addInput(new armory.logicnode.FloatNode(this, 0.0), 0); var _Float_001 = new armory.logicnode.FloatNode(this); - _Float_001.addInput(new armory.logicnode.FloatNode(this, 1500.0), 0); + _Float_001.addInput(new armory.logicnode.FloatNode(this, 1000.0), 0); _Float_001.addOutputs([_Vector_001]); _Vector_001.addInput(_Float_001, 0); _Vector_001.addOutputs([_ApplyForce_001]); diff --git a/ecureuil-173.blend b/ecureuil-173.blend new file mode 100644 index 0000000..65fd5e0 Binary files /dev/null and b/ecureuil-173.blend differ diff --git a/textures/sky1.jpg b/textures/sky1.jpg new file mode 100644 index 0000000..e026327 Binary files /dev/null and b/textures/sky1.jpg differ diff --git a/textures/sky_test.jpg b/textures/sky_test.jpg new file mode 100644 index 0000000..724c377 Binary files /dev/null and b/textures/sky_test.jpg differ