Skip to main content
14 events
when toggle format what by license comment
Aug 23, 2021 at 18:25 history edited Engineer CC BY-SA 4.0
deleted 2 characters in body
Jun 21, 2021 at 23:37 comment added Dimu Designs @Engineer There is a Javascript ECS framework that does just that.
Jun 21, 2021 at 20:36 comment added Engineer @RyanPeschel Hi Ryan, you're welcome! and thanks for your positive reception. In today's Javascript it is possible to do Option 2 using TypedArray. Specifically, see this section which outlines how to access complex data types in an otherwise "raw" buffer using views. Notice that this is not all as neatly wrapped up as classes, nor as simple as using array-of-struct in C, but it is possible.
Jun 21, 2021 at 19:46 comment added Ryan Peschel So, considering this is Javascript and I don't have much control over the memory layout, I assume you would also agree to go with the class-based approach then? (By the way, thanks for the amazing reply!)
Jun 21, 2021 at 18:38 history edited Engineer CC BY-SA 4.0
deleted 5 characters in body
Jun 21, 2021 at 17:57 history edited Engineer CC BY-SA 4.0
added 19 characters in body
Jun 21, 2021 at 17:52 history edited Engineer CC BY-SA 4.0
added 314 characters in body
Jun 21, 2021 at 17:44 history edited Engineer CC BY-SA 4.0
deleted 55 characters in body
Jun 21, 2021 at 17:37 history edited Engineer CC BY-SA 4.0
deleted 45 characters in body
Jun 21, 2021 at 17:32 history edited Engineer CC BY-SA 4.0
deleted 45 characters in body
Jun 21, 2021 at 17:26 history edited Engineer CC BY-SA 4.0
added 297 characters in body
Jun 21, 2021 at 17:21 history edited Engineer CC BY-SA 4.0
added 297 characters in body
Jun 21, 2021 at 17:13 history edited Engineer CC BY-SA 4.0
deleted 3 characters in body
Jun 21, 2021 at 17:07 history answered Engineer CC BY-SA 4.0