|
Post by tenochtitlanuk on Feb 22, 2023 16:11:25 GMT -5
Atomose was asking how easy it is to add code to a game to save a score/username somewhere, and retrieve it to display a list of high scores. The easy method on my site is an example. Master computer can send/receive commands to control say hardware. For a game-- Game creator's computer runs code to read the files that the game-players machine uploaded when they exited the game, sorts them, and puts up perhaps daily a leader board. This would then be read when the player next starts the game ( or could be checked for at regular intervals while playing). Image below shos the principle in action. Lefthand code, on one computer, sits waiting for a text input and sends it when the button is pushed. Righthand code- on the same computer or another anywhere on the 'net, regularly checks if this file is changed. The image below shows three stages on a test run. Will add the code on my website asap. At present a bit fraught as the buyer of the house of the people who were going to buy ours have just backed out.... in the UK this is possible until 'contracts are exchanged'. So wemay lose the house we were expecting to buy... Ho Hum.
|
|
|
Post by atomose on Feb 22, 2023 18:29:59 GMT -5
THANKS ! I look forward to the code to try to understand how it works.
In principle, it's simple indeed, but I don't have any knowledge of syntax or network/server configuration. I have always coded "offline" and I think adding this function would be extraordinary and would encourage a lot of people to use LB to code small multiplayer games.
I did lots of open source tutorials, if you could do the same for the "online multiplayer" it would be really great. (it must be said that even if for you it may seem simple, many are lost) And to my knowledge some have tried but no one here has really made a simple and usable tutorial (for beginners).
|
|