News for hackers. Stuff that matters.
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

There are no comments on this comment yet.