Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
class GameScene(
val scene: threejs.Scene = new threejs.Scene, // scene is mutable object
var objects: Map[Double, GameObject] = Map[Double, GameObject]()) {
def add(gameObject: GameObject) = {
objects = objects + ( -> gameObject)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.