Report as inappropriate.

Photo_on_2011-09-18_at_18

bourne presents ...

2009/10/19

Galactic Frontier

Read the help from the main menu

Additional help:
click on space station to select it
be aware of the loss of workers before you have none and don't have resources to build more
always be on the defensive,
look out for approaching raids and leave some fighters to help protect a planet or turret
not sure why i gave you an option to hide your map, YOU NEED IT! lol

Additional ideas:
different class fighters..
warning system..
it is like a survival game in that there is no way of winning but i am interested in changing that,
we'll see how that goes..
was thinking a high scores would be perfect for this game..

3256 views / 13 in the last 7 days

11 votes | 0 in the last 7 days

Tags: with-source scrolling rts

This scenario is a member of: Scenario showcase, Space, Awesomeness


open in greenfoot
Your browser is ignoring the <APPLET> tag.
Hydra_fullZerg

2009/10/23

I mean that you have Greenfoot doing stuff off of the visible screen. The only way I really saw this as possible was to have the whole game running without using the World as part of the game other than a drawing screen. Is this somewhat correct in my guess as to how this works? BTW, have you looked at any of my code in my RTS for multi selection?
Photo_on_2011-09-18_at_18bourne

2009/10/23

At first I had no idea about the wanderer class so I had a main class that had arrays of all the actors. And when the actor is not in the world, the main class (called controlBox) told them to act. I had borders along the side of the screen so that the actors could go behind and be removed from the world if they go too far. And the controlBox adds them back onto the world when their location comes into the viewing screen (controlBox has variables screenX and screenY) Every actor has a mapX and mapY variables that functioned as its location in the whole map, even off screen. I disliked the idea of greenfoot not allowing actors to go off the screen, so this was my attempt to fix the problem. Worked perfectly except I hated the fairly large borders. So when I found the Wanderer class, I had to rework all my existing code. some 1500 lines just in controlBox. ControlBox controls much of the activity between different actors. And no I didn't look at any code of yours. And the controlBox also has a moveObjects method to make the actors "scroll".
Hydra_fullZerg

2009/10/23

Interesting way around it. Me likey :P If you're open to suggestions, could you make it scroll when the mouse is near the edges, much like you would expect in a normal RTS game? Also, are you thinking of making this networkable? I attempted this with mine, but ran into problems since my objects were dependent on the world. Your game might be a bit easier to do this with since your actors are already controlled through another object.
Photo_on_2011-09-18_at_18bourne

2009/10/23

Yeah that would be very simple. All I would have to change or rather add is check if mouse is in one of four imaginary rectangles at the edge of the screen. And do the same that already happens when a key is pressed to scroll. And add some kind of counter as a timer to set the speed of how fast it will be scrolling when mouse is at the edges. I never thought about it I guess since when I play RTSs I get annoyed with it most of the time. But good idea, maybe I'll add it sometime. And I'm like network illiterate lol. Besides basic concepts, I get lost in network stuff.
Photo_on_2011-09-18_at_18bourne

2009/10/24

Actually with my buttons for building from my spacestation would be annoying to go to press and the view scrolls. RTSs that you might play with that feature usually are fullscreen so the mouse actually stops at the edges where it would make the game scroll.
A new version of this scenario was uploaded on Mon Oct 26 17:23:29 UTC 2009
Spiral_thumbtrollathon

2010/3/27

i tried what you said, but it thinks 'touching' is a variable... im EXTREMELY new, so could you maybe give me some simpler stuff?
A new version of this scenario was uploaded on Mon Jul 26 01:31:41 UTC 2010
Uberdude_thumbUberdude

2011/3/5

This is very good. there is no way of obtaining more carbon, though.....
Photo_on_2011-09-18_at_18bourne

2011/3/5

Thanks. You gain more carbon by owning planets, where workers cut trees

See all comments

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

Who likes this?

No_avatar_thumb Greenfoot2_thumb Uberdude_thumb Penguins_thumb No_avatar_thumb No_avatar_thumb Libertarian_freedom_thumb Humphreybogart-1_thumb Hydra_full_thumb Smalldav_thumb No_avatar_thumb