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

Comments for SimuPark

Return to SimuPark

A new version of this scenario was uploaded on Tue Nov 17 07:17:57 UTC 2009
tombud999tombud999

2009/11/17

Cute little people! No, it's not lagging even when the path is full of little people.
kenshinakhkenshinakh

2009/11/17

It starts to lag when cpu usage gets too high. Like, around when I fill the paths with little people. (How do you define lag?) Because for me, I define lag as when the framerates look like they're low (and when the movement looks choppy). Pretty good engine so far.
bournebourne

2009/11/17

Very cool!
MTKMTK

2009/11/17

I don't get any lag even when the path so full of people that there aren't any gaps between them.
A new version of this scenario was uploaded on Tue Nov 17 19:44:27 UTC 2009
ZergZerg

2009/11/17

Odd that it's not lagging for any of you... maybe that's one of the blessings of working with an underpowered computer! What I meant by lagging is that every six isometric redraws it would pause for a half-sec, even with the scenario speed up at max. I believe it has something to do with the fact that I was using a try-catch system every redraw, which Java is not good at doing quickly. This happened at as few as 10 people. Fixed it now, so hopefully that means I can add some extra logic to the little people.
kenshinakhkenshinakh

2009/11/17

Cool. By the way, I don't see lag anymore i think. But the problem now is that the scenario runs too fast!
Builderboy2005Builderboy2005

2009/11/17

You and your isometric engine :P very nice looking, even if it is a bit fast right now! Can't wait to see where this goes, right now it has kind of a RollerCoaster Tycoon feel to it :)
A new version of this scenario was uploaded on Tue Nov 17 23:26:54 UTC 2009
limefortheworldlimefortheworld

2009/11/17

builderboy said what i was about to say XD RollerCoaster Tycoon
A new version of this scenario was uploaded on Thu Nov 19 04:47:29 UTC 2009
MTKMTK

2009/11/19

Pretty neat idea! It would be nice if the pieces of trash were a little bigger (or maybe everything should be bigger, and get scrolling to work).
plcsplcs

2009/11/19

Agree with MTK on all points; great idea, just a little hard to see! :)
A new version of this scenario was uploaded on Thu Nov 19 17:01:42 UTC 2009
RHINO_Mk.IIRHINO_Mk.II

2009/11/19

Look at all those redshirts running around. I can't help but feel that some horrible monster from Star Trek will come in and gobble them up. ^^
A new version of this scenario was uploaded on Thu Nov 19 23:00:56 UTC 2009
plcsplcs

2009/11/23

The zoom only takes me to the "North" of the map, and I can't see a way to move around, maybe the zoom should allow this?
A new version of this scenario was uploaded on Tue Nov 24 17:23:31 UTC 2009
TheJHTheJH

2009/11/24

"a" to zoom out and to scroll left?
Builderboy2005Builderboy2005

2009/11/24

I think he meant press X to zoom out XD Looking good!
bournebourne

2009/11/25

I use to play roller coaster tycoon all the time! Really cool! When you scroll though, the edges aren't drawn. Wouldn't you be able to draw everything that would fit even partially?
bournebourne

2009/11/25

Also when you are zoomed in, it doesn't allow you to scroll down enough to see the most southern point. (when already north of it).
kenshinakhkenshinakh

2009/11/25

I think the reason why the edges arent drawn is because they're objects in the world, (and the x,y of the images can't go out of the world as far as i know.) I've seen a work around done on another scenario though. I still haven't figured it out though xD.
bournebourne

2009/11/25

I've done it. Using the wanderer class.
kenshinakhkenshinakh

2009/11/25

Hm yeah I noticed, but i think that's the same concept in Zerg's scenario. Even though the object can go off the screen, according to your wandering class (the one in your rts game), I don't think it's able to show itself when it leaves the edge of the world. But in your rts, you covered for this by adding the gray borders. In zerg's case, there's no gray border covering up for the actor going out of the world.
rohmadrohmad

2009/11/25

help me about java game
kenshinakhkenshinakh

2009/11/25

the greenfoot discuss google group would be the best place to ask for help.
Builderboy2005Builderboy2005

2009/11/25

There are 2 ways to do the 'wandering' you guys speak of. One way is to have the gray borders that keep track of objects and add/remove them to the world. The other way is to create a support class to override the get/set position methods so that the limits are removed without any necessary change to code. I don't think either of those are the problems though (although no source, so :P) I am guessing you are writing images to the background to take care of the workaround you did with pacman? Correct me if i am wrong
bournebourne

2009/11/25

No the gray borders in my rts game now are irrelevant. They just serve the purpose as a border for where things such as the buttons to go. Before I found the wanderer class, the borders were even wider so to hide the objects as they get removed or added.
kenshinakhkenshinakh

2009/11/25

Ah You're right. I didn't realize it at first xD.
plcsplcs

2009/11/25

A problem with the latest idea of using WSAD is that obviously the 'a' key no longer works for the zoom. Might want to change what key you use for that (or have you already and just not updated the topic description?). Otherwise keep up the good work, game is coming along nicely :)
ZergZerg

2009/11/25

Actually, I wound up starting from scratch. My pacman game was useful in some regards, especially with determining offset constants, but it had a few fundamental limitations. And yes, kenshinakh is correct as to why I cannot draw the tiles partially. I am not writing the images directly to the background for layering purposes. I could theoretically do this, but since you can't draw the objects on it then anyway, there is not much point. Builderboy, you are almost correct. I am actually using a third method: storing all the isometric objects in an array. Each time it needs to be re-layered(e.g. a person goes to a new tile) it redraws the objects from the array. If it happens that an object would need to be added outside the world, it then just ignores it. Each act cycle then the world tells each object in the array that is not actually visible to run its act cycle.
A new version of this scenario was uploaded on Thu Nov 26 06:42:48 UTC 2009
MTKMTK

2009/11/26

It's neat the way they walk back out the gate at the end.
A new version of this scenario was uploaded on Fri Dec 04 05:56:07 UTC 2009
Very nice! I like placing trash cans, the 3D is so fun! But i got an error when moving the trash can near the center java.lang.ArrayIndexOutOfBoundsException: 10 at Park.getObjectsAtTile(Park.java:329) at Park.act(Park.java:182) at greenfoot.core.Simulation.runOneLoop(Simulation.java:332) at greenfoot.core.Simulation.run(Simulation.java:178) :(
Very nice! I like placing trash cans, the 3D is so fun! But i got an error when moving the trash can near the center java.lang.ArrayIndexOutOfBoundsException: 10 at Park.getObjectsAtTile(Park.java:329) at Park.act(Park.java:182) at greenfoot.core.Simulation.runOneLoop(Simulation.java:332) at greenfoot.core.Simulation.run(Simulation.java:178) :(
ZergZerg

2009/12/4

Clarification: This occurs only when zoomed in?
No, this was when i was zoomed out.
Its looking like it happens when picking up the trashcan and trash at the same time.
A new version of this scenario was uploaded on Wed Dec 09 15:55:00 UTC 2009
spacebluespaceblue

2009/12/9

Exception here when i try scrolling with wasd: java.lang.NullPointerException at Spawn.act(Spawn.java:44) at Park.runCycle(Park.java:105) at Park.act(Park.java:131) at greenfoot.core.Simulation.runOneLoop(Simulation.java:332) at greenfoot.core.Simulation.run(Simulation.java:178)
A new version of this scenario was uploaded on Thu Dec 10 00:40:22 UTC 2009
ZergZerg

2009/12/10

small typo--fixed :) Thanks for pointing that out!
spacebluespaceblue

2009/12/22

Nothing happens when the timer hits 0...
kenshinakhkenshinakh

2009/12/24

Nice job zerg, and congratulations xD.
DonaldDuckDonaldDuck

2010/11/7

Geez. I wanna buy a "LITTER AND DIE" sign and stick it in there. I lost on the 4th level =C
Game/maniacGame/maniac

2012/10/12

cool
SpilliSpilli

2012/10/18

How do you place large object sprites into the center of a tile?