Commit graph

12 commits

Author SHA1 Message Date
1cb30034f8 [oden] Move scaling entirely into JavaScript
Now the game controls its own resolution. We might want to further
copy Love2D and generate resize events, I don't know.
2023-09-02 09:58:58 -07:00
6200ed31b6 [oden-js] Fix cross-platform conversions
Lots of places were assuming that bool and c int were interchangeable,
but of course on windows a c int is 32 bits and that confused
everybody. Tighten up the definitions in static-functions, which
causes us to fix boolean conversion. Also add tests for boolean
conversion, and also add better debug formatting of JS values.
2023-08-19 07:38:15 -07:00
17805fa4a6 [oden] Garbage assets, need to rewrite to IO 2023-06-27 17:16:37 -07:00
82c386fd0f [oden-js] Fix bug with repeated arguments 2023-06-24 23:02:43 -07:00
3968aabdb1 [oden] Load typescript kinda 2023-06-24 14:21:47 -07:00
db8a5f8eed [oden][oden-js] Rework modules
Damn this is a lot
2023-06-24 08:45:39 -07:00
c7903382a0 [oden-js] Convert Option<> 2023-06-23 05:48:26 -07:00
af12dccd5d [oden-js] Functions up to 8 args 2023-06-23 05:42:05 -07:00
c574fd8cb8 [oden] Native Modules 2023-06-21 06:19:14 -07:00
83a0950153 [oden-js] TryFromValue for Value 2023-06-20 06:17:34 -07:00
9f808cea31 [oden] The big lifetime removal
It turns out that rust can't really reason about the relationship
between the runtime lifetime and the context lifetime in a way that is
actually usable. This removes the lifetime stuff in favor of reference
counting the runtime itself, via a block that we embed in the
pointer. This, I think, it the least worst option here.
2023-06-19 08:28:26 -07:00
898b1fe129 [oden] Grab my incomplete QuickJS wrapper 2023-06-18 06:31:37 -07:00