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
44•JSLegendDev•2h ago

Comments

reactordev•2h ago
This is like those learn how to draw tutorials with the owl…
SrslyJosh•1h ago
"Game development", "javascript", and "no experience" is quite the combination.
protocolture•1h ago
seems like no experience explains the earlier 2
chrisco255•47m 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•49m ago
There are very few game development tutorials which aren't how-to-draw-an-owl and I'm not fully sure why.
jamesgeck0•34m 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•33m 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_•1h ago
Game like a short hike use rendering pipelines instead of accuracy in the models for example
thrown-0825•1h ago
better tooling around 3D in my opinion
prisenco•51m ago
2D games can require a lot of assets. And most programmers are not artists.
JoeyJoJoJr•38m 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.
natertux•13m ago
It is the exact reason why I choose to make my game in 3D. I am making a game similar to advance wars/apes warfare in threejs. My drawing skills are close to zero but thanks to the engineering background my CAD and 3D modeling are somewhat usable. So I am currently learning blender to improve on top of that and I cannot fathom how much more time it would have taken me to make assets if those were to be in 2D.
darth_aardvark•1h ago
That's really cool! Sounds complicated though.
p1necone•29m 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•1h 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•1h 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•1h 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•40m 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•1h 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•42m 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_•40m 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.

Ctrlmonster•21m ago
Oh yeah my bad LOL. Yup that's the one.
throwawayxcmz•5m ago
I automatically have a negative view of any community that uses Discord. It smells of rookie, no respect for open source, completely neutered with strong CoCs to the point of it being useless.

Is it a harsh and possibly untrue? Yes, but I live by heuristics and die by it too.

strix_varius•9m ago
I'm curious about the goal here... if you wanted to learn how to turn gameplay ideas into playable video games, then the most effective way would be picking up either an ultralight engine like Defold or an ultra-tutorialized engine like Unity.

If you wanted to learn JavaScript by building games, then you should definitely not use Kaplay or Phaser, etc, since they're so far removed from JavaScript you wouldn't learn anything (other than how to build things in their particular environments). Web standard JS is more than capable of building simple games with no abstractions separating you from what you're trying to learn.

Starting game development in JavaScript with no experience

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

OpenMower – An Open Source Lawn Mower

https://github.com/ClemensElflein/OpenMower
61•rickcarlino•3h ago•11 comments

Lab-grown salmon hits the menu

https://www.smithsonianmag.com/smart-news/lab-grown-salmon-hits-the-menu-at-an-oregon-restaurant-as-the-fda-greenlights-the-cell-cultured-product-180986769/
99•bookmtn•5h ago•155 comments

X-ray scans reveal Buddhist prayers inside tiny Tibetan scrolls

https://www.popsci.com/technology/tibetan-prayer-scroll-scans/
67•Hooke•2d ago•5 comments

A minimal tensor processing unit (TPU), inspired by Google's TPU

https://github.com/tiny-tpu-v2/tiny-tpu
100•admp•7h ago•2 comments

Obsidian Bases

https://help.obsidian.md/bases
360•twapi•6h ago•107 comments

Show HN: Whispering – Open-source, local-first dictation you can trust

https://github.com/epicenter-so/epicenter/tree/main/apps/whispering
293•braden-w•11h ago•79 comments

Croatian freediver held breath for 29 minutes

https://divernet.com/scuba-news/freediving/how-croatian-freediver-held-breath-for-29-minutes/
119•toomanyrichies•3h ago•40 comments

Free up space (effortlessly) on WSL2

https://www.freecodecamp.org/news/how-to-free-up-and-automatically-manage-disk-space-for-wsl-on-windows-1011/
15•twilight-code•2d ago•10 comments

Left to Right Programming

https://graic.net/p/left-to-right-programming
221•graic•10h ago•197 comments

Counter-Strike: A billion-dollar game built in a dorm room

https://www.nytimes.com/2025/08/18/arts/counter-strike-half-life-minh-le.html
244•asnyder•12h ago•208 comments

Show HN: I built an app to block Shorts and Reels

https://scrollguard.app/
502•adrianhacar•2d ago•195 comments

An IRC-Enabled Lawn Mower

https://jotunheimr.idlerpg.net/users/jotun/lawnmower/
64•rickcarlino•2d ago•9 comments

Show HN: We started building an AI dev tool but it turned into a Sims-style game

https://www.youtube.com/watch?v=sRPnX_f2V_c
103•maxraven•9h ago•58 comments

Precision mapping tracks woody plant spread across Great Plains grasslands

https://phys.org/news/2025-07-precision-tracks-woody-great-plains.html
12•PaulHoule•3d ago•2 comments

FFmpeg Assembly Language Lessons

https://github.com/FFmpeg/asm-lessons
322•flykespice•14h ago•94 comments

Int. Association for the Preservation of Spiritualist and Occult Periodicals

https://iapsop.com
5•andrii•3d ago•0 comments

XZ Utils Backdoor Still Lurking in Docker Images

https://www.binarly.io/blog/persistent-risk-xz-utils-backdoor-still-lurking-in-docker-images
72•torgoguys•3h ago•26 comments

Spice Data (YC S19) Is Hiring a Product Associate (New Grad)

https://www.ycombinator.com/companies/spice-data/jobs/RJz1peY-product-associate-new-grad
1•richard_pepper•6h ago

Ted Chiang: The Secret Third Thing

https://linch.substack.com/p/ted-chiang-review
24•pseudolus•3h ago•5 comments

Anna's Archive: An Update from the Team

https://annas-archive.org/blog/an-update-from-the-team.html
819•jerheinze•11h ago•383 comments

Show HN: I built a toy TPU that can do inference and training on the XOR problem

https://www.tinytpu.com
63•evxxan•8h ago•13 comments

A general Fortran code for solutions of problems in space mechanics [pdf]

https://jonathanadams.pro/blog-articles/Nasa-Fortran-Code-1963.pdf
24•keepamovin•3h ago•5 comments

The Rising Returns to R&D: Ideas Are Not Getting Harder to Find

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=5242171
70•surprisetalk•4d ago•14 comments

What could have been

https://coppolaemilio.com/entries/what-could-have-been/
120•coppolaemilio•5h ago•98 comments

Newgrounds: Flash Forward 2025

https://www.newgrounds.com/bbs/topic/1542140
38•lsferreira42•6h ago•11 comments

Show HN: Fractional jobs – part-time roles for engineers

https://www.fractionaljobs.io
180•tbird24•6h ago•96 comments

T-Mobile claimed selling location data without consent is legal–judges disagree

https://arstechnica.com/tech-policy/2025/08/t-mobile-claimed-selling-location-data-without-consent-is-legal-judges-disagree/
274•Bender•8h ago•68 comments

Structured (Synchronous) Concurrency

https://fsantanna.github.io/sc.html
22•jbkcc•5h ago•1 comments

Launch HN: Reality Defender (YC W22) – API for Deepfake and GenAI Detection

https://www.realitydefender.com/platform/api
71•bpcrd•12h ago•33 comments