simple starcraft-esque shields - Page 2

simple starcraft-esque shields

Requests for features in the spring code.

Moderator: Moderators

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

Re: simple starcraft-esque shields

Post by AF »

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
User avatar
1v0ry_k1ng
Posts: 4656
Joined: 10 Mar 2006, 10:24

Re: simple starcraft-esque shields

Post by 1v0ry_k1ng »

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.
the possibility I have no background in programming or computer science has no occoured to you? :P
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: simple starcraft-esque shields

Post by zwzsg »

Then get some, starting by writing Lua code for a free RTS engine.
User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Re: simple starcraft-esque shields

Post by Pxtl »

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.
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: simple starcraft-esque shields

Post by Argh »

Meh.
Attachments
screen064.jpg
screen064.jpg (34.5 KiB) Viewed 1099 times
User avatar
1v0ry_k1ng
Posts: 4656
Joined: 10 Mar 2006, 10:24

Re: simple starcraft-esque shields

Post by 1v0ry_k1ng »

is that a working shield or just the artwork?
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: simple starcraft-esque shields

Post by Argh »

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.
User avatar
1v0ry_k1ng
Posts: 4656
Joined: 10 Mar 2006, 10:24

Re: simple starcraft-esque shields

Post by 1v0ry_k1ng »

sweet :-)

post code?
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: simple starcraft-esque shields

Post by Argh »

It will be in P.U.R.E. 1.3.
User avatar
1v0ry_k1ng
Posts: 4656
Joined: 10 Mar 2006, 10:24

Re: simple starcraft-esque shields

Post by 1v0ry_k1ng »

post code?
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: simple starcraft-esque shields

Post by Argh »

No time atm, sorry, I'm in crunch to get 1.3 done.
Saktoth
Zero-K Developer
Posts: 2665
Joined: 28 Nov 2006, 13:22

Re: simple starcraft-esque shields

Post by Saktoth »

Excuse me sir, but i believe you have a dog on your head.

Could probably get some pretty badarse looking lups distortions for shields.
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: simple starcraft-esque shields

Post by Argh »

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.
User avatar
1v0ry_k1ng
Posts: 4656
Joined: 10 Mar 2006, 10:24

Re: simple starcraft-esque shields

Post by 1v0ry_k1ng »

whats going in this thread guys
Post Reply

Return to “Feature Requests”