Hacker GitHub

← All repos

serprex/openEtG

View on GitHub ↗ ★ 82 Rust

15 mentions on Hacker News by 1 person: 0 stories, 15 comments · first 2016-04-30 · latest 2024-04-13

Mentions per year 15 mentions · busiest year 2021 (4)
20082026
  1. …diversity 7. design algorithms with size in mind, I have a couple lookup tables where I pack bits https://github.com/serprex/openEtG/blob/2011007dec2616d1a24d... encodes an adrenaline mechanic where multiple attacks give lower attack power…
  2. …while switching some code from floats to fixed point arithmetic (reducing overall wasm blob size) https://github.com/serprex/openEtG/blob/2011007dec2616d1a24d... Tho I could probably save binary size more by importing Math.sqrt from JS
  3. …or to run game ai outside of UI thread) I was able to go with WebWorkers using a small script: https://github.com/serprex/openEtG/blob/master/src/AiWorker.... (worker code here: https://github.com/serprex/openEtG/blob/master/src/ai.worker..…
  4. …Eventually I moved the whole game engine into wasm & at that point it all got ported to Rust https://github.com/serprex/openEtG/blob/8b7069cc52ec8db3406a...
  5. …plugin is nice, I since gave up on wasm-pack & added a build-wasm to my package.json's scripts: https://github.com/serprex/openEtG/commit/9997fb098d168920bb... This way if someone wants to contribute to openetg they don't need to install…
  6. …to separate begin-compute & wait-on-compute I've rewritten a nodejs game server into rust, https://github.com/serprex/openEtG/tree/master/src/rs/server... handleget/handlews are quite straight forward. But apparently it doesn't work
    comment by __s · 2021-11-13 · in Why asynchronous Rust doesn't work
  7. …eviction. It doesn't meet my requirements because I store the in-memory content precompressed https://github.com/serprex/openEtG/blob/master/src/rs/server... edit: seems it can. Nice
  8. …I didn't have to deal with closures much because I'm comfortable writing a 2000 line match 0: https://github.com/serprex/openEtG/tree/master/src/rs/server
    comment by __s · 2021-03-10 · in Why asynchronous Rust doesn't work
  9. My .travis.yml for a node project is pretty simple: https://github.com/serprex/openEtG/blob/542c645c53dba36d6653... Python's easy too: https://github.com/serprex/aespython/blob/c3256b656308af8119... A Rust repo I contribute to has a…
  10. I updated openEtG to use React instead of PixiJS. https://etg.dek.im https://github.com/serprex/openEtG Fixed some UI bugs, made it straight forward implement features like better animations & replays, performance improved by removing…
  11. I brought it into openEtG to speed up the engine's RNG: https://github.com/serprex/openEtG/blob/master/src/rng.wat
  12. https://etg.dek.im https://github.com/serprex/openEtG/tree/master/src Quite a bit of the server & client share code. Card handling logic, deck code handling in etgutil, eventually I'd like to move the game engine to being serverside, user…
  13. …off a spritesheet, in the SVG I just offset it so that the rest of the image is clipped away Code: https://github.com/serprex/openEtG/blob/master/svg.js If this seems off topic.. well I'm bad at being personal, & in response to a personal…
    comment by __s · 2017-04-20 · in Me and SVG
  14. My framework looks like this: https://github.com/serprex/openEtG/blob/master/dom.js The code that uses it looks like this: https://github.com/serprex/openEtG/blob/master/views/MainMen... The site looks like this: http://etg.dek.im I…
    comment by __s · 2016-10-12 · in You might not need JavaScript
  15. …went through canvas/pixijs but over time only a few views aren't DOM http://etg.dek.im for site http://github.com/serprex/openEtG for source It does a lot of dynamic content generation, which dom.js has proved sufficient for