Gamestudio Links
Zorro Links
Newest Posts
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
Data from CSV not parsed correctly
by jcl. 04/20/24 08:32
Zorro FIX plugin - Experimental
by jcl. 04/20/24 08:30
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (7th_zorro, Aku_Aku, 1 invisible), 579 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 14 of 16 1 2 12 13 14 15 16
Re: TUST or "The community library" [Re: sivan] #426916
07/31/13 12:48
07/31/13 12:48
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline
Serious User
PadMalcom  Offline
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe
Yes that would be great but we are only 2 (with txesmi 3) guys constantly working on it so it will take some time laugh

Re: TUST or "The community library" [Re: PadMalcom] #426930
07/31/13 13:53
07/31/13 13:53
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
yes I know. I hope I would have some time to spend with tust related works...


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: TUST or "The community library" [Re: sivan] #426933
07/31/13 14:00
07/31/13 14:00
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
I've built another feature: Input Manager
It allows users to built a Unity-alike input system with multiple key bindings and so on...

Init-Code:
Code:
input_init(); // Initialize the input system

// Setup axis controls
input_set_buttons("forward", key_for_str("w"), key_for_str("s"));
input_set_axis("forward", key_force.y, 1, 0.01);

input_set_buttons("sideward", key_for_str("a"), key_for_str("d"));
input_set_axis("sideward", key_force.x, -1, 0.01); // Invert X-Axis to get proper left-right movement

// Three simple buttons for movement
input_set_button("jump", key_for_str("space"));
input_set_button("crouch", 29); // ctrl
input_set_button("sprint", key_for_str("shiftl"));



Usage:
Code:
var inputValue = input_get("forward");



In the example above, inputValue is influenced by key_w, key_s and key_force.y. key_w increases , key_s decreases and key_force.y is added to the value. So eg. controlling a player would be possible with wasd and key_force without any additional programming or changes required.


Visit my site: www.masterq32.de
Re: TUST or "The community library" [Re: MasterQ32] #426951
07/31/13 14:56
07/31/13 14:56
Joined: Dec 2008
Posts: 1,218
Germany
Rackscha Offline
Serious User
Rackscha  Offline
Serious User

Joined: Dec 2008
Posts: 1,218
Germany
@MasterQ32 looks nice BUT please for the sake of Performance, use Constant IDs and NOT strings o.O

Something like:

Code:
//complete nonsense order for demonstration, only
int CInput_Forward = 0;
int CInput_Jump = 1;
...
input_set_buttons(CInput_Forward, key_for_str("w"), key_for_str("s"));
...
var inputValue = input_get(CInput_Forward);



Use strings where you need to display something, otherwhise use IDs tongue


MY Website with news of my projects:
(for example my current
Muliplayer Bomberman,
GenesisPrecompiler for LiteC
and TileMaster, an easy to use Tile editor)
Sparetime-Development

Re: TUST or "The community library" [Re: Rackscha] #426952
07/31/13 15:10
07/31/13 15:10
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
I couldn't notice any big performance impact. I know that strings aren't that fast, but string comparison ist fast enough for this purpose.

The reason why i used strings is that you don't need to use constant IDs.
Also the focus of TUST should be usabilty and not performace.


Visit my site: www.masterq32.de
Re: TUST or "The community library" [Re: MasterQ32] #426955
07/31/13 15:36
07/31/13 15:36
Joined: Dec 2008
Posts: 1,218
Germany
Rackscha Offline
Serious User
Rackscha  Offline
Serious User

Joined: Dec 2008
Posts: 1,218
Germany
Then you need Constant-Strings tongue
In these cases you just avoid to write them inline.


MY Website with news of my projects:
(for example my current
Muliplayer Bomberman,
GenesisPrecompiler for LiteC
and TileMaster, an easy to use Tile editor)
Sparetime-Development

Re: TUST or "The community library" [Re: MasterQ32] #426957
07/31/13 15:51
07/31/13 15:51
Joined: Nov 2011
Posts: 274
de
lemming Offline
Member
lemming  Offline
Member

Joined: Nov 2011
Posts: 274
de
@PadMalcom, MasterQ32: That's some really nice work! =)

I'm looking forward to see and test the animation and input system.
How are the strings stored and compared?

Re: TUST or "The community library" [Re: lemming] #427115
08/02/13 11:08
08/02/13 11:08
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline
Serious User
PadMalcom  Offline
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe
@Lemming thanks! laugh

Here is - next to voronoi - another algorithm to create road networks: Quadtrees!



(Still a little buggy.)

Last edited by PadMalcom; 08/02/13 11:08.
Re: TUST or "The community library" [Re: PadMalcom] #427143
08/02/13 17:28
08/02/13 17:28
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
We now have an online documentation avialable: http://tust.masterq32.de


Visit my site: www.masterq32.de
Re: TUST or "The community library" [Re: MasterQ32] #428004
08/16/13 12:25
08/16/13 12:25
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
I think i'm going to remove the the documentation included in the repository. Instead my server will create and maintain the documentation creation. The Doxyfile will remain in the repository to allow changes on the documentation style not only by me.
The server will do daily updates and pack tust into three packages:
TUST Complete
TUST Source-Only (with dlls)
TUST Offline Documentation

Is this okay for you all or any vetos?

Greetz
Felix


Visit my site: www.masterq32.de
Page 14 of 16 1 2 12 13 14 15 16

Gamestudio download | chip programmers | 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