r/phaser • • 22h ago

[Free] Cyberpunk / sci-fi UI frames as SVG + PNG - works with Phaser's NineSlice game object

1 Upvotes

For anyone doing sci-fi UI in Phaser 3: these free frames come as transparent PNGs (load as texture keys) plus the source SVG with the 9-slice groups on separate layers. They line up with the NineSlice game object - a panel stretches to any size while the corners and borders stay crisp. No font dependency, so it sits under whatever font you already use.

Free (commercial use, no attribution): https://craftpixel.itch.io/free-cyberpunk-sci-fi-ui-starter-kit-vector-svg

Full 10-pack set at 80% off for Black Friday / Cyber Monday: https://itch.io/s/221135/ultimate-cyberpunk-and-sci-fi-ui-mega-bundle-10-in-1


r/phaser • • 2d ago

my phaser 3 mmo switches its own shader off on slow phones, but only if switching it off actually helps

Post image
6 Upvotes

shipped a small multiplayer rpg on phaser 3.60 this week (browser, phone and pc, socket.io server, around 30 people a day). a few things that cost me days, maybe it saves someone one:

  • paused scenes still get packets. the world scene pauses during a fight, but the server keeps sending positions 20 times a second. i started a tween per packet. paused tweens don't run, they pile up: after a 20 second fight there were 15k to 49k of them, and on resume they all started at once. fix: while paused, set positions directly. while running, at most one movement tween per entity, a new packet removes the old one.

  • one exception in update() and the loop is gone. no error screen, the world just stops. everything optional in the hud (quest arrows, minimap, area banners) now runs through a small try/catch wrapper.

  • pixel art crawls at odd zoom. with ui scaling for 4k and handhelds the camera zoom ended up at values like 1.25 and sprites shimmered on every step. zoom now snaps to 1, 1.5 or whole numbers.

  • one packet per chunk made enemies flicker. the client treats every packet as the full list of enemies it can see, so a player standing across 9 chunks saw enemies blink in and out. one packet per player fixed it.


the one i'm least sure about (the image above): a single PostFX pass over the world camera, color grade per region and time of day, a little tilt-shift blur at the top and bottom, fog in the swamp.

weak phones can't afford it, but a fixed fps cutoff didn't work: an iphone in low power mode always runs at 30, and a slow phone is slow with or without the shader. so now:

  1. if the median over 6 seconds drops below 48 fps, the effect goes off for 4 seconds and it measures again

  2. it only stays off if the game gets clearly faster (1.25x and at least +4 fps)

  3. otherwise it comes back and tries again later, 3 times at most

how do you handle this? fixed threshold, a device list, something smarter? and has anyone moved a custom PostFXPipeline from 3.x to phaser 4 yet, how painful was it?


the art is drawn by code, characters are put together from parts at runtime. i code with ai help, saying it up front.

if you want to see the shader on your own phone: https://play.slimeandsteel.com/?go=1&ref=reddit_phaser


r/phaser • • 4d ago

My Trading Card Game Got a Visual Makeover

Thumbnail
youtube.com
1 Upvotes

I've used Phaser 4 to make a browser MMO trading card game for the past year. Recently I hand drew all my cards in pixel art. If you are a fan of pixel art and card games like YuGiOh or Magic The Gathering, I think you will like what I've made : )

I am currently working on a story mode. I have a "Tutorial" NPC to teach the basic rules and a "Bob" NPC you can play against. PvP is also enabled, you just need to have another person in the game with you.

You can try it on https://battlerlegacytcg.com/


r/phaser • • 4d ago

SLAGHOUSE: a pixel-art shooter with 71 weapons, ragdolls and terrain you can blow up

Thumbnail saworbit.github.io
4 Upvotes

SLAGHOUSE started as an experiment: how far can you push Phaser 4 on a single browser page before something catches fire? Pretty far, it turns out. Things did catch fire. Most of it was on purpose.

It’s a side-scrolling pixel-art arena shooter. All the art is drawn in code, with no sprite sheets. It has ragdolls, destructible terrain, a frankly irresponsible 71 weapons and 109 enemy types, and a five-act campaign that ends in a boss fight. There are also endless, daily and boss-rush modes for anyone who won’t take the hint.

Full disclosure: I built it with a lot of AI help. Which brings me to a word I’d like to propose:

slag (n.): AI slop that’s been through the furnace of actual human thought. Still a byproduct, but one that’s been argued with, playtested, and had its diffs read.

Slop is what falls out. Slag is what’s left when someone bothers to smelt it. I’ve decided that’s what the name meant all along.

It won’t change your life, but it might eat ten minutes of it. If you fancy a go:

Play (desktop, keyboard and mouse or gamepad): https://saworbit.github.io/slaghouse/
Source, if you want to see how it all hangs together (loosely, in places): https://github.com/saworbit/slaghouse

There’s no build step and it’s MIT licensed, so poke at it all you like. Bugs, feedback and “why on earth did you do it that way” are all welcome.

Enjoy!


r/phaser • • 4d ago

show-off My deep sea game in Phaser 4 just got a Steam page. The lamp is a custom light map over normal mapped pixel art

6 Upvotes

HADAL is about piloting real research subs down the Mariana Trench, so most of the screen is dark and the light does a lot of the work. Here's how it's put together in Phaser 4:

- every sprite is pixel art, and its normal map is derived from the pixels when the game loads

- the lamp cone is its own light map, white balanced the way an ROV camera would be

- sunlight fades in bands with depth, and the marine snow samples the same map

- the beam glow is drawn into a DynamicTexture shown with BlendModes.ADD, because additive light inside a composited camera darkened the whole scene

The sound is Web Audio, synthesised live.

Free demo in the browser: https://playhadal.com/?utm_source=reddit&utm_medium=phaser

Steam: https://store.steampowered.com/app/5597420/?utm_source=reddit&utm_medium=phaser&utm_campaign=launch

Ask me anything :)


r/phaser • • 5d ago

show-off I built a souls-like in Phaser 3 + React that runs in the browser and installs as an app on phones – pre-release is out

2 Upvotes

I’ve been working on Ash & Hollow, a 2D souls-like platformer, and the pre-release is now live with 12 zones and 10 bosses.

Stack: Phaser 3 + React + TypeScript, built with Vite. The web build is also an installable PWA (it works offline and updates itself), and the same build is wrapped with Capacitor for Android.

Getting parries, stamina and touch controls to feel good on a phone screen was the hardest part. I’m happy to talk about any of it.

Play: https://manainfectedrp.github.io/Ash-Hollow/
Trailer: https://youtu.be/Ao5yC6fAUOI


r/phaser • • 5d ago

show-off I built a 100-day industrial strategy game in Phaser 4. It involves bananas, mutants, and a very questionable dictator. 🍌

2 Upvotes

Hey everyone!

I just released PAPI Industries: The Green Shift, my entry for GitHub Game Off 2026, built with Phaser 4.

It's a satirical industrial strategy / base-defense game where you transform a tropical jungle into a profitable industrial complex over 100 days.

During the day, you clear jungle, construct factories, manage production, build roads, and keep your trucks delivering exports. At night, you defend your investments against mutant attacks.

Under the hood, there's a deterministic simulation, autonomous workers, logistics, procedural maps, and automated tests.

I'm a QA Automation Engineer by profession, so I approached development with a strong focus on testability. AI-assisted coding helped with implementation, while I handled game design, art direction, asset work, balancing, and testing.

The attached GIF shows how an industrial complex develops throughout a campaign.

Free to play in your browser:
https://weeangusmcdread.itch.io/papi-industries-greenshift

I'd love to hear what fellow Phaser developers think!

¡VIVA SAN PAPI! 🍌


r/phaser • • 7d ago

show-off The release date trailer for the Phaser game I've been building for over 2 years!

Thumbnail
youtube.com
1 Upvotes

r/phaser • • 9d ago

show-off LinkBunny Shooter - an isometric survival shooter in Phaser 4 with procedural Web Audio music

4 Upvotes

I made a small isometric survival shooter with Phaser 4.2.1, TypeScript and Vite. It's a static 2.1 MB build with no backend. You can play it at https://linkbunnyshooter.com/

A few notes on how it uses Phaser.

  • The simulation runs on invisible Arcade Physics objects in flat ground-plane coordinates. Sprites are projected to isometric and depth-sorted by x + y, so collision code never deals with the iso projection.

  • The ground and backdrop are baked once into canvas-generated texture chunks, and each obstacle into its own small texture. Static scenery has nothing to redraw per frame.

  • The game is laid out at 1280x720 and drawn at up to 2x based on device pixel ratio. The world camera zooms by that scale, and a second camera draws the HUD with scrollFactor 0.

  • The music uses no audio files. It's generated with Web Audio and adds layers as the fight gets busier. A rollout wave raises the tempo from 124 to 140 BPM and adds a siren layer, and bunny mode switches to its own 152 BPM track.

  • Each frame is wrapped so one thrown error can't stop Phaser's loop. A lost WebGL context, which can happen when many tabs use the GPU, pauses the game and shows a reload notice.

I built it with coding agents. They wrote the code, the SVG sprites and the music; I directed and playtested it.


r/phaser • • 9d ago

Sound effects for Phaser without loading any audio files

Post image
1 Upvotes

plinkfx synthesizes the sound when you call play("laser"), so there's nothing to preload. If Phaser and plinkfx should share one AudioContext, pass it in the game config:

```js

new Phaser.Game({ audio: { context: context() }, ... })

```

There's a working example in examples/phaser. If you prefer Phaser's sound manager, export the sounds as OGG and WAV and load them as usual. 163 sounds, CC0: https://maximilianfeix.github.io/plinkfx/


r/phaser • • 10d ago

Build a Daily Game for Reddit’s Last Hackathon of the Year using Phaser - $35,000 in prizes (including a best port category)!

Post image
3 Upvotes

r/phaser • • 10d ago

show-off :snoo: Knight's Charge

Thumbnail
gallery
3 Upvotes

My game called Knights Charge is live on Kongregate. I am getting mixed reviews from players, but on the whole I am really happy with it. It is one of my first experiments with phaser.js and I think I may be a convert. I used to make games with gamemaker studio, but I find that phaser is actually easier to work in. This may be because I have a web background but once it clicked I really enjoyed it.

I struggled a bit with sounds playing incorrectly or not playing so I will need to update it.

I am curious as to how phaser will handle the expanded game where players can choose their mounts and perhaps a buildable spell tree.

Let me know if you enjoy the current version.


r/phaser • • 10d ago

The Guard's Legacy by Faraz The Web Guy

Thumbnail
farazthewebguy.itch.io
3 Upvotes

r/phaser • • 14d ago

show-off QrBots: solve puzzles inside real QR codes - From the web to iOS

Post image
5 Upvotes

Hey guys!

I want to share with you my first released iOS game, QrBots, powered by Phaser 4 and Capacitor! Released today.

I posted a web based proof of concept years ago, but now it’s finally done!

What’s this about

It’s a humble sokoban (aka push boxes around puzzle) inspired game, but with a twist: levels are working QR codes with the actual puzzle embedded inside. Scanning one allows you to play that level exactly as it’s depicted in the QR.

This concept, paired with a custom procedural level generator, allows players to easily generate, play, and share their favorite levels (or the ones they are stuck on). It’s a single player game with a light social sharing side.

All of this is fully offline and ad-free, no network required to scan or play. Players also get a daily puzzle to solve. The only paid content is the procedural generator.

Link: https://apps.apple.com/us/app/qrbots/id6830145701

Let me know what you think or if you have any question! I know this is a small game compared to what’s out there, but it’s a big step for me personally.


r/phaser • • 16d ago

Junkball: a survivors-like in Phaser 4, with the ball, terrain and particles all drawn in code

5 Upvotes

Hi! Sharing what I’ve been building with Phaser 4 (4.2.1). The rules run as plain TypeScript without Phaser, so bots can play thousands of runs in Node for balancing. Phaser only draws and reads input, and the HUD runs as a parallel scene.

The game: you roll a ball of junk through three junkyards, and everything you roll over sticks to it.

Play it here: https://erathul.itch.io/junkball

What would help me most: the second yard gets busy, with up to 80 enemies on screen. If it stutters for you, could you tell me your browser and GPU? Happy to answer questions about Phaser 4, too.

Sound effects and music are AI-generated.


r/phaser • • 17d ago

show-off TRAPMATE- a small browser game where your friends make the levels

2 Upvotes

Hi,

I'm the dev. TRAPMATE is built with Phaser 3.80, one index.html, no build step, hosted on Cloudflare Pages

You build a trap from a few blocks in about 30 seconds, beat it yourself, then send the link to a friend. The whole level is encoded in the URL, so there is no level server.

Portrait, one finger, made for phones.

The game can also record a short clip of your fail with MediaRecorder from the Phaser canvas

Play: https://trapmate.pages.dev/?s=rdphs1

I'd love feedback on how it runs on your phone and what you would change. Thanks!

tommy


r/phaser • • 20d ago

Phaser devs! GitHub Game Off 2026 is live, and the theme is SHIFT

Post image
7 Upvotes

Hey Phaser devs! 👋

GitHub Game Off 2026 just started, and this year's theme is SHIFT.

Shift gravity, swap dimensions, change perspectives, or build something weird with Phaser.

You've got until December 1 to create a game and publish your source code on GitHub. Solo projects and teams welcome!

🎮 https://itch.io/jam/game-off-2026

Would love to see what the Phaser community comes up with!


r/phaser • • 28d ago

show-off [Showoff Saturday] I made a Claude Code desktop app that turns your terminal sessions into a retro office

Thumbnail gallery
0 Upvotes

r/phaser • • 29d ago

show-off Honey Line: Phaser 3 + standalone matter-js so the physics also runs headless

2 Upvotes

A draw-to-protect puzzle: draw one honey line, bees stick to it and weigh it down, keep the buddy safe. https://playgama.ai/play/gvawbtt52widdp

One choice that paid off: I skipped Phaser's Matter plugin and used matter-js directly in a plain module with no Phaser imports. Phaser only draws what the sim says. That same file runs in Node, where a validator plays all 60 levels and their mirror images in about a minute to catch shapes that beat too many levels.

Load tricks that helped on slow phones: AAC audio with a WAV fallback, the font as WOFF2, and only the art the first level needs. The preloader scene keeps loading outfits in the background after the game starts. First load went from 57 files to 36.

Happy to share code for any of it.


r/phaser • • Oct 21 '26

show-off A Worms-style ninja rope in Phaser 4 s - no physics engine

15 Upvotes

I've been building a rope-swinging game in Phaser 4 (+ React for the UI, TypeScript, Vite), heavily inspired by the Worms Armageddon ninja rope.

The rope doesn't use Matter or Arcade physics. It's a small pure-TS simulation that Phaser only draws.

It's playable in the browser (keyboard and mouse): https://build-and-dominate.itch.io/spider-dad
Feedback on how the swing feels is very welcome.


r/phaser • • Oct 19 '26

Level-ups in my Phaser roguelite no longer pause the game – a slot machine reel picks the perk while you fight

2 Upvotes

Every level-up in ANT HUNTER (small browser roguelite, gecko knight vs. ant colony) used to pause the game and show three perk cards. In a horde that happened every few seconds and killed the flow, so now a slot machine reel spins on the left and picks a random perk while you keep fighting.

How it works:

- The reel is plain DOM over the canvas, not a Phaser object: a strip of 15 emoji cells (14 random, the last one is the winner), moved with a single Web Animations API call – translateY over 1.15 s, easing cubic-bezier(0.12, 0.8, 0.25, 1), fill: forwards

- The cell height is measured at runtime: CSS makes it 64 px on desktop and 52 px on phones, and a hard-coded value stopped the reel between two symbols on mobile

- Tick sounds are scheduled at t = 1 − ∛(1 − k/14) of the spin, so they slow down with the reel and rise in pitch

- The perk only applies when the reel lands. Several level-ups queue up and spin one after another, with a shorter hold while more are waiting

- With prefers-reduced-motion the reel just jumps to the result

Since nothing needs a click, it works the same with touch. Has anyone synced sounds to a CSS easing curve more precisely than with this cube-root shortcut?


r/phaser • • Oct 19 '26

show-off 2.5D Plugin for Phaser - Doom/Wolfenstein

12 Upvotes

I've ported a 2.5D plugin for ImpactJS to Phaser 4 over the course of this year. It allows for the rendering of Doom/Wolfenstein type vibes. I've added functionality to the original, including support for high refresh rates, dynamic changing of the internal resolution (including upscaling), integration of Phaser WebGL shaders, and a responsive viewport option.

The most recent updates were added by porting the only ImpactJS game I know of that used the Impact plugin, Xibalba. I have the port on a private repo because I don't want to share the media assets, which are not under the same open-source license as the ImpactJS engine/plugin. However, the plugin is available for general use and has a demo that is comprehensive.

Here's a Youtube vid of it in action:

https://youtu.be/Mx8qKLyYfdk

You can play it for yourself here:

https://xibalba.jsd.ski/

The plugin repo:

https://github.com/jamaalsawyerd/twopointfive-phaser-4


r/phaser • • Oct 18 '26

Follow-up: More Phaser performance optimizations — 1,200+ objects at 60 FPS, reusable textures, and some surprising discoveries

13 Upvotes

Hey everyone!

A while ago, I shared a post here about some of the optimization techniques I had been using in Critical Ward, my pixel-art arcade roguelite built with Phaser.

Since then, I've continued profiling, experimenting, and digging into the game's code, and I've discovered several new performance bottlenecks that were hiding in places I honestly didn't expect.

Some of these changes made a HUGE difference, so I thought I'd share a follow-up with the most interesting improvements and lessons learned since my previous post.

For context, Critical Ward can get extremely chaotic, with hundreds of patients, contagious enemies, projectiles, health bars, animated auras, and other objects on screen simultaneously.

In one of my latest stress tests, I reached 1,223 active objects at 60 FPS, using around 40 MB of memory.

Here are the most important discoveries.

1. Pre-rendering dynamic graphics into reusable textures

One of the biggest lessons I've learned is that just because something looks dynamic doesn't mean it needs to be drawn every frame.

I found several places where Phaser Graphics and Text objects were doing far more work than necessary.

Speech bubbles / projectiles

One type of enemy fires speech bubbles containing random phrases.

Originally, each bubble was a Container with Graphics and Text objects, rebuilding its appearance every frame.

Each bubble involved approximately 42 vector drawing operations, 42 fillRect calls, a polygon, and a text canvas for each projectile.

And there could be dozens of them on screen.

Now, during the initial loading sequence (SplashScene), I generate textures for the bubble bodies, each phrase and size combination, and four reusable tail pieces.

Each projectile is now just three Phaser Images, and the cyan blinking effect is handled with setTint().

No continuous vector drawing or text regeneration!

Infected enemy auras

This one was particularly expensive.

Each contagious patient had an animated aura, originally drawn using approximately 390 fillRect calls per infected enemy, per frame.

Imagine what happens when dozens of infected patients appear simultaneously.

The solution was to bake the static portion into a shared texture, while updating only the animated comet elements every 50 ms.

All infected patients reuse that texture, so its update cost no longer grows with the number of infected patients.

I applied a similar approach to other auras, caching textures by radius and avoiding rendering them when offscreen.

Patient health bars

With around 200 patients, each health bar previously consisted of four Images that were repositioned and tinted every frame.

I replaced them with a single Image using a pre-generated atlas containing 3 states × 46 width variations.

Now, the Image frame only changes when the health bar's state or width actually changes.

I don't have individual before/after benchmarks for these three changes, unfortunately. They came from inspecting the code while investigating FPS drops with large numbers of infected patients.

2. Be VERY careful with Phaser Text updates

This was probably one of the most surprising discoveries since my previous post.

During a performance audit, I found that calling methods such as setColor() or setStyle() on Phaser Text objects could trigger a canvas redraw and texture upload, even when the requested style hadn't actually changed.

In a game with lots of dynamically updated UI elements, this becomes surprisingly expensive.

The solution was simple: create helper functions that compare the current and requested values before calling those methods.

The result?

Text updates dropped from 849 per second to just 105 per second.

That's almost an 88% reduction.

In my tests, the game previously dropped to around 45–50 FPS under load. After the changes, it maintained 60 FPS in the tested scenarios.

A tiny code change with a massive impact.

My takeaway: avoid calling expensive Text setters every frame unless something has actually changed.

Even apparently harmless calls can trigger expensive operations.

3. Optimizing a CRT post-processing filter

My original CRT effect used a separate canvas with its own WebGL context, copying the game output every frame.

That was extremely expensive.

In one browser test, enabling it dropped performance around 50%.

I replaced it with a native Phaser camera post-processing effect running within the game's existing WebGL context.

I also experimented with curvature. The original manual bilinear approach required up to 44 texture reads per pixel, so I replaced that approach with temporary LINEAR texture filtering.

The current filter has since been simplified, removing curvature and vignette.

Lesson learned: avoid creating an additional rendering pipeline when you can use the one Phaser already provides.

4. Spatial partitioning and distance calculations

Patient separation and nearby-entity calculations were another significant bottleneck.

Originally, the patient repulsion system was performing approximately 40,000 square root calculations every frame.

I started by using squared distances wherever the actual distance wasn't necessary.

Then I implemented a spatial grid to reduce the number of nearby entities being checked.

With 200 patients, the grid-based repulsion system was approximately 7 times faster.

I also optimized infection/exposure calculations by consolidating nearby-entity queries and running them every 350 ms instead of every frame, while caching collision bounds.

But here's something important:

Spatial grids aren't always faster.

When testing small collections of around 5–30 objects, the grid actually introduced overhead and performed worse than a straightforward loop.

I reverted those cases to the simpler approach.

Since then, I've made a habit of microbenchmarking changes rather than assuming a more sophisticated algorithm must be faster.

Final thoughts

If there's one thing I've learned since my previous optimization post, it's that many performance problems come from doing unnecessary work, not necessarily from rendering too many objects.

Pre-render what you can, reuse textures, avoid redundant canvas updates, and don't recalculate something every frame if it only changes occasionally.

And most importantly: PROFILE EVERYTHING.

An optimization that works beautifully for 200 entities might actually be slower for 20.

I'm still learning, and I'm sure there are plenty of other Phaser optimizations I haven't discovered yet. If anyone has experienced similar bottlenecks, discovered other expensive Phaser operations, or has additional techniques worth sharing, I'd love to hear about them!

For anyone curious about the game, there's a free demo available on Steam: https://store.steampowered.com/app/4879410/Critical_Ward/

You can also play it directly in your browser on itch.io, no download required!
https://biesel-games.itch.io/critical-ward-demo

Thanks for reading!


r/phaser • • Oct 16 '26

show-off I Built A (Midnight Bistro) Game Online - Restaurant Management Game With Phaser

1 Upvotes

Here’s what I learned dealing with complex game logic. Inspired by restaurant management games like Restaurant City, Inn Tycoon, and so on and so on.

- Cook over 100 delicious dishes
- Arrange tables, chairs, kitchen stations, plants, and even a piano
- Serve guests, hire staff, and expand your restaurant
- Visit random players' restaurants and collect daily gifts
- Face surprise food safety inspections 🕵️ Pay the fine or offer a bribe?

=> https://midnightbistro.net/ - Check it out!