I'll probably release it when it's done, so stay tuned for that I guess. That's it for now, just wanted to share the idea with you! : base(ServerPacketHeader.MyDeathMessageComposer)īase.WriteInt(Convert.ToInt32(Math.Floor(Convert.ToDouble(BlocksCaptured) / 256.0))) // Blocks captured multiplierīase.WriteInt(BlocksCaptured % 256) // Blocks captured remainderīase.WriteInt(Convert.ToInt32(Math.Floor(Convert.ToDouble(PlayersKilled) / 256.0))) // Kills multiplierīase.WriteInt(PlayersKilled % 256) // Kills remainderīase.WriteInt(Convert.ToInt32(Math.Floor(Convert.ToDouble(HighestRank) / 256.0))) // Highest Rank Multiplierīase.WriteInt(HighestRank % 256) // Highest Rank remainderīase.WriteInt(Convert.ToInt32(Math.Floor(Convert.ToDouble(SecondsAlive) / 256.0))) // Seconds alive multiplierīase.WriteInt(SecondsAlive % 256) // Seconds alive remainderīase.WriteInt(DeathType 3 ? 1 : DeathType) // Killed by, 1=player, 2=the wall, 3=yourself Public MyDeathComposer(int SecondsAlive, int HighestRank, int PlayersKilled, int BlocksCaptured, int DeathType, string KilledBy = "") Though I have yet to configure all the incoming packets, and the game itself etc. The server handles and sends packets properly. The server is 100% selfwritten, though does it contain some inspiration from some projects I've been working with lately. I'm not againt Java, don't get me wrong, but I simply love Visual Studio. You're either pro- or anti-C#, I "grew up" programming in C# as I was always working on Habbo related projects. I simply modified the client, allowing me to log packets and learning more and more about the game. The library I'm using for C# WebSockets is Flex, the reason for this is simply because I had experience with it. It uses a javascript client, and in my case a C# server. What is Splix.io Splix.io is a multiplayer browser game with the domain extension '.io'. Just like Ogar did with Agar, I can create some custom gamemodes too which is really fun to look forward to. Never before have I made my own C# project, so bear with me as you might see some irregular code.īesides wanting to expand my knowledge, it seemed a good idea to me to let people create their own private servers, allowing them to play with their friends, and their friends only, in for instance a much smaller map. each server corresponds to a separate animal, including but not limited to: Snake Koala Monkey Bear Koala Pinguin To Join one of these servers, all one needs to do is change their URL to splix.io/animal-name-here and they will join the respective lobby. I like the game very much, and have nothing but respect to the developers of it, yet I'm still a curious George wanting to expand my knowledge. Servers are the different maps for Splix.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |