mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-04-05 10:26:20 +00:00
camera input deadzone
This commit is contained in:
parent
0df919e380
commit
97f9e7dbad
2 changed files with 6 additions and 1 deletions
|
|
@ -371,6 +371,7 @@ class DifBuilder {
|
|||
return tex.substring(slashpos, dotpos);
|
||||
}
|
||||
|
||||
fs.ManifestFileSystem.ManifestEntry.doQuickLoad = true;
|
||||
ResourceLoader.load(path).entry.load(() -> {
|
||||
var dif:Dif = null;
|
||||
var cache:DifCache = null;
|
||||
|
|
@ -1024,6 +1025,7 @@ class DifBuilder {
|
|||
for (f in loadtexs) {
|
||||
worker.loadFile(f);
|
||||
}
|
||||
fs.ManifestFileSystem.ManifestEntry.doQuickLoad = false;
|
||||
worker.run();
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -84,7 +84,10 @@ class CameraInput {
|
|||
var inpY = delta.y / scaleFactor;
|
||||
|
||||
if (jumpcam) {
|
||||
trace('Input: ${inpX} ${inpY}');
|
||||
if (Math.abs(inpX) < 1.3)
|
||||
inpX = 0;
|
||||
if (Math.abs(inpY) < 1.3)
|
||||
inpY = 0;
|
||||
}
|
||||
|
||||
MarbleGame.instance.world.marble.camera.orbit(inpX, inpY, true);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue