optimize texture sampling

This commit is contained in:
asrael 2025-11-15 14:23:53 -06:00
parent 736af38518
commit b2682a2d40
3 changed files with 26 additions and 21 deletions

View file

@ -1,28 +1,27 @@
(local pxl8 (require :pxl8))
(var world nil)
(local bob-amount 4.0)
(local bob-speed 8.0)
(var bob-time 0)
(var cam-x 1000)
(var cam-y 64)
(var cam-z 1000)
(var cam-yaw 0)
(var cam-pitch 0)
(var bob-time 0)
(var velocity-y 0)
(var grounded? true)
(var land-squash 0)
(local move-speed 200)
(local turn-speed 2.0)
(local bob-speed 8.0)
(local bob-amount 4.0)
(local max-pitch 1.5)
(var cam-yaw 0)
(local cell-size 64)
(local grid-size 32)
(local gravity -800)
(local jump-force 175)
(local grid-size 32)
(var grounded? true)
(local ground-y 64)
(local jump-force 175)
(var land-squash 0)
(local land-squash-amount -4)
(local land-recovery-speed 20)
(local max-pitch 1.5)
(local move-speed 200)
(local turn-speed 2.0)
(var velocity-y 0)
(var world nil)
(fn init []
(set world (pxl8.world_new))