Page 1 of 1

strategy game

Posted: Fri Jul 17, 2015 1:19 am
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 ;)

Re: strategy game

Posted: Sat Jul 18, 2015 1:30 pm
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...

Re: strategy game

Posted: Mon Jul 20, 2015 11:43 pm
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.

Re: strategy game

Posted: Tue Jul 21, 2015 3:54 am
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.

Re: strategy game

Posted: Tue Jul 21, 2015 1:29 pm
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.