Skip to content

Instantly share code, notes, and snippets.

@Chouser
Created February 16, 2009 20:24
Show Gist options
  • Select an option

  • Save Chouser/65340 to your computer and use it in GitHub Desktop.

Select an option

Save Chouser/65340 to your computer and use it in GitHub Desktop.
(import '(com.jme.app SimpleGame AbstractGame$ConfigShowMode)
'(com.jme.scene Node)
'(com.jme.scene.shape Sphere)
'(com.jme.bounding BoundingBox)
'(com.jme.math Vector3f))
(doto (proxy [SimpleGame] []
(simpleInitGame []
(println "=== starting...")
(.attachChild (.getRootNode this)
(doto (Sphere. "Sphere" 30 30 25)
(.setLocalTranslation (Vector3f. 0 0 -40))
(.setModelBound (BoundingBox.))
.updateModelBound))))
(.setConfigShowMode AbstractGame$ConfigShowMode/AlwaysShow)
(.start))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment