This site requires JavaScript, please enable it in your browser!
Greenfoot back

lordhershey's Comments

Back to lordhershey's profile

Not bad. I will have to take a look at the source a bit later. as for really simple AI I think I would have gone with something like, when you reach the center of the block pick a new random direction, but disallow simply going back the way you came. If you want it to give chase to the 'pacman' put heavier weight to the directions that take you closer to him, by closer I mean simply reduce the X or Y distance, not looking through the maze for shortest path. I like the graphics, the song is good, but would better fit a platform type game.
I won :D
* you will only be able to touch either 1 or 2 tiles, when you are touching 2 tiles, you can only move in the directions that point to either tile. Example standing on a tile the points up/right and one that points down/left you would only be able to move right or left because Tile A right points to B, and Tile B left points to A. Something like that.
It is some weird way to lay out the maze using tiles, I still have to give it some thought, but the tiles would say, if you are standing on me then you can only press this key or the other, so then you would not even have to think about testing for maze walls.
Kind of interesting, took a little while to figure out how to play it.
I have updated the description.
Hi, this is not bad for a first. Actually this gives me an idea.
Throws Exception: java.lang.IllegalArgumentException: java.io.FileNotFoundException: Could not find file: Cover//gun.png at greenfoot.GreenfootImage.loadFile(GreenfootImage.java:293) at greenfoot.GreenfootImage.<init>(GreenfootImage.java:109) at Gun.<init>(Gun.java:9) at Opening.<init>(Opening.java:21) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at greenfoot.export.GreenfootScenarioViewer.instantiateNewWorld(GreenfootScenarioViewer.java:323) at greenfoot.export.GreenfootScenarioViewer.init(GreenfootScenarioViewer.java:226) at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter.init(Unknown Source) at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.io.FileNotFoundException: Could not find file: Cover//gun.png at greenfoot.util.GreenfootUtil.getURL(GreenfootUtil.java:537) at greenfoot.GreenfootImage.loadFile(GreenfootImage.java:290) ... 12 more
The boats go a thousand miles per hour and there is lots of screaming.