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); } }
public override void clientSimUpdate(Game game, World world) { life++; if (!remove) { if (move(world, moveTarget * moveSpeed)) { remove = true; if (!game.isMP) { world.removeEntity(entityId); } } } }
internal void startSinglePlayer() { world = new World(this); world.gen(); inGame = true; world.addNewEntity(new Player(uniqueUsername, world.nextEntityId)); camera.reset(); }
public override void render(Game game, World world, Camera camera, Vector3 position, int meta) { world.prepareModelMatrix(camera, position); FrameManager.playerDefault.render(game); }
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); } }
public void render(Game game, World world, Camera camera, Vector3 position, int meta) { world.prepareModelMatrix(camera, position); renderGroup.render(game); }