News for hackers. Stuff that matters.
Re:Standalone WebAssembly games using I/O devices by boomlinde on Sunday January 19, 2020 @01:27PM (#22092963)
> There are no cross-platform APIs for something as simple as "blit a bunch of pixels to the screen" anyway

SDL? Has ports for more obscure platforms, too

Re:Standalone WebAssembly games using I/O devices by grawprog on Sunday January 19, 2020 @02:17PM (#22093304)
Yup my first though and drawing a pixel with SDL is pretty easy comparatively.

    SDL_Window *window;
    SDL_Renderer *renderer; 
    SDL_CreateWindowAndRenderer(800, 600, 0, &window, &renderer);
  
    SDL_RenderDrawPoint(renderer, 400, 300); //Renders on middle of screen.
      SDL_RenderPresent(renderer);

There's also SDL bindings in a bunch of languages, a few official ones here

https://www.libsdl.org/languages.php

Re:Standalone WebAssembly games using I/O devices by earenndil on Sunday January 19, 2020 @06:18PM (#22094830)
Agreed. SDL2 is one of the few libraries I've used that I can honestly say is well-designed.