Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
2 registered members (Quad, AndrewAMD), 1,007 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
[GSTNet] Example to get started, C-Lite (made by me) #251812
02/15/09 02:39
02/15/09 02:39
Joined: Nov 2000
Posts: 1,534
hamburg
Samb Offline OP
Serious User
Samb  Offline OP
Serious User

Joined: Nov 2000
Posts: 1,534
hamburg
Ok, got it faster than I thought.
This is a basic GSTNet example to get started.
WARNING: This example is for users who know what they do. so, if you can't program in C-Lite you can't use this.

you can find the files here:
http://www.bysamb.de/priv/gstnet_example.zip

It's a basic example for a player movement over the internet. It just sends the keys you press and also the position, if you pressed a new key. this is good for arcade-like games.

open "snowball.wmp" and run it to test it.
"schneeballmain.c" is the main script file. I tried to comment everything, but, I think, everyone who had problems with GSTNet just want to see the main function.

Ok, I hope this will solve some of you guys problems smile
Now go out there and produce some multiplayer games!!!

Last edited by Samb; 02/15/09 02:40.
Re: [GSTNet] Example to get started, C-Lite (made by me) [Re: Samb] #252032
02/16/09 04:25
02/16/09 04:25
Joined: Nov 2000
Posts: 1,534
hamburg
Samb Offline OP
Serious User
Samb  Offline OP
Serious User

Joined: Nov 2000
Posts: 1,534
hamburg
quick correction:
fps_lock must be 0, not 1. it works better with 0.

anyone tested it? just wanna know if it works so I don't have to worry about it smile

Re: [GSTNet] Example to get started, C-Lite (made by me) [Re: Samb] #252039
02/16/09 06:35
02/16/09 06:35
Joined: Oct 2007
Posts: 5,209
İstanbul, Turkey
Quad Online
Senior Expert
Quad  Online
Senior Expert

Joined: Oct 2007
Posts: 5,209
İstanbul, Turkey
yeah, it works.

it'll be very helpful, thank you !


3333333333

Moderated by  aztec, Blink, HeelX 

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