This site requires JavaScript, please enable it in your browser!
Greenfoot
Username
Password
Remember Me?
Sign Up, Lost Password
Activity
About
Documentation
Download
Discuss
Scenarios
Discussions
You need to login to take part
Current Discussions
how to make the snake move smoothly
By Khadijah, with no replies.
i have seen this game by JL235 wich is called space snake, i am trying to recreate it with my own version for a school project i have loaded all of my characters onto greenfoot but i cant make the snake move like it does in his game does anyone have any idea on what the coding is or how it could work like his? the game has the same concept to try and get the blob in my case the food but there will be things in his way to obstruct the snake from getting there to make it harder. here is the link to his game: http://www.greenfoot.org/scenarios/231 thanks for your help! :)
yoo
By RAWRIMATIGER, with 7 replies.
Last reply by I.AM.A.LION<ROAR>, over 13 years ago:
BR1NG 1T 0N DUCK
help?
By RAWRIMATIGER, with 1 reply.
Replied to by Gevater_Tod4711, over 13 years ago:
There are serval snake games you can download and look at the code. For example
this one.
ROAR
By I.AM.A.LION<ROAR>, with 2 replies.
Last reply by I.AM.A.LION<ROAR>, over 13 years ago:
someone help me? please ^.^
can someone explain greenfoot to me?
By RAWRIMATIGER, with 2 replies.
Last reply by RAWRIMATIGER, over 13 years ago:
aw thankyou my fellow gaming world companion:)
Pathfinding
By darkmist255, with no replies.
So I've got some code here that I whipped up in an attempt to get A* pathfinding to work. It's definitely calculating, but not at all reaching the goal. I haven't yet written any code to get the path, and haven't implemented replacing parents with new, shorter parent paths. For now I'm just hoping I can get atGoal() to return true. The code isn't exactly beautiful but it's fairly neat and legible. Square is a nearly empty class, it just uses Graphics2D to make a visible square. <Code Omitted> Then the accompanying classes: <Code Omitted> <Code Omitted> If anyone takes a look over this and sees something wrong (I may have messed up compareTo(), since I've never implemented Comparable before), any advice is appreciated!
Tracking objects & adding new objects
By ColonelCaboose, with 4 replies.
Last reply by ColonelCaboose, over 13 years ago:
Thank so much I'll get right to work on it!
World At Edge problem
By ColonelCaboose, with 1 reply.
Replied to by danpost, over 13 years ago:
Change the condition in the 'atWorldEdge' method in the 'Animal' class so that the limits are (1) getX()< getImage().getWidth()/2 (2) getX() > getWorld().getWidth()-getImage().getWidth()/2 (3) getY() < getImage().getHeight()/2 (4) getY() > getWorld().getHeight()-getImage().getHeight()/2
GreenfootImage > drawString() not working?
By rowanto, with 2 replies.
Last reply by rowanto, over 13 years ago:
It worked. Thanks a lot!
Plz explain this piece of code!
By hkrhässleholm, with 4 replies.
Last reply by Gevater_Tod4711, over 13 years ago:
1. The lenght of the string is always the number of characters. But if you use charAt(int) you need to start counting by 0 and not by 1. Therefore the s.length()-1 2. Concerning substring it's the same than charAt. 1 is not the first but the second char of the string. And using substring(1, s.length()-1) you have a substring without the first and the last char of the old string.
Identifying non-Alphabetic Characters and Exception Handling in eclipse...
By LearningProgramming, with 3 replies.
Last reply by LearningProgramming, over 13 years ago:
Am trying to use it in an exception but i dont even know if my syntax if correct or not
i need help!
By khadeidradlinder, with 1 reply.
Replied to by davmac, over 13 years ago:
So what you are saying is that you want us to do your homework for you?
How do i set the default world?
By JetLennit, with 2 replies.
Last reply by JetLennit, over 13 years ago:
Thanks! I had't seen the new() thing
New - Does Greenfoot support 3D games?
By kaskoepoes112, with 2 replies.
Last reply by JetLennit, over 13 years ago:
Look at
This User
and
This User
Changing width of line
By Game/maniac, with 1 reply.
Replied to by Gevater_Tod4711, over 13 years ago:
Therefore you mussn't use drawLine() but fillRect or if the line is not horrizontally or vertically fillPolygon().
853
854
855
856
857
858
859
X