Hacker News new | past | comments | ask | show | jobs | submit login

I don't want to fuss with a feature filled game engine. Does anyone have any suggestions of a code-based game engine that waaaay simplifies and restricts you in some way?

I really want to make a game based on strict limitations but to write it in code and not some graphical editor.

I'm two hours in witu phaserjs and I've just done boilerplate with cameras and scenes. It looks great but it's overkill for me.

Edit: thank you all. So many great leads here.




Sounds to me like you might be interested in fantasy consoles like

* LIKO-12.........https://liko-12.github.io/

* PICO-8..........https://www.lexaloffle.com/pico-8.php

* Pixel Vision 8..https://www.pixelvision8.com/

* TIC-80..........https://tic80.com/


I also second PICO-8


I second PICO-8


Love2D is not a bad choice. As far as restrictions go, I'd say Lua is a pretty limited language lol.


This might be the opposite of what you're looking for, but p5.js[0] is a decent candidate if you want to build a barebones game (physics) engine yourself. It may sound like a lot but you may be surprised to see how far you can get depending on what your end goal is, and you may just create something novel as a result. See here[1] and here[2] for a rudimentary example.

[0] https://p5js.org/

[1]https://dev.to/soorajsnblaze333/how-to-create-a-simple-physi...

[2]https://dev.to/soorajsnblaze333/how-to-create-a-simple-physi...


And P5.play is an expansion library for P5.js that gives you sprites, collision detection and a virtual camera, while still being unminified and reasonably easy to read. https://molleindustria.github.io/p5.play/

I did have to pin p5.js to v0.5.4 as apparently p5.play hasn't been updated and didn't play nicely with newer versions of p5.



Pico-8 (or one of its knock-offs like Tic-80) is a great choice for just concentrating on making something. Built-in gfx, map, and audio editors: 8x8px sprites. Very limiting, but very fun. I prototype everything in Pico-8 now.


Bevy is an up and comer code-only engine (in Rust) that's still very young but has a decent collection of examples: https://bevyengine.org


https://ledoux.itch.io/bitsy

"Bitsy is a little editor for little games or worlds. The goal is to make it easy to make games where you can walk around and talk to people and be somewhere."

Play some Bitsy games here: https://itch.io/c/90743/bitsy-games


I quite like nico: https://github.com/ftsf/nico

It's got similar functions to PICO-8, but instead of lua you write it in Nim, and instead of an integrated editor, you use whatever editor you want.

Perhaps most of all though, the author also wrote some pretty cool games with it, which are also open source, so it's proven tech and you can learn from them.


> I'm two hours in witu phaserjs and I've just done boilerplate with cameras and scenes.

I feel like Phaser is interesting as their samples/demos feel very "single page"[1] but can be inverted into something with scenes like you mention. It's often the first thing I reach for if I want to hack something in 2D, but often those hacks become larger things so quickly!

[1] http://labs.phaser.io/edit.html?src=src\tweens\single%20prop...


If you are looking for strict limitations check out the arduboy: https://arduboy.com/

It's a credit card sized game system which you can program with the Arduino IDE.


https://craftyjs.com/ supersmall lib.

However, you will probably enjoy Phaser the most of all listed once you get comfortable around it. It's not that complicated.


I'm trying. Really fighting with the coordinate system. I want to spawn things into a world where the coords aren't screen coords. So on a smaller screen everything shrinks rather than gets hidden.

But you're probably right. I just like being able to make toy games in a weekend without dealing with the plumbing a lot.





Turtle space is 3D Logo with dozens of primitives to make game making easy

Turtlespaces.org


For something a little different, there's code.world




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: