Package SuperCraft

Source Code of SuperCraft.Level1

package SuperCraft;

import java.util.Random;

import org.lwjgl.Sys;
import org.newdawn.slick.Color;
import org.newdawn.slick.opengl.Texture;

import Engine.*;
import Engine.Tools.EnterHaken;
import Engine.World.*;
import Engine.ParticelSystem.ParticleConfiguration;
import Engine.ParticelSystem.ParticleEmitter;
import Mobs.*;
/**
* Write a description of class World here.
*
* @author vbdetlevvb
* @version 2.0
*/
import static org.lwjgl.opengl.GL11.*;

public class Level1 extends World {
  public int Height;
  public int Width;
  public Engine engine;
  public double scalefactor = 1;
  public Player player;
  boolean isInit = false;
  public MobManager mobmgr;

  public ParticleEmitter emitter;

  public Level1(Engine engine) {
    super(engine);
    player = new Player(engine);
    super.player = player;
   
   
    this.engine = engine;

    // mobmgr = new MobManager(this);
   
    // Creeper creeper = new Creeper();
    // mobmgr.AddMob(creeper);
    engine.AddRenderComponent(player);
    // grass = new Grass(this);
    // engine.AddRenderComponent(grass);
    colordarkness = new Color(Color.white);
    mobmgr = new MobManager(this);
    Random random = new Random();
    emitter = new ParticleEmitter(engine);
    emitter.setParticleconfig(new ParticleConfiguration("fire"));
    emitter.XPosition = 710;
    emitter.YPosition = 340;

    engine.AddRenderComponent(emitter);

  }

  public void World_init() {

    engine._physic.setTerrain(this);

  }

  Color colordarkness;

  public void World_draw() {

    player.drawPlayer();
    mobmgr.DrawMobs();
  }

}
TOP

Related Classes of SuperCraft.Level1

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.