예제 #1
0
파일: Tile.cs 프로젝트: Paludan/BeerRun
        public Tile(int x, int y, TileType type, Background bg, Robot robot)
        {
            this._x = x * 40;
            this._y = y * 40;
            this._bg = bg;
            this.robot = robot;

            boundary = new Rect ();

            this.Type = type;
            findPicture ();
        }
예제 #2
0
        public GameScreen(IGame game)
            : base(game)
        {
            //Initialize game-objects
            bg = new Background(0, 0, PictureManager.Pictures["background"] as AndroidImage, robot);

            robot = new Robot (0, 0);
            hb = new Heliboy (340, 360, bg, robot);

            addCharacterAnimations ();
            addHeliboyAnimations ();

            currentCharacterSprite = anim.Image;

            loadMap ();

            initializePaint ();
            initializeButtons ();
        }
예제 #3
0
        /// <summary>
        /// Nullify this instance.
        /// </summary>
        private void nullify()
        {
            robot = null;
            hb = null;
            bg = null;
            paint = null;
            anim = null;
            hAnim = null;
            currentCharacterSprite = null;

            System.GC.Collect ();
        }
예제 #4
0
파일: Heliboy.cs 프로젝트: Paludan/BeerRun
 public Heliboy(int x, int y, Background bg, Robot r)
     : base(bg, r, x, y, PictureManager.Pictures ["heliboy1"])
 {
 }
예제 #5
0
파일: Enemy.cs 프로젝트: Paludan/BeerRun
 public Enemy(Background bg, Robot r, int x, int y, IImage image)
     : base(x, y, image)
 {
     robot = r;
     this.bg = bg;
 }