Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Willys' Tutorial
#1
For now, I will only setup the lists and such and and think of exactly what I will include in this tutorial. I have a couple of ideas on parts that can improve the speed. And we'll see if it turns out any good at all.
  • Idea 1
  • Hard Coded Items - Currently the items are loaded from a file server side. And each time a player logs into the game. The server sends all the item information to the client. But instead of sending them, I thought it would be better to skip the simple item editor and just hard code them into the game. The idea would be something like this, on both the server and client:
    Code:
    Item(1).Name = "Sword of everything"
            Item(1).Pic = 3
            Item(1).Type = ITEM_TYPE_WEAPON
    This way the client will always have the information and no packets will be sent. Only the item number when needed.
    Idea 2
  • Hard Coded Items - The 2:nd idea if that instead of the server being the only part that has the items, the client could also posses them, and instead of letting the server send the information. The client just loads them from the item files in the Client. This is the easy and non time consuming way. Since it only includes the loading part and not much coding. But still it would make the server send less packets.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)