Package fysix.engine

Examples of fysix.engine.FysixEngine.AddObject()


        // Test Scale...
        InputManager.MapKey(KeyEvent.VK_F1, "SCALE_IN");
        InputManager.MapKey(KeyEvent.VK_F2, "SCALE_OUT");
        InputManager.MapKey(KeyEvent.VK_F3, "TOGGLE_TV");
               
        FysixObject fo1 = (FysixObject) fe.AddObject(200, 200, 150.0, null);
        //FysixObject fo2 = (FysixObject) fe.AddObject(400, 150, 0.5, null);       
        //FysixObject planet = (FysixObject) fe.AddObject(400, 350, 1000000.0, null);
        //FysixObject moon = (FysixObject) fe.AddObject(580, 200, 50.0, null);
        FysixObject fo2 = (FysixObject) fe.AddObject(2600, 2400, 0.5, null);       
        FysixObject planet = (FysixObject) fe.AddObject(2600, 2600, 1000000.0, null);
View Full Code Here


               
        FysixObject fo1 = (FysixObject) fe.AddObject(200, 200, 150.0, null);
        //FysixObject fo2 = (FysixObject) fe.AddObject(400, 150, 0.5, null);       
        //FysixObject planet = (FysixObject) fe.AddObject(400, 350, 1000000.0, null);
        //FysixObject moon = (FysixObject) fe.AddObject(580, 200, 50.0, null);
        FysixObject fo2 = (FysixObject) fe.AddObject(2600, 2400, 0.5, null);       
        FysixObject planet = (FysixObject) fe.AddObject(2600, 2600, 1000000.0, null);
        FysixObject moon = (FysixObject) fe.AddObject(2780, 2450, 50.0, null);
       
        moon.setVelocity(new Vector2d(10.0, 60.0));
       
View Full Code Here

        FysixObject fo1 = (FysixObject) fe.AddObject(200, 200, 150.0, null);
        //FysixObject fo2 = (FysixObject) fe.AddObject(400, 150, 0.5, null);       
        //FysixObject planet = (FysixObject) fe.AddObject(400, 350, 1000000.0, null);
        //FysixObject moon = (FysixObject) fe.AddObject(580, 200, 50.0, null);
        FysixObject fo2 = (FysixObject) fe.AddObject(2600, 2400, 0.5, null);       
        FysixObject planet = (FysixObject) fe.AddObject(2600, 2600, 1000000.0, null);
        FysixObject moon = (FysixObject) fe.AddObject(2780, 2450, 50.0, null);
       
        moon.setVelocity(new Vector2d(10.0, 60.0));
       
        running = true;
View Full Code Here

        //FysixObject fo2 = (FysixObject) fe.AddObject(400, 150, 0.5, null);       
        //FysixObject planet = (FysixObject) fe.AddObject(400, 350, 1000000.0, null);
        //FysixObject moon = (FysixObject) fe.AddObject(580, 200, 50.0, null);
        FysixObject fo2 = (FysixObject) fe.AddObject(2600, 2400, 0.5, null);       
        FysixObject planet = (FysixObject) fe.AddObject(2600, 2600, 1000000.0, null);
        FysixObject moon = (FysixObject) fe.AddObject(2780, 2450, 50.0, null);
       
        moon.setVelocity(new Vector2d(10.0, 60.0));
       
        running = true;
View Full Code Here

                  newAcc.scale(120);
                  fo1.setAcceleration(newAcc);
                 
                  DustObject dustObj = new DustObject();                 
                  dustObj.time = 39; // 0-39 : 40 units (map against color list)
                  dustObj.fo = (FysixObject) fe.AddObject(fo1.getPosition().x, fo1.getPosition().y, 5, null);
                  double dustA = Math.random()*2.0*Math.PI+1.0;
                  if(dustA >= Math.PI){
                    dustA -= Math.PI;
                  }
                  dustObj.fo.setDirection(dustA+Math.PI);
View Full Code Here

                    fo1.setAcceleration(accNone);
                }
                if (InputManager.isKeyDown("FIRE")) {
                  if (++delay == 6) {
                    delay = 0;
                    FysixObject fo = (FysixObject) fe.AddObject(fo1.getPosition().x, fo1.getPosition().y, 0.000000001, null);
                    Vector2d vel = (Vector2d) fo1.getDirection().clone();
                    vel.scale(450);
                    //vel.add(fo1.getVelocity());
                    fo.setVelocity(vel);
                    Polygon ba = new Polygon();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.