IBOV 167,493.88 ▲ 1.64% COLCAP 2,452.46 — — IPC MEX 69,355.62 ▲ 1.06% MERVAL 2,848,945 — — USD/BRL5.90▼ 0.55% USD/MXN19.42▲ 1.25% USD/CLP1,033▲ 1.60% USD/COP3,619▲ 9.35% USD/PEN3.48▲ 0.70% USD/ARS1,593▲ 0.79% USD/UYU40.72▲ 3.56% USD/PYG6,399▼ 0.47% USD/BOB11.72▲ 3.82% USD/DOP59.45▲ 1.88% USD/CRC440.90▲ 1.97% USD/GTQ7.64▲ 3.48% USD/HNL26.89▲ 3.50% USD/NIO36.62▲ 2.97% USD/VES917.52▼ 0.13% USD/PAB1.00— 0.00% USD/BZD2.00— 0.00% USD/JMD157.09▲ 2.61% USD/TTD6.72▲ 2.42% EUR/BRL6.47▼ 0.78% BRENT 87.23 ▼ 2.39% WTI 80.59 ▲ 0.52% IRON ORE 161.91 — — COPPER 5.42 ▼ 3.66% GOLD 3,568 ▼ 2.29% SILVER 40.86 ▼ 5.30% SOY 1,240 ▲ 0.87% CORN 450.00 ▲ 3.63% WHEAT 593.00 ▲ 2.77% COFFEE 264.10 ▼ 3.74% SUGAR 17.71 ▲ 0.57% ORANGE JUICE 131.65 ▼ 1.97% COTTON 81.11 ▲ 4.62% COCOA 5,405 ▲ 4.22% BEEF 224.80 ▲ 0.11% CATTLE 331.55 ▼ 0.83% LITHIUM 53.41 ▼ 2.36% PETR4 41.47 ▲ 0.41% VALE3 55.69 ▼ 4.66% ITUB4 40.08 ▲ 0.88% BBDC4 13.81 ▲ 0.73% ABEV3 16.21 ▲ 1.69% BBAS3 14.41 ▲ 1.48% B3SA3 14.41 ▲ 1.77% WEGE3 50.00 ▲ 0.18% PRIO3 59.42 ▲ 2.06% SUZB3 55.58 ▲ 0.71% RENT3 29.04 ▲ 1.04% AZZA3 14.36 ▼ 1.51% CSAN3 3.27 ▲ 4.14% RAIZ4 13.90 ▼ 7.33% PCAR3 3.50 ▼ 2.78% GMAT3 4.15 ▲ 0.97% PSSA3 42.26 ▼ 1.51% CVCB3 0.72 — 0.00% POSI3 3.28 ▼ 2.96% SLCE3 16.81 ▼ 0.77% NATU3 4.41 ▼ 3.08% BRKM5 2.66 ▼ 8.59% RANI3 7.81 — 0.00% IBOV 167,493.88 ▲ 1.64% COLCAP 2,452.46 — — IPC MEX 69,355.62 ▲ 1.06% MERVAL 2,848,945 — — USD/BRL 5.90 ▼ 0.55% USD/MXN 19.44 ▲ 1.35% USD/CLP 1,034 ▲ 1.77% USD/COP 3,620 ▲ 9.39% USD/PEN 3.48 ▲ 0.69% USD/ARS 1,592 ▲ 0.76% USD/UYU 40.72 ▲ 3.56% USD/PYG 6,399 ▲ 4.83% USD/BOB 11.72 ▲ 3.82% USD/DOP 59.45 ▲ 1.88% USD/CRC 440.90 ▲ 1.97% USD/GTQ 7.64 ▲ 3.48% USD/HNL 26.89 ▲ 3.50% USD/NIO 36.62 ▲ 2.97% USD/VES 917.52 ▼ 0.13% USD/PAB 1.00 — 0.00% USD/BZD 2.00 — 0.00% USD/JMD 157.09 ▲ 2.61% USD/TTD 6.72 ▲ 2.42% EUR/BRL 6.47 ▼ 0.78% BRENT 87.23 ▼ 2.39% WTI 80.59 ▲ 0.52% IRON ORE 161.91 — — COPPER 5.42 ▼ 3.66% GOLD 3,568 ▼ 2.29% SILVER 40.86 ▼ 5.30% SOY 1,240 ▲ 0.87% CORN 450.00 ▲ 3.63% WHEAT 593.00 ▲ 2.77% COFFEE 264.10 ▼ 3.74% SUGAR 17.71 ▲ 0.57% ORANGE JUICE 131.65 ▼ 1.97% COTTON 81.11 ▲ 4.62% COCOA 5,405 ▲ 4.22% BEEF 224.80 ▲ 0.11% CATTLE 331.55 ▼ 0.83% LITHIUM 53.41 ▼ 2.36% PETR4 41.47 ▲ 0.41% VALE3 55.69 ▼ 4.66% ITUB4 40.08 ▲ 0.88% BBDC4 13.81 ▲ 0.73% ABEV3 16.21 ▲ 1.69% BBAS3 14.41 ▲ 1.48% B3SA3 14.41 ▲ 1.77% WEGE3 50.00 ▲ 0.18% PRIO3 59.42 ▲ 2.06% SUZB3 55.58 ▲ 0.71% RENT3 29.04 ▲ 1.04% AZZA3 14.36 ▼ 1.51% CSAN3 3.27 ▲ 4.14% RAIZ4 13.90 ▼ 7.33% PCAR3 3.50 ▼ 2.78% GMAT3 4.15 ▲ 0.97% PSSA3 42.26 ▼ 1.51% CVCB3 0.72 — 0.00% POSI3 3.28 ▼ 2.96% SLCE3 16.81 ▼ 0.77% NATU3 4.41 ▼ 3.08% BRKM5 2.66 ▼ 8.59% RANI3 7.81 — 0.00%
since 2009
Tuesday, November 24, 2026

Micro-Engines vs. Raw Canvas: Is Rolling Your Own 2D Framework Still the Best Strategy?

Micro-engines or raw canvas? A practical look at 2D framework trade-offs in gamedev and JS game development, and when it still makes sense to build your own.

By · · 3 min read
Pixel-art chicken crossing a road on a monitor next to game code
A small browser game on screen: one scene, a few sprites. (Image supplied by the client.)

(Sponsored) A few years back I started a tiny browser game on a Sunday afternoon, fully sure it would be finished by dinner. One canvas, one square, move it with the arrow keys. Easy.

By Tuesday I was still wrestling with image loading and a loop that stuttered every few seconds. If that sounds familiar, you've probably asked the usual gamedev question: should I have grabbed an engine?

Lately the micro-engines crowd has a decent answer. So, raw canvas or a small library?

Free daily brief — no card needed
Get every Read Without Subscription story in one morning email
We build you a personalized brief around the topics you follow — free for 7 days. Love it? Your first month after that is US$1.

I'll go through both, poke at the habit of keeping a personal 2D framework for every project, and say where I land. Picture a lightweight project for any modern web browser, something simple like Chicken Road 2, a light browser game with one compact scene, a few sprites and quick restarts.

That's the awkward size for JS game development. Nothing in it needs a heavy toolkit, yet sloppy code still shows within minutes.

The LatAm Brief

One email, every weekday morning. What moved in Latin American markets, politics and expat life.

Yesterday’s subject line: “Petrobras plans US$122 billion of investment”

Drawing Everything Yourself

With raw canvas you get a 2D context and, well, that's about it. drawImage, a few transforms, paths. No scene graph, no loader, no collisions, no sound helper.

Even the loop is yours to write (requestAnimationFrame plus some delta-time maths, and skip the delta part at your peril, because the first 144 Hz monitor will make your game run too fast).I like this approach, honestly.

Nothing to install, nothing to fight, and when a frame runs slow you know exactly whose fault it is. For learning it's hard to beat.

Then the game grows.

The Boring Stuff That Bites

Nobody warns you how much of the work is plumbing. This is my usual list, roughly in the order I regretted skipping each item:

  • a fixed timestep, otherwise physics speed depends on the screen;
  • image preloading and cutting sprite sheets;
  • one input layer for keyboard, mouse and touch;
  • devicePixelRatio scaling, because blurry sprites on a phone look awful;
  • audio unlocking, since browsers refuse to play sound before a tap or click;
  • pausing when the tab goes to the background.

Where Micro-Engines Come In

A micro-engine is the in-between option. LittleJS, Kontra and KAPLAY (the community continuation of Kaboom.js) all give you a loop, sprites, input and simple collisions in a download measured in kilobytes.

You still decide how the game is organized. Phaser and PixiJS go much further, which is great until you notice you're reading docs for a feature you'll never touch.

Game editor on a laptop showing a platformer level and code
Micro-engines and editors sit between raw canvas and a full engine. (Image supplied by the client.)

How the Three Routes Compare

Here's a rough table. It's my own take, not a benchmark, so read the cells as tendencies:

Factor Raw canvas Micro-engine Full engine
Bundle size Smallest Small Largest
Time to first playable Slowest Fast Fast, after a learning curve
Control over rendering Total High Moderate
Learning curve Gentle, but a long build Short Steep
Best fit Experiments, tiny builds Prototypes, casual games Large, content-heavy games

Nothing wins every row, which is kind of the point.

Where I Land

My advice? Give raw canvas one weekend, mostly so you can see for yourself what a game loop does when you get it wrong.

Then, for anything you'd like to actually finish, pick one of the micro-engines and get on with it. Look at Chicken Road 2: one tidy scene, a loop that behaves, and that's pretty much the whole recipe.

I think about that whenever I catch myself overbuilding, and it holds up whether gamedev is brand new to you or JS game development is your day job.

Read More from The Rio Times

The Rio Times · Power Map
See who really holds power in Latin America
Click to open the Power Map →

Brazil runoff date: Sunday, October 25, poll closing times and when results start · Brazil runoff polls: Flávio 51%, Lula 49% · Kalshi and Polymarket odds

Rotate for Best Experience

This report is optimized for landscape viewing. Rotate your phone for the full experience.