Skip to content

Instantly share code, notes, and snippets.

View realStandal's full-sized avatar
🦙

Ryan Lockard realStandal

🦙
  • Warren, Michigan
  • 05:17 (UTC -04:00)
View GitHub Profile
@realStandal
realStandal / leaderboard_put.json
Last active March 14, 2019 04:23
CodersQuest sample leaderboard PUT request
{
"user_token": "123XYZ", // JWT generated when the player logs in (located in the header of the request put here to illustrate)
"username": "test", // Players name
"character": "char_name", // Character used during a particular level
"user_score": 2468, // Found by adding all the player's score of each indavidual project together
"project": {
"level": 1, // Current level of the project (repeated from the path parameter)
"score": 1234, // Remaining time a player had with a particular level (in miliseconds)
},
"force_update": true // boolean to force the backend to update the held value for either the daily, weekly, or monthly high score
@realStandal
realStandal / leaderboard_master_return.json
Last active March 14, 2019 04:24
CodersQuest sample leaderboard GET request response
{
"user_token": "123XYZ", // JWT generated when the player logs in (located in the header of the request put here to illustrate)
"username": "test", // Player name
"user_score": 2468, // Found by adding all the player's score of each indavidual project together
"user_proj_scores": [
{
"level": 1,
"score": 1234 // The score in a particular level is found by converting the player's remaining time on a level to miliseconds
},
{
@realStandal
realStandal / UG_ZoneList.inc
Last active February 1, 2019 05:12
Updated GTA San Andreas zone list for GTA Underground (Vice and Liberty city added)
enum E_SAZONE
{
zName[34],
Float:zArea[6]
};
new ZonesList[][E_SAZONE] =
{
{"The Big Ear", {-410.00,1403.30,-3.00,-137.90,1681.20,200.00}},
{"Aldea Malvada",{-1372.10,2498.50,0.00,-1277.50,2615.30,200.00}},
{"Angel Pine",{-2324.90,-2584.20,-6.10,-1964.20,-2212.10,200.00}},