Skip to content

Commit

Permalink
new tank images //Tank
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyKirakosyan committed Dec 17, 2011
1 parent 6b84fdb commit 54d81d5
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 11 deletions.
Binary file modified Tank.Bullet.fla
Binary file not shown.
Binary file modified libs/GunView.swc
Binary file not shown.
Binary file modified libs/TankBaseView.swc
Binary file not shown.
4 changes: 2 additions & 2 deletions src/game/drawing/MouseDrawController.as
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ public class MouseDrawController extends EventDispatcher{
pathArrow.scaleX = pathArrow.scaleY = 1.5;
addNewPathShape(pathArrow);
_currentPathPart.addChild(pathArrow);
pathArrow.filters = [new GlowFilter(0x91e600, 1, 40, 40, 20, 1, true)];
TweenMax.to(pathArrow, .8, {glowFilter:{color:0x91e600, blurX:10, strength : 10, blurY:10, inner:false, ease : Elastic.easeOut}});
pathArrow.filters = [new GlowFilter(0x91e600, 1, 20, 20, 10, 1, false)];
TweenMax.to(pathArrow, .8, {glowFilter:{color:0x91e600, blurX:5, strength : 5, blurY:5, inner:false, ease : Elastic.easeOut}});
_pathParts.push(_currentPathPart);

_drawingContainer.addChild(_currentPathPart);
Expand Down
2 changes: 1 addition & 1 deletion src/game/tank/PlayerTankController.as
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class PlayerTankController extends TankController{

override protected function createTank(tankVO:TankVO):void {
tank = Tank.createPlayerTank(tankVO);
highlightPlayerTank();
//highlightPlayerTank();
}

private function highlightPlayerTank():void {
Expand Down
10 changes: 4 additions & 6 deletions src/game/tank/Tank.as
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public class Tank extends MapObject {

_liveTab = new LiveTab();
this.addChild(_liveTab);
this.addChild(tankBase);
this.addChildAt(tankBase, 0);
}

public function get gun():TankGun {
Expand Down Expand Up @@ -144,13 +144,11 @@ public class Tank extends MapObject {

private function createTankBase():void {
if (_vo.tankBase == 0) {
tankBase = new Tank1();
tankBase = new TankBase1();
} else {
tankBase = new Sprite();
const brickView:Tank2 = new Tank2();
//brickView.x -= brickView.width/2;
//brickView.y -= brickView.height/2;
tankBase.addChild(brickView);
const baseView:TankBase2 = new TankBase2();
tankBase.addChild(baseView);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/game/tank/weapon/TankGun.as
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class TankGun extends Sprite{
}

private function createMiniGun():void {
this.addChild(new MachineGunView());
this.addChild(new MiniGun());
}
private function createTailRocket():void {
this.addChild(new RocketGunView());
Expand Down
8 changes: 7 additions & 1 deletion багги.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,10 @@
at game.tank::TargetsController/remove()[C:\Users\��������\Dropbox\Tanks\src\game\tank\TargetsController.as:77]

����� ������� ���������� ������ ����� ������ ����� ���� ��������
5)��� �������� ������� �� ��� �������� �������� ���������� ���� ��� ������
5)��� �������� ������� �� ��� �������� �������� ���������� ���� ��� ������



-----------17.12.11------------

1) ����� ���� ��� ������ �� ������ ��� ������� � ����� ����� ����� ������������ ����, �� ������� ������ child == 0

0 comments on commit 54d81d5

Please sign in to comment.