Py Log #6: Gaming (in Unity!)

nubb
2 min readSep 26, 2023

--

Wassup Medium! It’s a bit late, and I really wanna sleep, but I’m pushing this out right now to keep my promise of our “3 stories per week” schedule! Anyways, let’s dive in!

(Searching for 3D models all over the place…)

So What Have I Been Up To Lately?

I’ve learnt quite a bit today! Even though I’ve gone over it in school a bit, I went over modules, and also packages today in Python! I must say, COWSAY IS THE GREATEST THING EVER! (Joking lol, it’s funny, but not crazy)

On top of that, I learnt a bit about APIs! In my CS50 practice today, I got to make this:

import requests
import json
import sys

if len(sys.argv) != 2:
sys.exit("Error 1: impermissable requests")

APIreq = requests.get("https://itunes.apple.com/search?entity=song&limit=10&term=" + sys.argv[1])
# above line makes an api request to the Itunes API for info on a search query, detailing it be a song, and limiting us to one entry

APIresponse = APIreq.json()
for result in APIresponse["results"]:
print(result["trackViewUrl"])

What is this exactly? It makes an API request to iTunes, and searches based on the query given! With this program, we can specify an artist name, then search for up to 10 results (which have been modified to be the track URLs online!) While I did do this through a tutorial, I definitely understand the Request module a whole lot more!

Moving on from Python, how’s Stellarscape going? Pretty decent. Progress is progress after all. We’ve got normal WASD movement going, and now jumping! However, it’s proving a bit hard to view anything, since, well, our character is thin air, and there’s no way of seeing if our character is moving from a shadow or not. Which is why by the end of this week, I’ll be adding in 3D models to the game! Stay tuned for that, because it will turn out to be a complete mess (as usual).

Final Thoughts

A slightly abrupt ending, but, we gotta close this off at some point, y’know? Anyways, I’m quite tired, and would benefit from a snack and some anime. So I’ll see you guys this Wednesday, with a new story soon!

Take it easy, Medium :)

(Started watching JJK! Banger anime in all honesty.)

--

--

nubb

Some guy programming and telling the world about it || Check out my projects here: https://github.com/nubbsterr