Exemplo n.º 1
0
 void Start()
 {
     //Custom Additions
     Handler.addGameObject(new Player(new Vector2(0), new Sprite(Sprite.SpriteDictionary ["Player"])));
     Handler.addGameObject(new Selection());
     Light.addLight(new Light(Vector2.Zero, 5, .3f, Color.White));
     Light.addLight(new Light(Vector2.Zero + new Vector2(5, 0), 6, .3f, Color.White));
     Light.addLight(new Light(Vector2.Zero + new Vector2(0, 5), 5, .25f, Color.White));
     Handler.world.processVisibleTiles();
     Light.processVisibleLights();
 }
Exemplo n.º 2
0
 public virtual void Drop()
 {
     Handler.addGameObject(new GroundItem(this));
     parent.top = new Air(parent);
 }