Getneightbourhood without edge detection.

This commit is contained in:
2018-03-07 21:40:06 +01:00
parent ea0a2695cc
commit 29ae17d535
11 changed files with 365 additions and 79 deletions

View File

@ -1,4 +1,4 @@
package inf101.v18.rogue101.examples;
package inf101.v18.rogue101.items;
import inf101.v18.gfx.gfxmode.ITurtle;
import inf101.v18.rogue101.game.IGame;
@ -8,7 +8,7 @@ import javafx.scene.paint.Color;
public class Manga implements IItem {
int hp = getMaxHealth();
@Override
/*@Override
public boolean draw(ITurtle painter, double w, double h) {
painter.save();
painter.jump(-10);
@ -22,7 +22,7 @@ public class Manga implements IItem {
painter.draw(getSize()/2);
painter.restore();
return true;
}
}*/
@Override
public int getCurrentHealth() {
@ -46,7 +46,7 @@ public class Manga implements IItem {
@Override
public int getSize() {
return 20;
return 5;
}
@Override