ДействиеСценарий / Говнокод #10188 Ссылка на оригинал

0

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. 16
  17. 17
  18. 18
  19. 19
  20. 20
  21. 21
public function Square() 
		{
			_image = new Image();
			_image.smoothBitmapContent = true;
			_mask = new Image();
			Level.instance.addEventListener("squaresCreated", squareCreatedHandler);
		}
		
		/*
		 * Добавляет монстров на field по событию "squaresCreated".
		 * Почему эта логика не в field не ебу.
		 */
		private function squaresCreatedHandler(evt:Event):void
		{
			if (isMonster)
			{
				Level.instance.field.addChild(_fieldMonster);
				_fieldMonster.x = this.x;
				_fieldMonster.y = this.y;
			}
		}

Мимими, всегда бы такие комменты в коде встречать

Запостил: KirAmp KirAmp, (Updated )

Комментарии (1) RSS

  • "Колючий. Наверное, думает, что эти мягкие молодые иголочки его надёжно защищают".
    Ответить

Добавить комментарий

Семь раз отмерь — один отрежь, guest!

    А не использовать ли нам bbcode?


    8