lingo.lol is one of the many independent Mastodon servers you can use to participate in the fediverse.
A place for linguists, philologists, and other lovers of languages.

Server stats:

65
active users

#sdl2

0 posts0 participants0 posts today

The #github repository of my #sega #mastersystem and #gamegear #emulator called "Masterlator" is now public 🙂 I've rewritten the code in proper C++, use #cmake as the build system, utilize #sdl2 and added a new #debugger with #wladx compatible *.sym file support, memory viewer and tile/sprite viewer. It's rather basic now but will hopefully be a good tool for #homebrew game #development in the future.

github.com/chn-dev/Masterlator

chn-dev.net/Projects/Masterlat

Continued thread

Le code est encore très brouillon, j'essaie de le structurer avec les connaissances que j'ai grapillé entre #sdl2 et #godot. La doc du tic80 est relativement courte. Ça permet de construire rapidement quelque chose, surtout que tous les outils sont fournis dans la console.

Jusqu'à ce jour, c'est le système de collision et de chargement de scène qui m'ont pris le plus de temps mais les sujets sont intéressants. J'ai gardé une constante DBG qui permet d'afficher certains éléments cachés.

Hard lesson that #chatgpt helped me learn: when it comes to #SDL2 (at least in the #haskell library), I think it's generally wise to keep at least major SDL functions in the "main" thread. I believe I solved a major bug/problem this way.

It's very cool how fast I've learned so much while making this project and talking things through with #chatgpt.

Continued thread

#blog: fazendo o jogo da cobrinha.

"conforme eu fui aprendendo a programar em rust, eu senti vontade de abranger meus conhecimentos para diversas áreas relacionadas à programação. uma delas foi o desenvolvimento de jogos. por mais que existam diversas engines para montar um jogo e eu tenha uma vontade enorme de experimentar o gdextension do godot, eu decidi programar meu jogo nativamente usando a biblioteca sdl2."

#rust #sdl2 #desenvolvimentosoftware

piuvas.net/minhoca/

$ piuvas_ · fazendo o jogo da cobrinha.└── de 2023-06-06 • 6 min
Continued thread

#blog: fazendo o jogo da cobrinha.

"conforme eu fui aprendendo a programar em rust, eu senti vontade de abranger meus conhecimentos para diversas áreas relacionadas à programação. uma delas foi o desenvolvimento de jogos. por mais que existam diversas engines para montar um jogo e eu tenha uma vontade enorme de experimentar o gdextension do godot, eu decidi programar meu jogo nativamente usando a biblioteca sdl2."

#rust #sdl2 #desenvolvimentosoftware

piuvas.net/minhoca/

$ piuvas_ · fazendo o jogo da cobrinha.└── de 2023-06-06 • 6 min

In 2010 I made an #AudioVisual piece using #Haskell, #OpenGL, and #SC3:

mathr.co.uk/blog/2010-03-12_bo

This weekend I ported it from Haskell to #C, using #SDL2 as framework including #audio in the same program (SC3 was overkill for the simple sounds, and maintaining Haskell code to keep working with changes to the ecosystem is too much busy-work).

I changed the colours (suggested by @netzzz), moved the #physics #simulation from the #video thread to the #audio thread for tighter timing (the SC3 version scheduled events with bundles), and added a #RingBuffer to send the visualisation data back to the video thread (for smoother animation with good a/v sync).

I also did various optimisations, using tables instead of trigonometric functions, using (client-side) vertex arrays instead of glBegin().

License changed from #GPL v3 or later to #AGPL v3 only, in anticipation of compiling it to run in the browser using Emscripten.

Code at:
code.mathr.co.uk/bowntz

There's still (at least) one bug: after some time the program freezes and uses 100% CPU, I think it happens when the ball count limit is reached. Takes a long time so will be hard to figure out what is going on...

I have created a very easy to use SDK package for the Odroid-Go Ultra, Hardkernel's handheld gaming device . You can use the package to compile SDL2 C/C++ programs on the device and to cross-compile them on an Ubuntu Linux PC.

Here's a tutorial for beginners:
chn-dev.net/?action=viewpost&p

Website:
chn-dev.net/showItem.php?item=

GitHub:
github.com/chn-dev/SDL2-ogu

www.chn-dev.netchn-dev.net - Programming the Odroid-Go Ultra using SDL2chn's Music and Programming Projects