This website works better with JavaScript.
Home
Explore
Help
Sign In
jrtechs
/
jrtechs-Tanks
mirror of
https://github.com/jrtechs/Tanks.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
added move method to zombie class
pull/1/head
16nlyons
8 years ago
parent
594213d336
commit
c8dfa0dd03
1 changed files
with
10 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+10
-1
src/tanks/Tanks.java
+ 10
- 1
src/tanks/Tanks.java
View File
@ -81,7 +81,16 @@ public class Tanks
*
/
private
class
Zombie
extends
Enemy
{
public
void
move
(
)
{
direction
=
angleToPlayer
(
p
)
;
super
.
move
(
-
1
)
;
if
(
this
.
checkCollision
(
p
)
)
{
enemy
.
remove
(
this
)
;
p
.
takeDamage
(
)
;
}
}
}
Write
Preview
Loading…
Cancel
Save