Looking to make a game with Kaboom.js? It's got a playful, functional API and component system built into the core of the library. It's also a fun games library that's easy to learn and great for creating simple games quickly.
Complex character logic can get out of hand quickly without a system to manage it. We'll want to add melee attacks, ranged attacks, double jump, ducking, crawling, and more. One tried and true solution to handle this is to use a Finite State Machine.
If you are making asynchronous requests that can take several seconds to resolve then you'll want to have a loading animation. Players move on quickly from games that look frozen, stalled, or appears to be broken. This article shows you how to make a loading animation for better UX!
Are you having image distortion problems when scaling to make a button or panel graphic bigger? Multiple versions of the same button asset at different sizes would work but that isn't very efficient. There's a solution for this and it is called 9-slice scaling.
Are you looking for a clean and reusable way to implement undo for player actions? Perhaps you are making a turn-based strategy game or a puzzle game where the player can test what an action might look like before confirming it? Then the Command Pattern is what you are looking for!
Have you ever tried debugging a problem with your game that only seems to happen in production? The Developer Tools Console or Debugger is not an option so what do you do? This article will show you a clean and easy to maintain system to solve such problems.
Writing clean and well-organized code is something all game developers aspire to. We want code to be reusable and easy to maintain. Design patterns help us achieve this goal. In this article, we look at using the State Pattern for character movement.