1 registered members (TipmyPip),
18,633
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
NewTemplate Collection
#416550
02/01/13 15:07
02/01/13 15:07
|
Joined: Nov 2007
Posts: 2,568 Germany, BW, Stuttgart
MasterQ32
OP
Expert
|
OP
Expert
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
|
Hey Guys! Some forum members complained about missing easy to use templates. So i thought i could do this. Now this is the result of some hours work: Download contains all features implemented in a small demo, just start main.c and walk around (on platforms you will get effects) Features: - Player Controller
- Third Person
- First Person
- Background Music with default music and 4 scenes
- Weather controller with rain and snow
- Completly customizable from WED
Just ask for other template parts, i'll try to implement them when i got the time. Greetings Felix Screenshots    
|
|
|
Re: NewTemplate Collection
[Re: 3run]
#416567
02/01/13 18:10
02/01/13 18:10
|
Joined: Apr 2008
Posts: 2,488
ratchet
Expert
|
Expert
Joined: Apr 2008
Posts: 2,488
|
Great  But from a programming perspective i don't think it is good ?? action tps_controller() { player_controller(); while(me) { my->pan += mouse_speed * mouse_force.x; // Camera code vec_set(&camera->x, &my->skill5); vec_rotate(&camera->x, &my->pan); vec_add(&camera->x, &my->x); camera->pan = my->pan; camera->tilt = -15; wait(1); } }
You can see the green call to a function having a while loop, than in the function another while loop in blue. So there are Two while functions, i odn't think this is optimized ? Perhaps it was betetr to copy and paste and have only one loop for each template ? Anyway thanks. That's great work and should need to be on 3DGS official map properties templates.
|
|
|
Re: NewTemplate Collection
[Re: ratchet]
#416569
02/01/13 18:12
02/01/13 18:12
|
Joined: Nov 2007
Posts: 2,568 Germany, BW, Stuttgart
MasterQ32
OP
Expert
|
OP
Expert
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
|
sometimes performance isn't the best solution and gamestudio doesn't allow to add multiple actions for one entity in WED so i needed to call this in code
i just want to hold it as modules
Last edited by MasterQ32; 02/01/13 18:12.
|
|
|
Re: NewTemplate Collection
[Re: ratchet]
#416577
02/01/13 20:13
02/01/13 20:13
|
Joined: Apr 2007
Posts: 3,751 Canada
WretchedSid
Expert
|
Expert
Joined: Apr 2007
Posts: 3,751
Canada
|
Yep 3DGS is not designed as modules, you'll have to re think all programming core. But from a programming perspective i don't think it is good ?? So there are Two while functions, i odn't think this is optimized ? I'm sorry, but your posts are absolute bullshit, to put it mildly. If you make performance claims, back them up with profiler results! Premature optimization, especially done by people who explicitly claim to not be programmers, are the worst. DON'T do that! You propose to exchange literally no performance gains whatsoever for hard to read and maintain code. For the future: If you think some piece of code has performance issues or is unoptimized, run it through a profiler! Don't try to optimize prematurely, it will only cost you time (in your case also make the code unmaintainable) and won't give you anything in return.
Shitlord by trade and passion. Graphics programmer at Laminar Research. I write blog posts at feresignum.com
|
|
|
Re: NewTemplate Collection
[Re: WretchedSid]
#416578
02/01/13 20:19
02/01/13 20:19
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
Amen. Thanks, JustSid. ^^
Apart from that MasterQ32's contribution is really nice. There is absolutely no reason to badmouth this.
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: NewTemplate Collection
[Re: ratchet]
#416582
02/01/13 23:59
02/01/13 23:59
|
Joined: Apr 2007
Posts: 3,751 Canada
WretchedSid
Expert
|
Expert
Joined: Apr 2007
Posts: 3,751
Canada
|
You are welcome, I'm glad I could be of help  I agree with Uhrwerk by the way, this is a really nice contribution! Keep up the great work Felix!
Last edited by JustSid; 02/02/13 00:00.
Shitlord by trade and passion. Graphics programmer at Laminar Research. I write blog posts at feresignum.com
|
|
|
|