sm64coopdx/docs/lua/examples
djoslin0 bf3127b3df
Some checks are pending
Build coop / build-linux (push) Waiting to run
Build coop / build-steamos (push) Waiting to run
Build coop / build-windows-opengl (push) Waiting to run
Build coop / build-windows-directx (push) Waiting to run
Build coop / build-macos-arm (push) Waiting to run
Build coop / build-macos-intel (push) Waiting to run
Add bytestring packets for mods to use (#866)
Adds network_send_bytestring(), network_send_bytestring_to(), and
HOOK_ON_PACKET_BYTESTRING_RECEIVE

This is as close to raw bytes as you can get in lua. It allows you
to efficiently pack as much data as possible into each packet.

The existing network_send() was built for ease of use, but is quite
inefficient when you want to send a lot of data. Each number or int
field in the table amounts to 9 bytes for the key and 9 bytes for the
value. (amounting to 18 bytes per value). Whereas with the new method
you can pack that information into 1, 2, 4, or 8 bytes depending on
your type's size.

---------

Co-authored-by: MysterD <myster@d>
2025-06-30 11:24:39 +10:00
..
audio-test Various audio fixes, updated audio example 2022-05-08 04:32:18 -07:00
big-paddle Shorten include paths by removing unnecessary "src/" 2024-04-17 17:28:38 -04:00
custom-animations-dynos extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
custom-animations-lua Custom animation examples (#392) 2023-05-14 19:16:03 -07:00
custom-box-model extract assets from rom at runtime (#4) 2024-03-23 16:11:30 -04:00
custom-hud-texture Add custom hud texture example 2022-05-06 22:06:35 -07:00
custom-level Shorten include paths by removing unnecessary "src/" 2024-04-17 17:28:38 -04:00
gfx-vtx-demo Gfx/Vtx improvements (#756) 2025-04-24 14:03:17 +10:00
koopa-player-model Added custom player model example 2022-03-17 21:41:46 -07:00
lighting-engine-demo Lighting Engine: Awesome Edition 2025-06-29 12:08:04 -04:00
texture-override Fix texture override example 2024-02-21 14:57:28 -05:00
behavior-add-to-goomba.lua Made adding to behaviors possible in Lua 2022-03-05 01:29:24 -08:00
behavior-ball.lua Made adding to behaviors possible in Lua 2022-03-05 01:29:24 -08:00
behavior-replace-goomba.lua Made adding to behaviors possible in Lua 2022-03-05 01:29:24 -08:00
behavior-surface-collisions.lua Added the ability to set surface collisions on custom behaviors 2022-03-09 23:02:20 -08:00
bytestring-packet-example.lua Add bytestring packets for mods to use (#866) 2025-06-30 11:24:39 +10:00
Custom Text Example.lua Add files via upload (#286) 2024-09-01 13:43:08 -04:00
hud.lua Update & fix issues with #184 and #205 (#215) 2024-07-16 11:58:02 -04:00
instant-clip.lua Add get/set_environment_region (#56) 2022-04-05 15:53:16 -07:00
low-gravity.lua Moved low gravity and mario run to examples 2022-04-13 01:38:32 -07:00
Mario-Run.lua Update 4 example mods (#205) 2024-07-13 14:46:41 -04:00
Moonjump.lua Update 4 example mods (#205) 2024-07-13 14:46:41 -04:00
spawn-stuff.lua Add spawn-stuff lua example 2022-02-26 00:03:21 -08:00
water-level.lua Update 4 example mods (#205) 2024-07-13 14:46:41 -04:00