mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
bumper rewind proper
This commit is contained in:
parent
fd3cdc5ad0
commit
ed193d0dca
1 changed files with 9 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
package rewind;
|
package rewind;
|
||||||
|
|
||||||
|
import shapes.AbstractBumper;
|
||||||
import shapes.PowerUp;
|
import shapes.PowerUp;
|
||||||
import shapes.LandMine;
|
import shapes.LandMine;
|
||||||
import src.MarbleWorld;
|
import src.MarbleWorld;
|
||||||
|
|
@ -87,6 +88,10 @@ class RewindManager {
|
||||||
lastContactTime: td.lastContactTime
|
lastContactTime: td.lastContactTime
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
if (dts is AbstractBumper) {
|
||||||
|
var ab:AbstractBumper = cast dts;
|
||||||
|
rf.powerupStates.push(ab.lastContactTime);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
rf.blastAmt = level.blastAmount;
|
rf.blastAmt = level.blastAmount;
|
||||||
rf.oobState = {
|
rf.oobState = {
|
||||||
|
|
@ -203,6 +208,10 @@ class RewindManager {
|
||||||
td.lastDirection = tdState.lastDirection;
|
td.lastDirection = tdState.lastDirection;
|
||||||
td.lastContactTime = tdState.lastContactTime;
|
td.lastContactTime = tdState.lastContactTime;
|
||||||
}
|
}
|
||||||
|
if (dts is AbstractBumper) {
|
||||||
|
var ab:AbstractBumper = cast dts;
|
||||||
|
ab.lastContactTime = pstates.shift();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!rf.oobState.oob) {
|
if (!rf.oobState.oob) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue