Page 2 of 3

Re: Computer themed real time strategy. [concept]

Posted: Wed May 09, 2012 12:00 pm
by Nixola
HANG 'EM!

Re: Computer themed real time strategy. [concept]

Posted: Wed May 09, 2012 2:35 pm
by mickeyjm
Nixola wrote:HANG 'EM!
I agree

Re: Computer themed real time strategy. [concept]

Posted: Wed May 09, 2012 6:41 pm
by ljdp
Added some A* pathfinding, and started to work on programs and ports.
The pathfinding works as a coroutine so it shouldn't block if takes a long time to find a path.
In this version you can left click on a program (the white squares) and right click on any system and it will try to make it's way there.
This is a bit of a stress test, I get 30FPS with around 1200 entities (160 systems, 240 programs and 800 ports).
hex.love
v0.2
(210.36 KiB) Downloaded 188 times

Re: Computer themed real time strategy. [concept]

Posted: Wed May 09, 2012 6:47 pm
by T-Bone
In many (if not most?) cases, SpriteBatches are a fully functional alternative to Canvases. Now that SpriteBatches have a software fallback, they should work on pretty much everything. And they really do, they even work on my cell phone.

Re: Computer themed real time strategy. [concept]

Posted: Wed May 09, 2012 9:19 pm
by Robin
Nice!

So are the white connections faster? Because it seems that way. And yet, the programs usually seem to prefer the grey ones.

Re: Computer themed real time strategy. [concept]

Posted: Wed May 09, 2012 9:26 pm
by ljdp
Robin wrote:Nice!
So are the white connections faster? Because it seems that way. And yet, the programs usually seem to prefer the grey ones.
Yeah the grey ports are backdoors, slow ports that can't be upgraded.
They just select one at random, the grey ones are just more common because the first port is always a backdoor port.

Re: Computer themed real time strategy. [concept]

Posted: Wed May 09, 2012 9:34 pm
by Robin
You could consider putting that in your A*.

Different speeds is typically something A* can take into account, so that they will always use the fastest route available. (Note that that would mean that they might take a "detour", while it is still the fastest route, because fast+fast+fast can be faster than slow+slow)

Re: Computer themed real time strategy. [concept]

Posted: Wed May 09, 2012 9:45 pm
by ljdp
Robin wrote:You could consider putting that in your A*.

Different speeds is typically something A* can take into account, so that they will always use the fastest route available. (Note that that would mean that they might take a "detour", while it is still the fastest route, because fast+fast+fast can be faster than slow+slow)
The current random behaviour was to show the effect. Bear in mind the player might not have information on how fast each port is due to fog of war therefor the pathfinder also should not have this information. The program will decide what port to use upon arriving at a system. If it can't use any ports, for example all ports are upgraded with 'firewall', then it will use the backdoor port as a last resort.

edit: also the speed of ports can change after the path is calculated.

Re: Computer themed real time strategy. [concept]

Posted: Wed May 09, 2012 9:50 pm
by coffee
ljdp, just to congratulate you. Your project seems quite interesting. Visually appealing, nice concept.
Jasoco wrote:Mine supports hundreds of canvases at once. And huge ones. Also big images. Huge images larger than 2048x2048. And it's an integrated graphics card. There's nothing wrong with canvases. Sometimes you NEED to use them if you want a playable game.
U a mac fanboy, your opinion can't count! But yep, my mac have also an integrated gpu and seems also to deal well however with larger images. But I believe that failed in tell till what image size can support in that recent love app diagnostic thread.

Re: Computer themed real time strategy. [concept]

Posted: Thu May 10, 2012 1:29 am
by Jasoco
I may be a "Mac fanboy" I think you called it, but at least my integrated graphics chip is better than many stand-alone physical video cards in this respect. :P ;) :) ^^ <-- Obligatory "just joshing ya" smileys