Urgent.News

What's breaking now, across thousands of outlets.

Tech

I Built a Spotify Desktop Pet as My First Godot Project, BelPet! Here's how I did it.

This was my first time using Godot! (I've been a long time user of unity) I probably should've started with something a little more focused on learning Godot itself and exploring what the engine has to offer... Instead, I got sidetracked and made BelPet , a small desktop pet that chills on your screen and doubles as a Spotify player :D What is BelPet? BelPet is a desktop pet built with Godot 4…

The author, new to Godot, created BelPet, a desktop pet that doubles as a Spotify player. BelPet allows users to interact with Spotify playback, seek through songs, adjust volume, and view album artwork directly from their desktop. This was the first time the author used Godot 4 with C# and worked with a public API, specifically the Spotify Web API and Spotify Web Playback SDK.

The author had to embed the JavaScript SDK inside a WebView inside Godot to make the project work. They also had to make Godet behave like a native desktop pet, including features like being always-on-top, draggable, and automatically falling when released. Limitations from Spotify's development mode restrictions, such as needing to manually authorize accounts and requiring Spotify Premium, prompted the author to stop further development for now.

Despite starting with a broader goal, the author found this project rewarding, learning about Godot 4, API integration, web browser integration, and native window manipulation. The project is open source under the MIT License on GitHub for others to explore or build upon.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

More from Friday 18 September →