mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-04-27 05:01:38 +00:00
fix finish pad bugs
This commit is contained in:
parent
29dc89f9d5
commit
fd837715de
1 changed files with 3 additions and 6 deletions
|
|
@ -211,6 +211,7 @@ class MarbleWorld extends Scheduler {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function postInit() {
|
public function postInit() {
|
||||||
|
this.scene.addChild(this.sky);
|
||||||
this._ready = true;
|
this._ready = true;
|
||||||
this.playGui.init(this.scene2d);
|
this.playGui.init(this.scene2d);
|
||||||
var musicFileName = [
|
var musicFileName = [
|
||||||
|
|
@ -283,10 +284,6 @@ class MarbleWorld extends Scheduler {
|
||||||
sky.dmlPath = "data/skies/sky_day.dml";
|
sky.dmlPath = "data/skies/sky_day.dml";
|
||||||
|
|
||||||
worker.addTask(fwd -> sky.init(cast this, fwd, skyElement));
|
worker.addTask(fwd -> sky.init(cast this, fwd, skyElement));
|
||||||
worker.addTask(fwd -> {
|
|
||||||
scene.addChild(sky);
|
|
||||||
return fwd();
|
|
||||||
});
|
|
||||||
|
|
||||||
worker.run();
|
worker.run();
|
||||||
}
|
}
|
||||||
|
|
@ -795,7 +792,7 @@ class MarbleWorld extends Scheduler {
|
||||||
var tsShape = new DtsObject();
|
var tsShape = new DtsObject();
|
||||||
tsShape.useInstancing = true;
|
tsShape.useInstancing = true;
|
||||||
tsShape.dtsPath = dtsPath;
|
tsShape.dtsPath = dtsPath;
|
||||||
tsShape.identifier = shapeName;
|
tsShape.identifier = shapeName + "tsStatic";
|
||||||
tsShape.isCollideable = true;
|
tsShape.isCollideable = true;
|
||||||
tsShape.showSequences = false;
|
tsShape.showSequences = false;
|
||||||
|
|
||||||
|
|
@ -1214,7 +1211,7 @@ class MarbleWorld extends Scheduler {
|
||||||
if (collider.go == this.endPad) {
|
if (collider.go == this.endPad) {
|
||||||
var chull = cast(collider, collision.CollisionHull);
|
var chull = cast(collider, collision.CollisionHull);
|
||||||
var chullinvT = @:privateAccess chull.invTransform.clone();
|
var chullinvT = @:privateAccess chull.invTransform.clone();
|
||||||
chullinvT.clone();
|
chullinvT.transpose();
|
||||||
for (surface in chull.surfaces) {
|
for (surface in chull.surfaces) {
|
||||||
var i = 0;
|
var i = 0;
|
||||||
while (i < surface.indices.length) {
|
while (i < surface.indices.length) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue