-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
83 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 0 additions & 17 deletions
17
scalabox2d-testbed/src/main/scala/org/villane/box2d/testbed/tests/Bridge.scala
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
scalabox2d-testbed/src/main/scala/org/villane/box2d/testbed/tests/CCDTest.scala
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
scalabox2d-testbed/src/main/scala/org/villane/box2d/testbed/tests/Chain.scala
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
scalabox2d-testbed/src/main/scala/org/villane/box2d/testbed/tests/Circles.scala
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
scalabox2d-testbed/src/main/scala/org/villane/box2d/testbed/tests/Domino.scala
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
scalabox2d-testbed/src/main/scala/org/villane/box2d/testbed/tests/Overhang.scala
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
scalabox2d-testbed/src/main/scala/org/villane/box2d/testbed/tests/Pyramid.scala
This file was deleted.
Oops, something went wrong.
39 changes: 39 additions & 0 deletions
39
scalabox2d-testbed/src/main/scala/org/villane/box2d/testbed/tests/SimpleTest.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package org.villane.box2d.testbed.tests | ||
|
||
import vecmath._ | ||
import scenes._ | ||
|
||
object SimpleTest { | ||
def apply(parent: TestbedMain, | ||
name: String, | ||
sf: TestbedScene, | ||
offset: Vector2, scale: Float) = | ||
new SimpleTest(parent, name, sf, offset, scale) | ||
|
||
def apply(parent: TestbedMain, name: String, sf: TestbedScene, scale: Float) = | ||
new SimpleTest(parent, name, sf, Vector2.Zero, scale) | ||
} | ||
|
||
/** | ||
* Simple test without custom instructions or custom key mapping. | ||
* Can be created given a scene. | ||
*/ | ||
class SimpleTest( | ||
_parent: TestbedMain, | ||
val name: String, | ||
scene: TestbedScene, | ||
offset: Vector2, | ||
scale: Float | ||
) extends AbstractExample(_parent) { | ||
var firstTime = true | ||
|
||
def create() { | ||
if (firstTime) { | ||
setCamera(offset.x, offset.y, scale) | ||
firstTime = false | ||
} | ||
|
||
scene.createScene | ||
} | ||
|
||
} |
8 changes: 0 additions & 8 deletions
8
scalabox2d-testbed/src/main/scala/org/villane/box2d/testbed/tests/VaryingFriction.scala
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
scalabox2d-testbed/src/main/scala/org/villane/box2d/testbed/tests/VaryingRestitution.scala
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters