Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (NewbieZorro, TipmyPip, 1 invisible), 19,045 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
NewTemplate Collection #416550
02/01/13 15:07
02/01/13 15:07
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline OP
Expert
MasterQ32  Offline 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








Visit my site: www.masterq32.de
Re: NewTemplate Collection [Re: MasterQ32] #416555
02/01/13 15:40
02/01/13 15:40
Joined: May 2009
Posts: 5,377
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,377
Caucasus
Man, this is awesome ^^ Thanks a lot!


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: NewTemplate Collection [Re: 3run] #416567
02/01/13 18:10
02/01/13 18:10
Joined: Apr 2008
Posts: 2,488
ratchet Offline
Expert
ratchet  Offline
Expert

Joined: Apr 2008
Posts: 2,488
Great laugh

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 Offline OP
Expert
MasterQ32  Offline 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.

Visit my site: www.masterq32.de
Re: NewTemplate Collection [Re: MasterQ32] #416571
02/01/13 18:30
02/01/13 18:30
Joined: Apr 2008
Posts: 2,488
ratchet Offline
Expert
ratchet  Offline
Expert

Joined: Apr 2008
Posts: 2,488
Yep 3DGS is not designed as modules, you'll have to re think all programming core.
We don't need multiple actions, ust the possibility to choose two actions like you did :
- TPS
- FPS
and each having one loop only.
Choosing some action template is enought and already some modular creation of a game.

Re: NewTemplate Collection [Re: ratchet] #416573
02/01/13 18:53
02/01/13 18:53
Joined: May 2009
Posts: 5,377
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,377
Caucasus
ratchet@ I'm pretty sure, that there is no way to keep it flexible without modules, as this template doesn't belong to any fixed genre. If you want to keep it fast with one loop, why don't you organize it your own way? You'll need to rewrite it, to fit your project anyway, as there won't be a code snippet (ever), which will be 100 % optimized and will fit your needs for 100 %.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: NewTemplate Collection [Re: ratchet] #416577
02/01/13 20:13
02/01/13 20:13
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
Originally Posted By: ratchet
Yep 3DGS is not designed as modules, you'll have to re think all programming core.

Originally Posted By: ratchet
But from a programming perspective i don't think it is good ??

Originally Posted By: ratchet
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 Offline
Expert
Uhrwerk  Offline
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: Uhrwerk] #416579
02/01/13 20:27
02/01/13 20:27
Joined: Apr 2008
Posts: 2,488
ratchet Offline
Expert
ratchet  Offline
Expert

Joined: Apr 2008
Posts: 2,488

I'm sorry, but your posts are absolute bullshit, to put it mildly.


Thanks , i just needed someone to open up the light for me and show how some posts i do are so bad and non sense !

Re: NewTemplate Collection [Re: ratchet] #416582
02/01/13 23:59
02/01/13 23:59
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
You are welcome, I'm glad I could be of help laugh

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
Page 1 of 3 1 2 3

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1