/* * Decompiled with CFR 0.152. * * Could not load the following classes: * com.jme3.app.SimpleApplication * com.jme3.material.Material * com.jme3.math.ColorRGBA * com.jme3.math.Vector3f * com.jme3.scene.Geometry * com.jme3.scene.Mesh * com.jme3.scene.Spatial * com.jme3.scene.shape.Box */ package jme3.hello; import com.jme3.app.SimpleApplication; import com.jme3.material.Material; import com.jme3.math.ColorRGBA; import com.jme3.math.Vector3f; import com.jme3.scene.Geometry; import com.jme3.scene.Mesh; import com.jme3.scene.Spatial; import com.jme3.scene.shape.Box; public class SimpleLoop extends SimpleApplication { protected Geometry player; protected Geometry box2; boolean shrink; public static void main(String[] args) { SimpleLoop app = new SimpleLoop(); app.start(); } public void simpleInitApp() { Box b = new Box(Vector3f.ZERO, 1.0f, 1.0f, 1.0f); this.player = new Geometry("blue cube", (Mesh)b); Material mat = new Material(this.assetManager, "Common/MatDefs/Misc/Unshaded.j3md"); mat.setColor("Color", ColorRGBA.Yellow); this.player.setMaterial(mat); this.rootNode.attachChild((Spatial)this.player); } public void simpleUpdate(float tpf) { this.player.rotate(-2.0f * tpf, 0.0f, -2.0f * tpf); } }