News for hackers. Stuff that matters.
Re:WASM-4: Build retro games using WebAssembly for a fantasy... by two_handfuls on Friday November 29, 2024 @09:36PM (#42278947)
That looks very cool! I wonder if someone will make a VR player for those cartridges.
Re:WASM-4: Build retro games using WebAssembly for a fantasy... by paxys on Saturday November 30, 2024 @05:15PM (#42284418)
Project looks cool, but wow that is a terrible name.
Re:WASM-4: Build retro games using WebAssembly for a fantasy... by yesco on Sunday December 01, 2024 @01:19PM (#42289770)
Yeah it's a bit like naming a python library "python"
Re:WASM-4: Build retro games using WebAssembly for a fantasy... by LeFantome on Thursday December 05, 2024 @12:34AM (#42325272)
Python-4
Re:WASM-4: Build retro games using WebAssembly for a fantasy... by shakna on Thursday December 05, 2024 @03:21AM (#42326108)
You mean python2 [0] ?

[0] https://pypi.org/project/python2/

Re:WASM-4: Build retro games using WebAssembly for a fantasy... by foobazgt on Wednesday December 04, 2024 @09:09PM (#42324101)
It's a reference to Pico-8.

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

Re:WASM-4: Build retro games using WebAssembly for a fantasy... by gbraad on Wednesday December 04, 2024 @09:29PM (#42324208)
... only using '4' colors.

Still a lousy name. Seems I had seen the project before, but the name didn't stick, unlike tic80, pico8, etc

Re:WASM-4: Build retro games using WebAssembly for a fantasy... by KeplerBoy on Thursday December 05, 2024 @04:28AM (#42326474)
Sure, but Pico-8 is a better name than Lua-8.
Re:WASM-4: Build retro games using WebAssembly for a fantasy... by Lerc on Wednesday December 04, 2024 @10:55PM (#42324802)
Could be worse, I called mine the KWAK-8.
Re:WASM-4: Build retro games using WebAssembly for a fantasy... by brulard on Thursday December 05, 2024 @03:42AM (#42326217)
I like that one
Re:WASM-4: Build retro games using WebAssembly for a fantasy... by ramon156 on Thursday December 05, 2024 @06:28AM (#42327117)
Kwak in dutch means either the sound of a duck or a "sploodge/splat". Both are funny tbh
Re:WASM-4: Build retro games using WebAssembly for a fantasy... by jamesgeck0 on Thursday December 05, 2024 @02:24PM (#42331667)
Do I understand correctly that KWAK-8 is designed such that porting applications from the fantasy console to actual hardware (or vice versa) would be relatively easy? That's pretty cool.
Re:WASM-4: Build retro games using WebAssembly for a fantasy... by ayaros on Wednesday December 04, 2024 @10:24PM (#42324578)
This fantasy console sure looks a lot like a Game Boy...
Re:WASM-4: Build retro games using WebAssembly for a fantasy... by indigo945 on Thursday December 05, 2024 @04:08AM (#42326374)
Maybe like what the Game Boy would have been if it had had a framebuffer. It's a little bit sad, actually, that WASM-4, like the Pico-8, is a framebuffer console - there's less cool tricks you can do with raster interrupts and the like.
Re:WASM-4: Build retro games using WebAssembly for a fantasy... by rob74 on Thursday December 05, 2024 @04:40AM (#42326538)
Were you thinking of changing the 4-color palette for every scanline, like the Atari 8-bits and the Amiga could do? Impose arbitrary limitations so you can find clever ways to circumvent them - sounds like fun!
Re:WASM-4: Build retro games using WebAssembly for a fantasy... by lxgr on Thursday December 05, 2024 @09:09AM (#42328360)
The limitations were anything but arbitrary!

The Game Boy has less memory than would be required for a full frame buffer, so its “just in time rendering” of sprites and tiles is one way to support its full display resolution and still leave some space for game state in the RAM.

Re:WASM-4: Build retro games using WebAssembly for a fantasy... by PittleyDunkin on Thursday December 05, 2024 @11:36AM (#42329723)
> The Game Boy has less memory than would be required for a full frame buffer

This isn't quite true—you need 160 * 144 pixels at 2 bits-per-pixel. This weighs in at 5760 bytes. There are many other reasons why a framebuffer wasn't ideal for the hardware of the time, though.

Re:WASM-4: Build retro games using WebAssembly for a fantasy... by lxgr on Thursday December 05, 2024 @12:12PM (#42330162)
Ah, sorry, I think I mixed that up with the opposite practical limitation then – IIRC you can't actually display a fullscreen bitmap on the original GameBoy without some hacks, as the full screen fits 360 tiles, but there's a limit of 256.

But in any case a frame buffer would use up almost the entire available VRAM of 8 KB and would have probably also been more expensive since it would have to be dual-port RAM (I believe the Game Boy's VRAM isn't).

Re:WASM-4: Build retro games using WebAssembly for a fantasy... by epcoa on Thursday December 05, 2024 @10:16AM (#42328995)
I thought it was clear that arbitrary here refers to any modern reimagining of said limitations, which obviously don’t have to be identical constraints either.
Re:WASM-4: Build retro games using WebAssembly for a fantasy... by jamesgeck0 on Thursday December 05, 2024 @12:27PM (#42330310)
You can actually do this in PICO-8 to display up to 32 colors at once.

https://www.lexaloffle.com/bbs/?tid=38565

Re:WASM-4: Build retro games using WebAssembly for a fantasy... by rob74 on Thursday December 05, 2024 @03:55AM (#42326293)
Might be a nice way to get into WASM development, but 4 colors sounds very limiting. Ok, I know the original Game Boy made do with only 4 "colors" (but that was on a black and white display where you probably couldn't have told the difference if there would have been more "shades of gray"), and the Game Boy Color showed these games using a palette of 4 colors, but actually even that device could show 56 colors at the same time!
Re:WASM-4: Build retro games using WebAssembly for a fantasy... by rererereferred on Thursday December 05, 2024 @08:20AM (#42327952)
The idea of the 4 colors and 160x160 screen is, from my pov, to focus on the gameplay more than the graphics. A lot of people get stopped from attempting to make games because their art skills suck, this removes that element from being an issue.
Re:WASM-4: Build retro games using WebAssembly for a fantasy... by rob74 on Thursday December 05, 2024 @10:21AM (#42329043)
> A lot of people get stopped from attempting to make games because their art skills suck

As a developer with no art skills myself, I can sympathize with that. But I think that is already taken care of by the low-res display - making pixel art is (in my experience) a lot easier than higher-resolution art. I don't think having 8, 16 or 32 colors instead of just 4 really makes an impact on the art skills required for a game...

Re:WASM-4: Build retro games using WebAssembly for a fantasy... by lucasban on Thursday December 05, 2024 @08:54AM (#42328233)
The play date doesn’t even have shades of grey and has plenty of good games, arguably because of similar constraints
Re:WASM-4: Build retro games using WebAssembly for a fantasy... by rob74 on Thursday December 05, 2024 @10:52AM (#42329321)
OTOH, the PlayDate is a hardware device, so using a monochrome LCD makes sense for cost saving and power consumption reasons. But, even for a hardware device, once you decide you want to have a color screen, in this day and age there is no real (technical) reason anymore to limit the number of colors.
Re:WASM-4: Build retro games using WebAssembly for a fantasy... by lucasban on Thursday December 05, 2024 @10:56AM (#42329360)
I agree, I think it’s more of a novelty reason, just a constraint for the sake of encouraging creativity / not just being another place for the same things we already have.
Re:WASM-4: Build retro games using WebAssembly for a fantasy... by tredre3 on Thursday December 05, 2024 @06:18PM (#42333963)
> so using a monochrome LCD makes sense for cost saving and power consumption reasons

The Sharp Memory LCD used in the Playdate is more expensive than a similarly sized IPS LCD. Whilst power consumption was probably a consideration, the main justification was to impose a deliberate game design constraint IMHO.

Re:WASM-4: Build retro games using WebAssembly for a fantasy... by Cthulhu_ on Thursday December 05, 2024 @11:09AM (#42329462)
4 colors is still 4x as much as the Playdate or games like Return of the Obra Dinn has (or twice if you consider 'off' a color).
Re:WASM-4: Build retro games using WebAssembly for a fantasy... by jerf on Thursday December 05, 2024 @01:31PM (#42330989)
Heh, citing the Obra Dinn is cheating a bit. Most people aren't going to do this: https://forums.tigsource.com/index.php?topic=40832.msg136374...
Re:WASM-4: Build retro games using WebAssembly for a fantasy... by jamesgeck0 on Thursday December 05, 2024 @08:52PM (#42335269)
It's a little bit more complicated than that. The system is limited to displaying 4 colors at once, but the palette can change at any time. Check out what Phantom Shift does with a dynamic two color palette.

https://wasm4.org/play/phantom-shift/

Re:WASM-4: Build retro games using WebAssembly for a fantasy... by meisterglanz on Thursday December 05, 2024 @05:34AM (#42326804)
TIC-80 also has WASM support but is a more capable console IMO. Here for example is a rust template: https://github.com/nesbox/TIC-80/tree/main/templates/rust
Re:WASM-4: Build retro games using WebAssembly for a fantasy... by panic on Thursday December 05, 2024 @06:13AM (#42327029)
One cool thing WASM-4 has over TIC-80 is built-in networked multiplayer with rollback: https://wasm4.org/docs/guides/multiplayer
Re:WASM-4: Build retro games using WebAssembly for a fantasy... by lxgr on Thursday December 05, 2024 @12:16PM (#42330196)
Can TIC-80 for Retroarch run WASM "ROMs" directly or do they have to be precompiled?
Re:WASM-4: Build retro games using WebAssembly for a fantasy... by jamesgeck0 on Thursday December 05, 2024 @12:23PM (#42330264)
TIC-80 is indeed a generally more capable console.

The main reasons I'd personally pick WASM-4 over TIC-80 would be touchscreen controller support, more complete documentation, and better performance on resource constrained devices. (WASM-4 can run on the ESP32 and Nintendo DS, while TIC-80 struggles on the significantly more powerful 3DS.)

Re:WASM-4: Build retro games using WebAssembly for a fantasy... by davexunit on Thursday December 05, 2024 @07:26AM (#42327541)
WASM-4 is a lot of fun! The programming interface is really simple and a great way to learn about the basics of WebAssmembly. No high level language necessary, just write simple programs in WAT format. We used WASM-4 at work as a very early test that our WebAssembly toolchain was working end to end, before we were able to run larger programs in web browsers.

https://spritely.institute/news/hoot-wireworld-live-in-brows...

Re:WASM-4: Build retro games using WebAssembly for a fantasy... by tantalor on Thursday December 05, 2024 @09:25AM (#42328504)
Pleasantly surprised to see https://wasm4.org/play/untangle on here, remake of my original "Planarity" Flash game from 2005.
Re:WASM-4: Build retro games using WebAssembly for a fantasy... by anshargal on Thursday December 05, 2024 @10:20AM (#42329028)
I wonder if anyone is working on a fantasy console with PS3-level graphics. A lot of games on Steam today have retro aesthetics and aren’t very demanding. A game runtime that works on Linux, macOS, and Windows would solve portability and digital preservation.
Re:WASM-4: Build retro games using WebAssembly for a fantasy... by Cthulhu_ on Thursday December 05, 2024 @11:08AM (#42329454)
PS3 graphics aren't that different from modern day graphics, just lower fidelity and the hardware was a bit quirky but other than that they didn't have any particular aesthetic; I don't think the PS2 had either. The PS1 did though, the weird texture shimmering that was reproduced in for example the Bloodborne demake [0] and subsequent Bloodborne Kart, which had to be rebranded to Nightmare Kart for copyright reasons. But that one's made in Unreal Engine 4, with a forum thread [1] saying the effect can be reproduced across multiple engines like UE4, Unity and Godot, using a shader.

[0] https://b0tster.itch.io/bbpsx

[1] https://itch.io/t/1999076/what-game-engine-did-you-use

Re:WASM-4: Build retro games using WebAssembly for a fantasy... by modeless on Thursday December 05, 2024 @11:32AM (#42329692)
The web is already a game runtime that works on Linux, macOS, Windows, Android, and iOS with decent graphics. I've ported a couple of games. Here's Quake 3 including multiplayer https://thelongestyard.link/ and Cave Story https://thelongestyard.link/cave-story/. There are full-fledged web-native games too such as https://gooberdash.winterpixel.io/ (2D Fall Guys) and https://krunker.io/ or https://venge.io/ (multiplayer FPS)
Re:WASM-4: Build retro games using WebAssembly for a fantasy... by cardanome on Thursday December 05, 2024 @10:37AM (#42329177)
> PS3-level graphics

> retro aesthetics

You are really making me feel old.

That said PS1/PS2 style is pretty popular and a fantasy console in that area would be indeed great.

I just hope you mistyped because PS3 is mostly modern graphics for me. Most of the games still look good if you upscale the textures a bit.

Re:WASM-4: Build retro games using WebAssembly for a fantasy... by tjpalmer on Friday December 06, 2024 @01:19PM (#42342472)
I'm making a wasm runtime called Taca that has approximately low-end modern capabilities that can run in either web or a separate native player. https://github.com/contextfreeinfo/taca (I also made the intro video for WASM-4.)