strategy game

Post any examples or modules that you want to share here
Post Reply
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

strategy game

Post by KG_is_back »

As I mentioned in another post(s) I'm working on a strategy game made in Flowstone. Its a C&C / Warcraft1 / Knights&Merchants styled 2D game. I have the gameplay roughly planed out in my head.

17.7.2015 (v0.0.2)
-map editor can edit terrain and add/remove units
-in game mode, units can move in a straight path
20.7.2015(v0.0.4)
-units now have pathfinding (A* algorithm)
-units can attack other units (either when commanded by right-clicking enemy or by natural aggression when idle)
-player can order units to attack, or to make attack-move (unit moves to destination, attacking any enemies it encounters)
-units have basic natural agression - they will attack nearby enemies when in idle state


general controls: in left panel you can choose between editor mode and game mode. In editor mode you can select what to edit (terrain,units,...) and select respective tool options (like terrain-type to draw). Left-clicking on map uses the selected tool. In game mode, you can control "red" units like in usual RTS game (left-click/drag to select, right click to order move/attack, shift-right-click to queue commands, ctrl+right-click to "attack-move").

features being worked on: view zooming; models/textures/animations for units; pick-able items (food,resources,weapons/tools), inventory, stats modifiers from equipped items (health-regen from consuming food, attack bonus from equipped weapons etc.)

If you are interested in this project and want to help out in any way, leave a post or PM me ;)
Attachments
strategyv0.0.4.fsm
(10.91 KiB) Downloaded 1125 times
strategyv0.0.2.fsm
(8.5 KiB) Downloaded 1067 times
Last edited by KG_is_back on Mon Jul 20, 2015 11:41 pm, edited 1 time in total.
billv
Posts: 1165
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia
Contact:

Re: strategy game

Post by billv »

Looks interesting KG....
Good to see FS working in alternative places other than dsp and robotics.
Hope you keep have fun with this little project...
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: strategy game

Post by KG_is_back »

Update... details in the first post... Now the game is actually playable. Soon I will add map-save/load option so you can try the game, without making new map every time.
RJHollins
Posts: 1573
Joined: Thu Mar 08, 2012 7:58 pm

Re: strategy game

Post by RJHollins »

Came by to check this out KG, but I'm getting a Ruby ERROR message in mainly the 'SetSize' module.
"Undefined method in the setViewSize." I am running FS 3.0.4.
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: strategy game

Post by KG_is_back »

RJHollins wrote:Came by to check this out KG, but I'm getting a Ruby ERROR message in mainly the 'SetSize' module.
"Undefined method in the setViewSize." I am running FS 3.0.4.


The processing greatly relies on setViewSize method which was added in 305 if I recall correctly. It allows you to resize and move the module's GUI from inside ruby. Both bar and map part of the gui rely on it to set their sizes relative to overall gui size (the game view is resizeable). Also the map itself is actually a module with gui_size = map_size and it's just shifted around when you scroll.
Post Reply