https://bga-devs.github.io/blog/blog/BGA DevelopersTODO. 2022-05-01T12:42:02+02:00 Timothée Pecatte https://bga-devs.github.io/blog/blog/ Jekyll © 2022 Timothée Pecatte /blog/assets/img/favicons/favicon.ico /blog/assets/img/favicons/favicon-96x96.png Do the undo — The search for an undo system2022-04-27T14:00:00+02:00 2022-04-27T14:00:00+02:00 https://bga-devs.github.io/blog/blog/posts/do-the-undo/ Guillaume Benny 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 saves the whole database and restores everything. So it’s impossible to use when multiple players can do something to the database, whether in a multipleactiveplayer state — or if your inactive playe... Stuck with Stock?2022-04-20T14:00:00+02:00 2022-04-20T14:00:00+02:00 https://bga-devs.github.io/blog/blog/posts/stuck-with-stock/ Guillaume Benny 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 cases but most of the time you can have more control and use less code with a pure CSS solution. Let’s look at how we can do that… and more. CSS Sprite Let’s create a CSS sprite, a single image with the... Getting the database out of the stone age2022-04-06T14:00:00+02:00 2022-04-09T20:35:40+02:00 https://bga-devs.github.io/blog/blog/posts/stone-age-db/ Guillaume Benny 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 understood enough of the framework to build my own library on top of what is provided. And the first thing on my todo list: a better database layer! Let’s start with a simple table named shape: $this-... Why (I) use TypeScript2022-03-09T12:00:00+01:00 2022-03-10T12:02:39+01:00 https://bga-devs.github.io/blog/blog/posts/why-use-typescript/ Guy Baudouin 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’ll show 2 examples, one using JavaScript, the other using TypeScript. In both cases, I just want to update a counter on the player panel when the player play a card (counter should go from 8 to 7). ... Translations - a recap2021-11-28T11:00:00+01:00 2021-11-28T11:00:00+01:00 https://bga-devs.github.io/blog/blog/posts/translations-summary/ Timothée Pecatte 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 for experienced developpers. And easy because we will see that the basic mechanisms can be summarized in a couple principles. This small guide is not here to replace documentation, please make sure ...