Sign in

Peter Hellberg

@c7.se
75 followers 62 following 30 posts

Go and Zig developer, Valheim player, Bread baker. c7.se

PostsRepliesMedia
Peter Hellberg @c7.se · 10/09/2025
I just published c7.se/reviving-a-q... where I document the experience of getting my old web server up and running again.
Back of a Dell OptiPlex NX1 300+ “Net PC” under my desk.
000
Peter Hellberg @c7.se · 19/02/2025
It is a bit fiddly, but it is possible to run two instances of the @fireflyzero.bsky.social emulator, and have their respective inputs synced.
Two instances of firefly-emulator running my peter.input-test rom, in sync.
120
Peter Hellberg @c7.se · 17/02/2025
I've pushed fixes to the `ff.Angle` type, wrote some test cases for it, and also a small example where I'm using `ff.drawArc` to draw some rotating colors. Source code available from play.c7.se/ff/rot/
ff.Arc showing eight 45 degree slices colored from the default Sweetie 16 palette.ff.Arc showing eight 45 degree slices colored from the default Sweetie 16 palette.
000
Peter Hellberg @c7.se · 17/02/2025
Fixed the getRandom() issue in `ff`, and naturally had to test it out by writing something using that function. Source code available from play.c7.se/ff/rng/
Random circles using the https://lospec.com/palette-list/lost-century paletteRandom circles using the https://lospec.com/palette-list/lost-century paletteRandom circles using the https://lospec.com/palette-list/lost-century palette
000
Peter Hellberg @c7.se · 16/02/2025
Ported another WASM-4 thing to @fireflyzero.bsky.social For this one I got to do silly things like; if (self.color == .white) { for (&bytes) |*byte| { byte.* = ~byte.*; } } img[0x6..0xE].* = bytes; Source code available from play.c7.se/ff/fp8x8/
OtherOtherSymbolsNature
110
Peter Hellberg @c7.se · 16/02/2025
Just ported a small WASM-4 demo I made a while back to @fireflyzero.bsky.social using @ziglang.bsky.social, fun stuff 🔥 Updated my `ff` module with conveniences such as: const pal: ff.Palette = .{ .black = 0x000000, .gray = 0x292929, .white = 0xffffff, .orange = 0xf7a41d, };
150
Peter Hellberg @c7.se · 15/02/2025
Today v0.5.1 of the @fireflyzero.bsky.social emulator was released, which means I could finally use it :) (due to me being on Pop!_OS 22.04) What better then to start working on some @ziglang.bsky.social code to make it convenient for me to start hacking on some apps.
Firefly Zero App displaying the Zig logo
000
Peter Hellberg @c7.se · 06/02/2025
Got the @fireflyzero.bsky.social Input test ROM to work (pad input via WASD and buttons HJKL + Enter)
000
Peter Hellberg @c7.se · 05/02/2025
Started working on a rudimentary @fireflyzero.bsky.social emulator in Go using Wazero, Ebiten and my Gfx-library. - wazero.io - ebitengine.org - github.com/peterhellber...
163
Peter Hellberg @c7.se · 18/10/2023
Vad fasiken!?
100