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

Report as inappropriate.

kenshinakh
kenshinakh presents ...

2009/11/18

Tree Simulation

So, this is an unbounded scroll world I'm testing out.
(Actually, just for today I'm taking a break from my main game.)
So, you can zoom in by pressing UP.
Zoom out by pressing DOWN.
You can scroll aroudn the world by moving your moues to the edge of the map.
I didn't look at other people's code for this, so there might be bugs that were never seen.
Btw, it lags a lot when you zoom in and there are too many objects.
I think I'll fix that soon so just wait.
Fires destroy the trees by the way.

You can add new trees by pressing T, and pointing your moouse somewhere on the map.
The base code of this would actually be pretty good for an RTS... Maybe i'll try an rts next year.

4463 views / 16 in the last 7 days

Tags: mouse simulation codepoint-09-school-16+

Your browser does not support the canvas tag.

No Comments

Want to leave a comment? You must first log in.

Who likes this?

No votes yet.