Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

HalfHeart Studios

60
Posts
2
Topics
3
Followers
5
Following
A member registered Apr 13, 2022 · View creator page →

Creator of

Recent community posts

(3 edits)

The API is fully accessible with HTTP.

The requests library is something you WILL encounter when using python. It is used for sending HTTP requests.

py -m pip install requests

The docs: https://requests.readthedocs.io/en/latest/

How you could go about doing this: Look at the cURL template on the loot locker API docs for making a session:

curl -X POST "https://api.lootlocker.io/game/v2/session/guest" \
  -H "Content-Type: application/json" \
  -d "{\"game_key\": \"your_game_key\", \"game_version\": \"0.10.0.0\"}"

What you can see: The mode is POST to the url “https://api.lootlocker.io/game/v2/session/guest”. The HTTP Headers (-H argument) are made of key-value pairs (like dictionaries). The key is “Content-Type” and the value is “application/json”. This is standard HTTP. Now to the loot locker specific stuff. The -d argument is the data you send. Here, this is {“game_key”: some_game_key, “game_version”: some_version}.

To transfer this to python:

import requests

GAME_KEY = "my_key"
GAME_VERSION = "1.0.0"

url = "https://api.lootlocker.io/game/v2/session/guest"

# This is the -H argument as a dict
headers = {
    "Content-Type": "application/json"
}

# This is the -d argument as a dict
data = {
    "game_key": GAME_KEY,
    "game_version": GAME_VERSION
}

# Since dicts are (basically) in JSON format, you can specify these as the data
# requests.post returns requests.Response, from which you can get the status_code and other information
r = requests.post(url, headers=headers, json=data)

The same thing can be done for getting the leaderboard. The API Docs show you, that the response will look something like this:

{
  "success": true,
  "session_token": "e6fa44946f077dd9fe67311ab3f188c596df9969",
  "player_id": 3,
  "public_uid": "TSEYDXD8",
  "player_identifier": "ec9b35e6-b184-4f34-b49f-980f86b291e2",
  "player_created_at": "2022-05-30T07:56:01+00:00",
  "check_grant_notifications": true,
  "check_deactivation_notifications": false,
  "seen_before": true
}

Now by accessing r.json().get("session_token") for example, we can get the session_token, which we can later use to save the score to the leaderboard.

IN SHORT:

  1. Look at the cURL template
  2. Convert -H and -d to dicts
  3. POST to the URL of the API
  4. Evaluate the Response
  5. Repeat

If you need help with anything, hit me up on discord (@fabianbuthere)!

(Sorry for the lengthy answer, I’m used to StackOverflow)

(1 edit)

Technically you don’t HAVE to have a leaderboard, so you can do this, although I would recommend just using the API, because it’s really not that hard. It’s really just one request for submitting a score, and another one for getting the leaderboard. It will make your game sustain itself, not depending on you checking the comments.

So yes, you can, but it’s less than not recommended.

Loot locker has an API, so you can just make calls from virtually any programming language you’re working with. (https://ref.lootlocker.com/game-api/#introduction)

I’d have to work alone this jam, so I’m looking for a team. I code and make music, but absolutely suck at making the art. If anyone wants to team with me, send a friend request to Discord @fabianbuthere . P.S.: I mainly use Godot.

(1 edit)

Hey, I am a pretty OK coder and musician. The guy I normally work with can’t participate this jam, so if you want to we could work together!

Really creative! The Text should be rendered in front of the buildings tho.

Must be a problem with the web version. In the windows build it has music and attack sfx.

Thank you for the clarification.

Действительно, очень классный кот.

(1 edit)

As said in the description, because I didn’t have the time to implement it you can’t hurt the enemy. Also, I know there is acid rain in the background. That shader wasn’t easy to make. Thank you for that information.

The controls are a bit weird, but the game is really creative! Well done!

Really nice game! Although it is pretty simple, I love the concept!

Please make the rain quieter, except for that nice game!

The rain is WAY too loud, but except for that nice game!

screen.flip() is fine for updating, but always try to use screen.blit() and draw sprites, even if they’re just a white rectangle. You will almost never use the normal draw commands.

Sorry if you sometimes die without reason, I probably have some error in my collisions.

Congrats on the 2nd place win!

(1 edit)

One of the most creative games this Jam! Digging up the graves takes a bit too long for my taste, but besides that it’s a really nice game. You move slower for every grave you uncover, don’t know whether this is intended. Oh, and please make the camera a bit smoother.

Really nice! Your game has this mobile-arcade game vibe, which I didn’t really see anywhere else this Jam.

Really creative game! Love the combination of the grid-movement but also the rolling!

Very nice game! I like the art style of the characters, and the idea is pretty creative too!

Really creative game! Definitely in my top 5!

Nice art style and concept, and really clean for 3 hours! Maybe make the statement change while playing, so it would be a little harder. Really neat game!

Making the statement switch during the game would make it even more fun. Still a really unique and nicely implemented idea!

Nice game! A little to easy, but nice idea and implementation!

Nice game, really like the art style and general theme!

Really creative and nice game! Very interesting implementation of the theme. Definitely in my top 5!

It’s really easy, but I really like the concept and the art!

Really nice game! I like the backstory and the art style a lot. Maybe add some sounds!

Nice game! The music’s a little off, but else really nice game. I like the slippery controls, they make the game the right difficulty!

OK game for one hour! I think you could have used your extra 2 hours for making sprites, a better background, maybe animations.

Info: The game has to be played in full screen to work for me!

I love the art style! It’s a simple game, while still challenging and fun. One of my favorites, especially because of the art style.

Nice game! I love the art-style, looks really clean and polished!

Really nice game! The movement is a bit weird; with some tools you can’t move to the left/right without going down, which I think makes it too hard to aim for crates. Love the idea and the artwork tho!

(1 edit)

Pretty good for 3 hours, I just don’t really see the connection to the theme. Still, it could become a very good game! I too wanted to make a python game, but I was uncertain as to whether I can complete it in 3h. P.S.: screen.blit() is your friend

Don’t know how I triggered it, but I had 2 enemies on top of each other one time. Too, some items just disappeared.

I love the cutscene! Some music would be nice tho.

Really nice game, I love the little animation at the beginning! The digging is really creative! I would like some music tho.

Nice game! Looks really clean for 3 hours.