[GSTNet] Example to get started, C-Lite (made by me)

Posted By: Samb

[GSTNet] Example to get started, C-Lite (made by me) - 02/15/09 02:39

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!!!
Posted By: Samb

Re: [GSTNet] Example to get started, C-Lite (made by me) - 02/16/09 04:25

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
Posted By: Quad

Re: [GSTNet] Example to get started, C-Lite (made by me) - 02/16/09 06:35

yeah, it works.

it'll be very helpful, thank you !
© 2024 lite-C Forums