Skip to content

Commit

Permalink
ZDCode 2.0 released!! Hooray!
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustavo R. 'Gustavo6046' Rehermann committed Oct 14, 2018
1 parent 552ffd5 commit ab24575
Show file tree
Hide file tree
Showing 7 changed files with 655 additions and 750 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
**/__pycache__
build
dist
*.zip
*.exe
JumpZombie.dec
46 changes: 46 additions & 0 deletions JumpZombie.zc2
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
class RunZombie inherits ZombieMan replaces ZombieMan #2055
{
set Gravity to 0.4; // high up...
set Speed to 0;
is NOBLOCKMONST;
set Speed to 0;

label See
{
POSS AB 5 A_Recoil(-0.7);
TNT1 A 0 A_Chase;
POSS A 0 A_FaceTarget();
POSS AB 4 A_Recoil(-0.7);
TNT1 A 0 A_Chase;
POSS A 0 A_FaceTarget();
POSS ABCD 3 A_Recoil(-0.7);
TNT1 A 0 A_Chase;
POSS A 0 A_FaceTarget();
goto RunLoop;
};

function Jump
{
while ( z == floorz )
{
POSS A 5 [Bright];
POSS A 11 ThrustThingZ(0, 30, 0, 1);
};
POSS AB 2 A_Chase;
};

label RunLoop
{
x3
{
POSS ABCD 2 A_Recoil(-0.7);
TNT1 A 0 A_Chase;
POSS A 0 A_FaceTarget();
};

if ( health > 5 )
call Jump;

loop;
};
}
Loading

0 comments on commit ab24575

Please sign in to comment.