Creeping metal gadget - Page 2

Creeping metal gadget

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Creeping metal gadget

Post by AF »

A tiling system with creep tiles and boundary tiles that slowly extended would suffice for what you want rather than a circle drawn onto the map that gets bigger and bigger. This way you can extend the creep along the terrain by choosing the nearby quad with the smallest gradient to expand into. This way creep will nto spread indiscriminately and will not take cliff faces first but go around hills and then consume them.

If you have a data structure representing a square on the map and a reference to the surrounding nodes, and a boolean signifying if the square is covered by creep or not then you can use that to determine if its a boundary square or not, and depending on which adjacent squares are creep, which texture to draw.
User avatar
Hoi
Posts: 2917
Joined: 13 May 2008, 16:51

Re: Creeping metal gadget

Post by Hoi »

is GLSL needed for this?
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Creeping metal gadget

Post by AF »

no, this happens all the time in tile based games, there are even terms for things like this.

And I'm sure starcraft didn't use GLSL for its zerg creep
User avatar
Hoi
Posts: 2917
Joined: 13 May 2008, 16:51

Re: Creeping metal gadget

Post by Hoi »

just wanted to be sure :wink:
Archangel of Death
Posts: 854
Joined: 28 Jan 2005, 18:15

Re: Creeping metal gadget

Post by Archangel of Death »

The blight. 8)
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: Creeping metal gadget

Post by jK »

AF wrote:no, this happens all the time in tile based games, there are even terms for things like this.

And I'm sure starcraft didn't use GLSL for its zerg creep
starcraft was 2D!
you can be sure that they use shaders in starcraft2!
User avatar
Hoi
Posts: 2917
Joined: 13 May 2008, 16:51

Re: Creeping metal gadget

Post by Hoi »

jK wrote:starcraft2!
Give......
Post Reply

Return to “Lua Scripts”