
Kaynak: Dev.to · 3 dk okuma · Yazar: Modest Ticu
For a long time I had multiple small game projects sitting around at like 70–80% done. You probably...
For a long time I had multiple small game projects sitting around at like 70–80% done.

Kaynak: Dev.to · 3 dk okuma · Yazar: Modest Ticu
For a long time I had multiple small game projects sitting around at like 70–80% done. You probably...
For a long time I had multiple small game projects sitting around at like 70–80% done.

You probably know this situation where the core idea works, gameplay is there, but polish, fixes, and "final push" never happens ... And since I have some times on my hands I said ok… lets finish them and if I still finish them anyway… why not also sell the source code? So that’s what I did.
One important rule I gave myself from the start: Everything must be written in pure Vanilla JS. No frameworks.
Yes, I know — using a framework would make some things easier: asset loading or state management or rendering helpers. But the goal here was different. I wanted to prove (mostly to myself) that you can build full games in the browser with your own mini-engine, no dependencies. The only APIs I used: Web Audio API (for sound) and TSS (only in one game) That’s it.
One of the biggest problems I ran into was too many particles on screen = mobile devices struggle.
Solutions I used:
In one game I even used a fixed 600-particle pool to avoid garbage collection during gameplay.
Another annoying problem was loading assets locally which caused CORS issues. So I went for a different approach: convert everything to base64 and bundle it directly into the game. Therefor, I built myself a small tool that:
I’m not a designer. So instead of wasting time trying to make things "pretty", I used placeholders where possible so I can focuse on gameplay and systems.
Some games even use:
Instead of always using music files, I experimented with generating sound using the Web Audio API
For example:
Of course an MP3 is easier and usually sounds better, but this was more about experimenting.
This was surprisingly one of the hardest parts. Writing code for yourself is easy. Explaining it to someone else is not. Especially if that someone is a beginner. So I tried to comment all important systems, explain "why" not just "what" - Still not perfect, but definitely better than nothing.
Here are a few things (you can find in the bundle) that might be useful if you're into game dev (learning how to or just use it elsewhere):
Amoeba Survival Infinite procedural map using chunk system Only visible area is loaded → keeps memory low Hero evolves through 8 different shapes Everything is auto-fire → gameplay is about positioning Also:
Entire game is one JS file (~2000 lines) Uses emojis as main graphics One-button control system (tap & hold)
Interesting parts:
Void Invaders Classic vertical shooter, but everything in a single JS file, 9:16 canvas → mobile friendly and ships with different stats (HP, damage, inertia)
Technical stuff:
Demos For demos of each game please check the urls on the bundle page: PayHip or Itch
That means:
I want to share this information not just to sell the bundle, but also to show that:
You just need: consistency + finishing what you start! (Because honestly, the hardest part wasn’t coding, was finishing the projects...)
Bu içerik otomatik olarak derlenmektedir. Tüm haklar orijinal yayıncıya aittir.