TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

24a2: An ultra-minimalist game engine

230 pointsby jmlralmost 5 years ago

22 comments

derefralmost 5 years ago
I feel like, rather than having no sound at all, the ability to output a PC-speaker-like beep (i.e. turn on&#x2F;off a fixed-frequency, fixed-amplitude square wave channel) might be nice. No parameters because otherwise you might get distracted trying to trick it into sounding vaguely musical ;)<p>I’ve also always wanted to see something like this but with emoji for the “graphics.” (Emoji are, after all, the standard graphics resource pack of our era—like DOS box-drawing characters were for the 80s.) Maybe stick them as labels on a grid of buttons, resulting in a similar look to <i>Chip’s Challenge</i>.
评论 #23668377 未加载
jstanleyalmost 5 years ago
Wow, this is fantastic, what a great idea.<p>I&#x27;ve spent the morning knocking up a little Space Invaders clone, it&#x27;s the most fun I&#x27;ve had programming in ages. It&#x27;s at <a href="https:&#x2F;&#x2F;incoherency.co.uk&#x2F;24invaders&#x2F;" rel="nofollow">https:&#x2F;&#x2F;incoherency.co.uk&#x2F;24invaders&#x2F;</a> and the logic is mostly done, just got some graphics work to do.<p>I got into programming as a teenager by making shitty games, first with Blitz Basic, and then with the Allegro C library.<p>My favourite parts of the Allegro community were the annual &quot;speedhack&quot; in which people create a game over a weekend, and the informal &quot;screenhack&quot; in which you create a game that must fit in 80x25 characters of C code. 24a2 brings back all the joy of those challenges for me.
评论 #23668887 未加载
Waterluvianalmost 5 years ago
I just love it. I can’t wait to make a bunch of toys with this.<p>I do think some very primitive sounds might be a good option. Don’t even use files. Just use the AudioContext and provide an enumeration of a couple beeps and boops. And I 100% support if the answer to this is “avoiding scope creep”
ArtWombalmost 5 years ago
Nice! I think you could do a port of the classic Milton Bradley board game &quot;You sunk my Battleship!&quot; with this ;)<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Battleship_(game)" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Battleship_(game)</a>
评论 #23665755 未加载
评论 #23665940 未加载
jsf01almost 5 years ago
Is importing P5 a requirement for this engine to work? I know “minimal” can mean a lot of things to different people, but I don’t think it P5 adds much that you couldn’t trivially do without it in this case, and by stripping that dependency away you’d be able to make a very strong case for this being an ultra minimal engine.
评论 #23667906 未加载
Impossiblealmost 5 years ago
I love the minimal API, but this would really be awesome if it was a hosted fantasy console style environment with zero boiler plate and shareable links. I know that sounds like a minor difference, but having to write even a little bit of boilerplate in a minimalist environment is a source of friction. Also, as said by many people in this thread, a simple sound API (PC speaker style sounds, sfxr, 10 hard-coded effects, etc) should be added.
RobKohralmost 5 years ago
This could be fun to implement in arduino hooked up to a color led matrix that also double as buttons.
harkalalmost 5 years ago
I find that any game created with this game engine ends up being far more code-heavy and complex than it would be without using it. In my mind, this invalidates the argument of using an ultra-minimalist game engine at the first place...
评论 #23667948 未加载
评论 #23667905 未加载
评论 #23668047 未加载
umvialmost 5 years ago
I love artificial constraints like this. Really forces you to innovate
评论 #23666668 未加载
livrealmost 5 years ago
Interesting idea, I recommend adding virtual arrow keys for mobile compatibility.
Nzenalmost 5 years ago
tl;dr A javascript framework with a canvas output of 24x24 grid of dots. These dots can adopt nine distinct colors. Default input is arrow keys or mouse click on one of the dots. Includes a short eight section tutorial and api doc for two classes (game, gameconfig) and two enumerations (color, direction). Has example games for snake and &#x27;skiiing&#x27; (wall avoidance on a linear path).
评论 #23665926 未加载
andrewncalmost 5 years ago
I just made my first game[0] with the engine!!<p>It was a pretty painless experience. Granted it encourages globals (and JavaScript is not my favorite) but it was pretty great.<p>Maybe with an additional array&#x2F;matrix library it would be perfect.<p>[0] <a href="https:&#x2F;&#x2F;andrewnc.github.io&#x2F;games&#x2F;pal_game.html" rel="nofollow">https:&#x2F;&#x2F;andrewnc.github.io&#x2F;games&#x2F;pal_game.html</a>
kentbrewalmost 5 years ago
Here&#x27;s Samegame in 24a2:<p><a href="https:&#x2F;&#x2F;kentbrew.neocities.org&#x2F;samegame&#x2F;" rel="nofollow">https:&#x2F;&#x2F;kentbrew.neocities.org&#x2F;samegame&#x2F;</a><p>Wishing for a mouseover event....
flargalmost 5 years ago
Would be great for something like core wars!
morelispalmost 5 years ago
Strong shades of <a href="https:&#x2F;&#x2F;perlenspiel.net&#x2F;" rel="nofollow">https:&#x2F;&#x2F;perlenspiel.net&#x2F;</a> (though probably convergent evolution) - something to look at if you want just <i>slightly</i> more (variable-sized grid, pixel borders, sounds).
fierarulalmost 5 years ago
Why 24x24 and not 80x25 I wonder.
saagarjhaalmost 5 years ago
The examples are cute and gave me a &quot;graphing calculator game&quot; vibe :)
kqralmost 5 years ago
I have no idea if this is any good compared to existing game engines, but the limits imposed by its simplicity certainly tickle my creativity. If nothing else, it could be a great prototyping space.<p>One question: have you considered making it mobile friendly somehow? Given that all of the examples require arrow keys, it&#x27;s a bit hard to demo on a phone.
评论 #23674275 未加载
xwdvalmost 5 years ago
Is there a place where games made with this engine are featured?
评论 #23666237 未加载
dgreenspalmost 5 years ago
I&#x27;d like to see some way to play the games on mobile.
tobyhinloopenalmost 5 years ago
No mobile support is a missed opportunity.<p>Also misses bleeps. Beep boop
raldialmost 5 years ago
What&#x27;s the a2 refer to?
评论 #23667477 未加载