Example #1
0
 public override void render(Game game, World world, Camera camera, Vector3 position, int meta)
 {
     if(life > 2){
         world.prepareModelMatrix(camera, position, camera.rotation.Y+angle);
         FrameManager.shot1.render(game);
     }
 }
Example #2
0
 public override void clientSimUpdate(Game game, World world)
 {
     life++;
     if (!remove) {
         if (move(world, moveTarget * moveSpeed)) {
             remove = true;
             if (!game.isMP) {
                 world.removeEntity(entityId);
             }
         }
     }
 }
Example #3
0
 internal void startSinglePlayer()
 {
     world = new World(this);
     world.gen();
     inGame = true;
     world.addNewEntity(new Player(uniqueUsername, world.nextEntityId));
     camera.reset();
 }
Example #4
0
 public override void render(Game game, World world, Camera camera, Vector3 position, int meta)
 {
     world.prepareModelMatrix(camera, position);
     FrameManager.playerDefault.render(game);
 }
Example #5
0
 public override void render(Game game, World world, Camera camera, Vector3 position, int meta)
 {
     if (meta == 0) {
         world.prepareModelMatrix(camera, position);
         FrameManager.playerDefault.render(game);
     }
     if (meta == 1 && swingVisable) {
         world.prepareModelMatrix(camera, position, -swingAngle);
         FrameManager.swing1.render(game);
     }
 }
Example #6
0
 public void render(Game game, World world, Camera camera, Vector3 position, int meta)
 {
     world.prepareModelMatrix(camera, position);
     renderGroup.render(game);
 }