Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,119 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İ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