Home
BGA Developers
Cancel

Do the undo — The search for an undo system

Let’s talk about undoing. BGA has an undo system but it has limitations: You only have one undo. If you have a multi-step action, undoing means restarting from the beginning. The undo system...

Stuck with Stock?

If you are on the bga-developer discord, you will often see this answer when someone asks about Stock: Don’t use stock. — Everyone (almost) You might want to use Stock in some special case...

Getting the database out of the stone age

See what I did there? Stone Age? OK, sorry about that. BGA’s database layer is… old. Writting database requests by hand is tedious and prone to errors. So after developing 2 games on BGA, I und...

Why (I) use TypeScript

Using TypeScript on my day-time job, I’m very used to it and I can see the advantages of it. As it is not integrated by default on BGA framework, I made a tutorial to set it up on your projects. I...

Translations - a recap

As I usually say on the discord server for BGA developpers, translations are easy and hard. Hard because translations seems to be one of the most recurring issue developpers are facing on BGA, even...

Quick debug (part 2)

The post is a follow-up to https://bga-devs.github.io/blog/posts/quick-debug-part1/ and will use the debug methods similar to what was explained on part 1. For this post, I share my experience on ...

Classes, notifications and bugs!

When creating a game, you will probably want to create classes so that your code doesn’t become a mess. Something like this: class Card { public $cardId; public $locationId; public $pl...

Quick debug (part I)

For some games, you need to be able to test a particular case quickly. I will detail here how I do it for the game King of Tokyo, who got 66 different cards, and of course a lot more of possible c...

How to make a real fast replay mode

This is the story of how I went from this (~1min for 80 replayed moves) : to this (~8sec) : Before diving into code, maybe you are asking yourself: Well, when you have a bug report at move 4...