News:

If you need instructions on how to get through the hotels, check out the enclosed instruction book.

Main Menu

Mod-able RTS engine, good idea or bad?

Farted by Blue, April 18, 2009, 01:54:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Blue

I've noticed there are a lot of people that want to make RTS games in Flash, but there aren't any polished RTS engines that are freely available to use, so that got me thinking...

Since a solid RTS foundation for Flash doesn't exist, I think it would be fun to create one, and allow it to be modded.

It would be in AS3, Closely resembling the style of older RTS games such as Red Alert and Startcraft. Utilizing 2D graphics, but with mild distance perception (which Flash can handle easily with scaling) and with an intuitive drag menu for items/structures/units to make right-clicking unnecessary. It would also feature the nice mouse-wheel zoom that we have come to know and love in more modern RTS games (I've already done this for a client app, and it makes it feel so much more cooler). And of course, it would have full multi-player support, using GAE to allow for speed and growth. Full screen hardware mode would be utilized to allow a true full-screen gaming experience (without terrible lag).

The following would all be defined by external swf files that are imported at run time...

SFX & Music,
Entitites (with vars),
Structures (with vars),
MapTiles,
Maps,
Menu GFX (with credit vars).


This way for someone to make their own RPG mod, all they would have to do is edit a few fla files, compile them, and then pass the params to the main swf (heavily obfuscated). No AS required on their part.

This could be done open source, but I think it could also be made profitable as freeware, if the main swf forced ads to show while a map was loading. Alternatively ad credits could be split between the mod maker and the engine maker quite easily so that everybody wins.

Granted, it won't be an easy task. The most difficulty being in the AI, and path-finding scripts, which could bog down the client. But I'm fairly confident that nothing else will give me trouble in the slightest.

If I did make this engine, I would need someone to come on board and help me make the demo game (default mod), specifically the graphics for the map tiles, structures, units, etc. I would probably pay too, as an investment.
[FLASH=http://files.myfrogbag.com/mupff0/snowflake.swf]width=670 height=200 quality=medium wmode=transparent[/FLASH]

Dino Clock

Dude it'd be an honour working with you.

What resolution are you looking at? Like pixelated 32bit I presume?
And what theme is this game? Like Past, Present or Future. Any of those i'd be happy to go over concept designs and other things with you. I have a lot of free time on my hands in the next few months and I can devote a good 3+ hours a day to the development of this game.

I'd gladly do it for free, no need to ask for payment it'd be a fun project to do!

If you want me baby, im all yours!
Having a bubble bruv

buttplug

I wish I had the talent to just be a part of this. It sounds really fucking cool, keep us updated!

RomanClock

Ive already made examples of this kind of stuff. Most of it seems relatively easy, but I think the most work will be needed for path finding and large group management.
lemayo lol :soups:

SpongeClock SquarePants

yeah, groups and AI would be the biggest part of the work.

Blue

I don't intend to make a skirmish AI, at least not at first. So the only AI I would have to focus on would be individual unit AI, which is very simplistic in an RTS.

"Aggressive stance = If I can see enemy, and enemy within range, fire at enemy. If enemy out of range but within visible range, move toward enemy." not rocket science.
[FLASH=http://files.myfrogbag.com/mupff0/snowflake.swf]width=670 height=200 quality=medium wmode=transparent[/FLASH]

Sinister Clock

I have lots of talent but no money. I'm actually a hobo with secret internet powers inside my teeth. I am the perfect person to help yoooou. I can prepare a portfolio if you'd like.

Blue

I've been giving this idea alot of thought, and here are some things that I'd like this game engine to feature:

Complete zoom-ability: Same as in Supreme Commander series, but using LOD's closer to the actual shapes of the units like in Sins of a Solar Empire.

Stackable buildings: Modders will have the ability to define certain structures as stackable. For example, you might be able to build a defense tower that is higher than normal, so that it may fire over a wall. Or you might be able to build a defense structure physically on top of a wall. One might also build taller walls, layered together for greater defence. One might even be able to encase the top of one's base in concrete, turning it into a gigantic bunker-like structure. Adding this feature allows one to increase the strength of one's base, without having to constantly expand outward, diluting defenses. Would make turtling much more entertaining, and would add a completely new set of strategies for defense. This will allow players get creative with their base design. There will have to be a limit on how many layers can be added to the base structure. And the engine will have to make the added layers become transparent when the mouse is over to allow selecting of structure/units that are beneath the overlaying structure.

Unit groupings: Instead of building a single unit at a time, some units will come in groups (of say 5 or 10). Particularly for smaller units. This will reduce server overhead, and allow one to control larger armies without taxing system resources by having to route troop movements down to the single unit level. These "squads" will die one at a time, or in greater quantities based on damage. The server will track the group as a whole, and the client will determine individual movements to add realism within the group.

Pseudo 3d: Will be using transparent PNGs for all units, at an angle of 45 degrees by 45 degrees downward as default. But we will allow 8 modes of rotation, so that all buildings in addition to units will have 8 views from the different angles. This will also mean that buildings will be placeable in 8 different configurations. Octagonal vs Square.

Full screen only: There are several reasons why I think the game should be run in full screen at all times. The biggest reason is that this would allow mouse scrolling around the map without having to worry about boundaries of the flash. Since we are going to be using the latest abilities of Flash 10 we will also be able to tap into hardware scaling. This means that performance will not be an issue. On the first time the game is run, it should autoscale the quality up, starting with 1024x768, going upward to the actual resolution of the end-user's monitor. At each step it creates a new hardware-scaled render (this takes a low resolution image and stretches it using hardware, making it look a little blurry, but smooth and less laggy). After each step it will compare the frame rate, and it will settle on a specific performance-quality point. The end user will then be able to further customize the quality by sliding the scale.

Scalable HUD: The heads up display is something that all RTS games lean heavily on, but rarely do they get it right. Since widescreen is becoming the common gaming format, we need to have the HUD centralized, but only on the top or bottom of the screen. I insist on having it on just one. So I propose the HUD is not only scalable, but self-centering on the bottom of the screen. This will resemble the HUD of several RPG games. It puts the buttons most needed/used as close as possible to the center of the screen without interfering with the image. HUD transparency will also fade down to 60% when not in use (mouse is not over). The HUD should also be scalable, since the end-users' resolution/quality settings are an unknown. This is because on my massive monitor when I play Red Alert 3, the HUD looks horrible, because it has been stretched so much. I thought it would be nice if I could shrink it down to save screen space, while still being fully functional.

Configurable Hotkeys: An absolute must, I think that goes without saying. I also believe in old-school key mapping. For example, if Alt-A, sets selected units to aggressive status by default, and a user goes and sets Alt-A to select all units, the menu will tell the person that there is a conflict, and what is conflicting, but will not force the user to fix the conflict. Sometimes it is nice to be able to do two things at once with one hotkey. In this case if the user presses Alt-A it will select all units and set those units to aggressive status (depending on the order that the hotkeys were set). Games used to allow these kinds of things due to bad programming, but I really miss the "feature" now.

Server-side saves: Since the user's cache is an unknown, we must have a way to save the user's hotkey settings, quality settings, sound settings, game saves, etc on the server. This will be easy with GAE and user accounts (which will be automatically tied into a user's google account).

Right mouse click functionality: Yes this can be done. Here is an example if you do not believe me: http://www.uza.lt/rightclick . Granted the method here will not work for our purposes, as it only works in some browsers and will not work in full-screen mode. But I'm confident I can find a superior work-around. If not, this is something I'm prepared to go without. Still, it would be nice if I could have my cake and eat right clicks too.
[FLASH=http://files.myfrogbag.com/mupff0/snowflake.swf]width=670 height=200 quality=medium wmode=transparent[/FLASH]

SpongeClock SquarePants

Quote from: Blue;1570167Right mouse click functionality: Yes this can be done. Here is an example if you do not believe me: http://www.uza.lt/rightclick . Granted the method here will not work for our purposes, as it only works in some browsers and will not work in full-screen mode. But I'm confident I can find a superior work-around. If not, this is something I'm prepared to go without. Still, it would be nice if I could have my cake and eat right clicks too.

That rightclick thing via external interface is a pretty shabby workaround.
But i cant think of any other way myself.

RocketFetus

Quote from: Blue;1565282not rocket science.

rocket fetus
Now everybody wants this thick afro body but I blow dry that hair and never let it down.

AirPumpClock

Isn't there already something a bit like that?