Blog of Internet of Things is Bullshit
IOTIB.net - Free and Open Source.
For more frequent posts, you can follow my microblog.
Jim the Crossbowman Devblog: November
Nov/28/2024

Preface


I decided to try out making a devblog on a game that me and cdymrtn are working on. It's a basic SNES-style shooter staring a dude with an automatic crossbow. The goal of the project are:

  1. To test the feasibility of game development in Vala.
  2. To learn Raylib more in-depth, so I can better work on the Gobject layer
  3. Create a game with a GTK UI.
  4. To create a fun game!

I'm hoping that a devblog helps me clear my mind and better focus on the game. Without further ado, here's the devblog.

Humble Beginnings


So far, there is not much to look at. Here's what I got:

Yeah, not much to look at, huh? But the underlying code is pretty interesting in my opinion.

The Game Pak


The heart of the game is a zip archive called a "game pak". Using libarchive it pre-loads all the assets into memory. So far it handles Sprites/Textures, Sounds and Music.

I eventually hope to add a cache functionality where textures are only loaded when needed, and kept in memory for the rest of the game, however it's not a concern for now as the game only uses 60mb (Most of that being the test music track.).

To put it simply, the game pak is the foundation for the whole application.

What's next?


Misc