@coneonthefloor @raysan5 I think eventually this will be in the imported file, so you can just add a script tag, and start adding `<raylib-game>` all over!
I made this thing that lets you write hot-reloading raylib demos really fast in JS. It still needs some work, but it's totally usable for demos, now:
https://t.co/6sx9Jyf9jl Here is a codepen example you can edit on the fly:
https://t.co/yUc32PedPI
@coneonthefloor @raysan5 I made a web-component example here: https://t.co/uM01q9wGKj this makes it so you can have multiple raylib/canvas combos on one page, but not have to use globalize/"reaylib."
@coneonthefloor @raysan5 May also be an emscripten bug. All the structs use wasm-memory to get/set which makes them look like regular js things, but they operate on the bytes in memory, underneath things.
@coneonthefloor @raysan5 well, I guess in first code-example, it would still need canvas param, but the functions are all left intact. I tried some trickery with eval to strip "raylib." but it makes the scope weird (like using let to share an image between init & update.)
This has the current examples I have made: https://t.co/N2Zrui36Bh but my goal is to port all the examples to JS code like this (once I clear out all the bugs) to eventually end up on the main raylib website (for editable demos.)
@coneonthefloor Another idea I had was to make a web-component that can setup the canvas & raylib namespace (without globalize) and keep the 2 locked together (so you can add a bunch of demos on a page, without "raylib.") but I need to think more about it.
@coneonthefloor yeh, totally agree. I was trying to get around the problem of "import side-effects" since the wasm-load is async. Things with emscripten are often like this, but I think one idea might be to inline the wasm-bytes and inject it into the InitGame part.
I made a TinaCMS tutorial video here: https://t.co/7XGZtCUMzL and a follow up here https://t.co/iyTi8KXgdW I go over basics of getting started, making custom inputs. custom addons to richtext-editor and more.
@jarredsumner Writing a char-dev driver wouldn't directly mod the kernel, as you can insmod the DLL that provides a few callbacks, but I'm not sure that gets you what you want. Probly the easiest way to do it, if FUSE or a regular file (on tmp or otherwise) won't cut it, though. What's it for?
@jarredsumner mknod (CLI command or in sys/stat.h) can make the device. Here is more info https://t.co/Sg7mYmhZcH To make the code that answers requests to the device you created via major/minor, you have to hook into the kernel, but there is existing stuff as you mentioned, like unix sockets
@Skweezy NFTs grow in energy-use, per transaction, so if you sell it once, the energy cost is relatively low. Did you know a single tweet emits about 0.02 grams of C02 into the atmosphere (90 joules.) At ~50mil tweets avg/day it's equiv to 1 metric ton of CO2.
@techwraith Like "there's a fire, let's go to the kitchen and put it out" or "let's plan our next big meal (release, deploy, etc) in the kitchen". You could even say a sprint is a "lunch rush", but that may be going too far.
Here are a couple more: a simple arduino sketch to emulate a common serial joystick https://t.co/CcUQOaJ3OT It uses regular linux drivers. I made it for https://t.co/K89KDBOraN which is a cheap gamified hacking platform (designed to run on a pizero and look like a gameboy.)
I always forget to tweet about all the projects I work on all the time. Many are just the beginning of things, that I eventually get around to finishing, many are useful right away. Here are a few recent ones. (0/4)
Here is a cross-platform driver for my programmable keyboard. This works in linux (unlike the official) and I will eventually have a CLI and GUI frontend for it. https://t.co/lf5yU4Gsj8 (4/4)