Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
Leaderboard in CopperCube

dynamogames
Registered User
Quote
2022-07-29 16:25:46

I'm trying to implement a feature in my game where player high scores and player name in the game would be saved to a text file on their PC (Note that there are high score and name variables in the game which are already saved in the disk and are loaded when game is published). I would like to know if there's a way to implement this in CopperCube?

P.S: My original aim is actually for players to be able to upload their high scores online and there would be like a leaderboard on the website with different players with their different high scores to create like a sense of competition in the game but I don't have a website currently so I have to resort to saving it to a text file then players can send it to my gmail where I can create a leaderboard for all players of the game.


okeoke
Registered User
Quote
2022-07-29 17:35:55

You can go full hardcore and send the results directly to a server:)

The easiest way I see is to make a simple app using node js + express/fastify. You can host it for free (with some limitation obviously) on glitch.com for example.

I mean - it's a fun thing to try.

There are some nuances obviously, like people will probably use profanity language, or cheat, or inject a script on your page, but nothing that manual moderation can fix.


serge
Registered User
Quote
2022-07-29 19:19:29

The most simple way is create dummy player names in Coppercube then have the player select from those name's. If you don't want other playing those name create a password protected login so only the player can use but you will have to use variables.


dynamogames
Registered User
Quote
2022-07-29 19:30:21

Thanks @okeoke and @serge. I thought there'll be a easier way to do it with just variables and some JavaScript actions but unfortunately...
But there is a CopperCube action on neophyte.cf where a text is read from a file but the feature above is just opposite of it - text is saved to a file.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internati?nal" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact