simple starcraft-esque shields
Moderator: Moderators
Re: simple starcraft-esque shields
Id consider adding them as a purely visual artefact, afterall the wolfen arent machines, as such they aren't as rugged, even if theres no extra shield bar
- 1v0ry_k1ng
- Posts: 4656
- Joined: 10 Mar 2006, 10:24
Re: simple starcraft-esque shields
the possibility I have no background in programming or computer science has no occoured to you?Argh wrote:...you're too lazy to look up gadget:UnitPreDamaged, handle the shield behavior there, pass any resulting change in the shield's "energy state" to unsync, and write a simple piece of OpenGL.

Re: simple starcraft-esque shields
Then get some, starting by writing Lua code for a free RTS engine.
Re: simple starcraft-esque shields
edit: removed unnecessary snipe at Argh. I'm sleepy and grumpy today.
Seriously, you've been given some direction - look at how Micro Modules works. It does a variation on everything you need:
1) Each unit has lua-based attributes that are represented in the GUI
2) Each unit redirects damage into this lua-based attribute.
That's a Starcraft shield. Obviously the details are different, but it's been done and the source is available. Go read it.
Lua is not a hardcore programming language. Most of the people coding in Lua learned by doing. This is not deep magic. It is not assembler, or neural networking, or low-level C.
Lua is a language that is designed for non-programmers, just like VB, Excel's functions, and every other programming language that makes non-programmers poop their pants every time they look at it rather than slow down and realize it's just a bunch of if-this-then-do-this stuff.
1vory, let me explain something: the first big program I wrote, I made was when I was fifteen or seventeen or so. It was the first and last videogame I coded - a head-to-head Combat clone with a simple tile-based level editor. I wrote it in VB5. VB5 is undoubtably a harder language than Lua. The "programming" stuff in Spring is the easy part. The hard part is the undocumented behaviors and hidden gotchas... and that's hard for everybody, whether you know how to code or not - it's the same crazy crap you deal with using TDFs and finding out that lasers have a default falloff.
Programming is not for computer scientists. It is for everyone who wants to get shiat done on a computer. The only reason every single person who uses a PC doesn't code is poor documentation and the perception that coding is scary. Secretaries should know how to write VB macros for MS Office, because 90% of their daily work could be automated.
Seriously, you've been given some direction - look at how Micro Modules works. It does a variation on everything you need:
1) Each unit has lua-based attributes that are represented in the GUI
2) Each unit redirects damage into this lua-based attribute.
That's a Starcraft shield. Obviously the details are different, but it's been done and the source is available. Go read it.
Lua is not a hardcore programming language. Most of the people coding in Lua learned by doing. This is not deep magic. It is not assembler, or neural networking, or low-level C.
Lua is a language that is designed for non-programmers, just like VB, Excel's functions, and every other programming language that makes non-programmers poop their pants every time they look at it rather than slow down and realize it's just a bunch of if-this-then-do-this stuff.
1vory, let me explain something: the first big program I wrote, I made was when I was fifteen or seventeen or so. It was the first and last videogame I coded - a head-to-head Combat clone with a simple tile-based level editor. I wrote it in VB5. VB5 is undoubtably a harder language than Lua. The "programming" stuff in Spring is the easy part. The hard part is the undocumented behaviors and hidden gotchas... and that's hard for everybody, whether you know how to code or not - it's the same crazy crap you deal with using TDFs and finding out that lasers have a default falloff.
Programming is not for computer scientists. It is for everyone who wants to get shiat done on a computer. The only reason every single person who uses a PC doesn't code is poor documentation and the perception that coding is scary. Secretaries should know how to write VB macros for MS Office, because 90% of their daily work could be automated.
- 1v0ry_k1ng
- Posts: 4656
- Joined: 10 Mar 2006, 10:24
Re: simple starcraft-esque shields
is that a working shield or just the artwork?
Re: simple starcraft-esque shields
The gamecode's working, yes. The shields eat Power whenever they get hit, absorb 50% to 90% of damage taken, are a buyable upgrade, and do graphics stuff.
- 1v0ry_k1ng
- Posts: 4656
- Joined: 10 Mar 2006, 10:24
Re: simple starcraft-esque shields
sweet
post code?

post code?
Re: simple starcraft-esque shields
It will be in P.U.R.E. 1.3.
Re: simple starcraft-esque shields
No time atm, sorry, I'm in crunch to get 1.3 done.
Re: simple starcraft-esque shields
Excuse me sir, but i believe you have a dog on your head.
Could probably get some pretty badarse looking lups distortions for shields.
Could probably get some pretty badarse looking lups distortions for shields.
Re: simple starcraft-esque shields
I'm using LUPS for some of the effects, but I tried distortion and wasn't pleased with it. Not that distortion's bad, just not for this particular use case.
- 1v0ry_k1ng
- Posts: 4656
- Joined: 10 Mar 2006, 10:24
Re: simple starcraft-esque shields
whats going in this thread guys