Permalink
Browse files

updated 09.08

  • Loading branch information...
1 parent 25ef338 commit 32d4502447c21510d5e4c3fb7a11f32711db589e @rvinluan rvinluan committed Sep 8, 2011
View
@@ -3,11 +3,11 @@
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="lib"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry kind="lib" path="lib/slick.jar"/>
<classpathentry kind="lib" path="lib/lwjgl.jar">
<attributes>
- <attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="Zombies-Game/lib"/>
+ <attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="GameTest/lib"/>
</attributes>
</classpathentry>
- <classpathentry kind="lib" path="lib/slick.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Binary file not shown.
@@ -273,6 +273,7 @@ public void render(GameContainer container, Graphics g)
//check collisions
for(Entity e : entities) {
+
ArrayList<Bookshelf> colliders = gameSpace.getSurroundingShelves(e.yCoord, e.xCoord);
ArrayList<Entity> collidersE = nearbyEntities(e.xCoord, e.yCoord);
Entity en = e.collisionCheck(colliders);
@@ -294,8 +295,8 @@ public void render(GameContainer container, Graphics g)
if(e instanceof Zombie) {
e.velocity = Vector.getDirectionVector(e.xCoord, e.yCoord, rachel.xCoord, rachel.yCoord);
}
+ e.update();
- e.update();
}
}//end of render method

0 comments on commit 32d4502

Please sign in to comment.