frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Starting game development in JavaScript with no experience

https://jslegenddev.substack.com/p/how-to-start-making-games-in-javascript
35•JSLegendDev•2h ago

Comments

reactordev•1h ago
This is like those learn how to draw tutorials with the owl…
SrslyJosh•58m ago
"Game development", "javascript", and "no experience" is quite the combination.
protocolture•43m ago
seems like no experience explains the earlier 2
chrisco255•24m ago
If you have little experience programming, JS/TS is arguably one of the best choices for making a game. You have a built-in rendering engine in the form of the browser and it's universally accessible by nearly any device. There's no permission needed for distribution: just create a web page with a live demo and share the link. It's a great way to learn about game loops, pathfinding algos, state management, physics and world building and there's tons of free tools. A couple of my undergrad projects were JS games and they were very fun to work on. Clearly not the right choice for AAA game dev or a full length indie game, but definitely solid choice for learning.
minimaxir•26m ago
There are very few game development tutorials which aren't how-to-draw-an-owl and I'm not fully sure why.
jamesgeck0•11m ago
The Broughlike tutorial is pretty decent. It targets a very specific genre, but it does explain every step and you have a serviceable game at the end.

https://nluqo.github.io/broughlike-tutorial/

abetusk•10m ago
For me, the "owl" was all the polish and game feel. "The art of screenshake" by Jan Nijman of Vlambeer [0] was what helped fill in the steps to "making the owl".

I think most people with reasonable know-how can make a basic game, whether it's asteroids, flappy bird, breakout, etc. For me, I never understood how to get past the "finished the tutorial" to "looks like an actual game". Screenshake, aka game feel/polish/production effects, was what made it gel.

[0] https://www.youtube.com/watch?v=AJdEqssNZ-U

bob1029•1h ago
> Stick to 2D, Since 3D is More Complicated

This isn't necessarily the case if you are looking at total cost of ownership.

3D provides things like perspective projection, which enables intuitive experiences and notions of "world space" that are fundamentally meaningful and map well with our physical reality. You can do a lot of damage with 3d primitives, an FPS camera, a skybox and some clever lighting.

jagged-chisel•1h ago
And how did this illustrate that 3-D is not “More Complicated”?
imachine1980_•41m ago
Game like a short hike use rendering pipelines instead of accuracy in the models for example
thrown-0825•40m ago
better tooling around 3D in my opinion
prisenco•28m ago
2D games can require a lot of assets. And most programmers are not artists.
JoeyJoJoJr•15m ago
Also, 2D assets are much more difficult to change later if you decide you need to change the aspect ratio or scaling later on. While a tile map is comparatively technically simple, the initial choice of tile size carries a rather critical importance to how the game development process unfolds. If you want or need to change it later it is likely going to be a fair amount of work, and that friction can hinder a lot of experimentation. Compare this to a 3d camera, that affords you the ability to completely change perspective with a few lines of code, it’s evident that a 2d game is not necessarily simpler to develop in practice.
darth_aardvark•1h ago
That's really cool! Sounds complicated though.
forrestthewoods•27m ago
What in the Sam hell is this comment? I know that HackerNews is utterly ignorant when it comes to game dev. But this might take the cake.
p1necone•6m ago
I think that statement can only be said with the right context.

Building an engine from scratch? 3d is definitely more complicated.

Using an existing engine? Tbh shoehorning 2d sprite based games into engines like unreal or unity is often harder than 3d because it gets less development effort on the engine side put into it.

Asset creation? Depends - the great thing about 3d assets is you only need to model each thing once, whereas with 2d unless you're doing skeletal animation you have to draw every frame, facing direction etc.

But on the flipside creating one 3d model could take just as much time as a pixel art walk animation in 4 directions.

There's also art styles for both 2d and 3d that can significantly cut down on effort (low poly, drawing everything from absolute top down perspective, using ascii characters roguelike style, using simple 3d primitives only, first person perspective etc etc etc).

IcyWindows•1h ago
I wish the software/libraries mentioned had links to them, but the only links are to more videos from the author.
Sn0wCoder•53m ago
Here ya go https://kaplayjs.com/ https://kaplayjs.com/docs/guides/starting/ https://www.mapeditor.org/docs/scripting/ https://phaser.io/ https://phaser.io/tutorials/making-your-first-phaser-3-game/... https://www.aseprite.org/
ramesh31•56m ago
>However, as opposed to using an engine like Unity, Godot, Unreal, using a frameworks still allows to you architect your codebase with a greater degree of freedom and prevents you from spending too much time learning how specific game engine workflows and UIs work.

If your goal is to make a game, these are exactly the things you should be learning, not reinventing your own architecture. If you just want to learn about engine internals, then sure go for it. But games (even very simple ones) are an incredible amount of effort that has nothing to do with programming. If you actually want to make one you should be working at the absolute highest level of abstraction possible so that you can start doing the real work; building the mechanics, creating the art, designing levels, writing the story, music, sound effects, etc. etc. Many of the succesful indie games these days are made almost completely via "no-code" visual tooling. It's basically a meme at this point for programmers to want to make a game and just end up wasting their time writing a naive engine.

yoyohello13•42m ago
Exactly right. That’s why the joke “There are 100 game engines written in Rust… and 5 games” is so funny. Programming nerds love the engine stuff more than the art stuff. I know I fall in to this category.
3vidence•17m ago
After bouncing off of Unity the first few times, I finally decided to commit to it after trying out some of the JS game frameworks (like Phaser)

Absolutely worth it, have made lots of games in Unity just for myself that feel pretty polished, there are just so many systems to make a game work.

The advice around game engines kind of seems like "to learn how to write programs first create the compiler.

Not to say all games should be made in engines but it certainly helps.

65•40m ago
I'd say any beginner should start with P5.js first before going into larger game dev frameworks. You can make simple games and the API is very approachable.
Ctrlmonster•19m ago
Fyi if you're interested in making games on the web / with web tooling join the Web Game Dev Discord (we're over 2k devs in there).
QuantumNomad_•17m ago
You didn’t include a link but I assume it’s this one.

https://www.webgamedev.com/

As it matches the name and has a discord channel with about 2000 members.

Aussie ISP iiNet confirms data breach impacting more than 200k customers

https://www.cyberdaily.au/security/12518-aussie-isp-iinet-confirms-data-breach-impacting-more-than-200-000-customers
4•King-Aaron•7m ago•0 comments

Add Indexes to Foreign Key Refs in PostgreSQL

https://www.rishigoomar.com/why-you-should-add-indexes-to-foreign-key-refs-in-postgresql/
2•rgoomar•8m ago•0 comments

UK Drops Mandate for Apple 'Backdoor' on Americans

https://www.bloomberg.com/news/articles/2025-08-19/uk-drops-mandate-for-apple-backdoor-on-americans-gabbard-says
2•mfiguiere•8m ago•0 comments

SiYuan: Personal knowledge management system that supports Markdown

https://b3log.org/siyuan/en/
2•thunderbong•10m ago•0 comments

Bulk Carrier Explosion Baltimore, MD

https://www.youtube.com/watch?v=pPIabnSziVc
1•bison3•10m ago•0 comments

Code suggests Apple is working on an M4 Ultra chip for new Mac Pro

https://www.macworld.com/article/2878416/code-suggests-apple-is-working-on-an-m4-ultra-chip-for-new-mac-pro.html
1•behnamoh•18m ago•0 comments

Before and after 2000: How scuba safety shifted

https://divernet.com/scuba-diving/before-after-2000-how-scuba-safety-shifted/
2•pooyamehri•18m ago•1 comments

Dive instructor lashes out over toppled tank

https://divernet.com/scuba-news/health-safety/dive-instructor-lashes-out-over-toppled-tank/
1•pooyamehri•20m ago•1 comments

valibot to form component;support Angular/Vue/react/Svelte/solid

https://github.com/piying-org/piying-view
1•wszgrcy•27m ago•0 comments

Winding Down Olympia

https://obie.medium.com/winding-down-olympia-41ff8f1e5c83
1•joevandyk•37m ago•0 comments

Otter is being trained to search for missing people

https://www.wtsp.com/article/life/animals/florida-otter-searches-for-missing-people/67-10cedc5c-5e6f-4907-950a-44095e4ff192
2•geox•38m ago•0 comments

Ask HN: Are we allowed to discuss Israel on HN?

6•Jimmc414•39m ago•7 comments

Heatwave deaths in Europe >= Gun deaths in the US?

3•RestlessMind•43m ago•2 comments

Show HN: Memeclip.ai – AI-powered meme maker that turns text into memes

https://memeclip.ai/
2•zjy71055•44m ago•0 comments

U.S. Public Wary of Biomedical Technologies to 'Enhance' Human Abilities (2016)

https://www.pewresearch.org/science/2016/07/26/u-s-public-wary-of-biomedical-technologies-to-enhance-human-abilities/
2•nis0s•46m ago•0 comments

AI browsers are coming for your clicks – and your privacy

https://proton.me/blog/ai-browsers-perplexity-chrome-privacy
4•jethronethro•46m ago•0 comments

Croatian Freediver Sers Record for Longest-Held Breath

https://www.sciencealert.com/croatian-freediver-shatters-record-for-longest-held-breath
2•sowbug•46m ago•0 comments

Israel changes account of Gaza medic killings after video showed deadly attack

https://www.bbc.com/news/articles/cy0xp969n69o
4•quyleanh•47m ago•0 comments

The State of Python 2025

https://blog.jetbrains.com/pycharm/2025/08/the-state-of-python-2025/
2•pabs3•49m ago•0 comments

SoftBank Agrees to Invest $2B in Intel as Part of US Push

https://www.bloomberg.com/news/articles/2025-08-18/softbank-agrees-to-invest-2-billion-in-intel-as-part-of-us-push
3•petethomas•50m ago•0 comments

Post-Progressive Social Science: A Manifesto

https://erickaufmann.substack.com/p/post-progressive-social-science-a
1•nsoonhui•50m ago•2 comments

How to destroy harmful 'forever chemicals'

https://www.bbc.com/news/articles/clydd630pxzo
4•hacker_yacker•55m ago•1 comments

Simple undo history for a mesh graph using diffs

https://blog.shapereality.io/posts/undo/
2•arjonagelhout•56m ago•1 comments

If you could create any software product – what would it be?

3•zyruh•57m ago•2 comments

GPT-5: The Reverse DeepSeek Moment

https://thezvi.substack.com/p/gpt-5-the-reverse-deepseek-moment
3•paulpauper•59m ago•0 comments

Why Did Zuckerberg Choose Now to Confess? (2024)

https://brownstone.org/articles/why-did-zuckerberg-choose-now-to-confess/
3•alex1138•1h ago•3 comments

The UK has agreed to drop its mandate for Apple to provide a "back door"

https://twitter.com/DNIGabbard/status/1957623737232007638
4•gsibble•1h ago•0 comments

Charm Industrial accelerates carbon removal operations with Claude

https://www.anthropic.com/customers/charm-industrial
5•charmindustrial•1h ago•0 comments

Ask HN: Has there been an increase in online censorship due to AI search's rise?

3•thisislife2•1h ago•0 comments

ResolutionMaster

https://github.com/Azornes/Comfyui-Resolution-Master
4•handfuloflight•1h ago•0 comments