From f170553eba2bb1389ce1c80f97d2793b154581c3 Mon Sep 17 00:00:00 2001
From: NullBite <me@nullbite.com>
Date: Thu, 24 Mar 2022 20:21:09 -0400
Subject: [PATCH] Add start of UVManager code

---
 script.lua | 21 +++++++++++++++++++--
 1 file changed, 19 insertions(+), 2 deletions(-)

diff --git a/script.lua b/script.lua
index 44668f4..c75ee26 100644
--- a/script.lua
+++ b/script.lua
@@ -1,8 +1,8 @@
 -- vim: set foldmethod=marker ts=4 sw=4 :
 --- Initial definitions ---
 -- Texture dimensions --
-TEXTURE_WIDTH = 128
-TEXTURE_HEIGHT = 128
+TEXTURE_WIDTH = 256
+TEXTURE_HEIGHT = 256
 
 -- utility functions -- {{{
 
@@ -355,6 +355,17 @@ do
 end
 -- }}}
 
+-- UVManager {{{
+do
+	local mt={}
+	mt.__index=UVManager
+	UVManager = {
+		step=vectors.of{u=0, v=0},
+		offset=vectors.of{u=0, v=0}
+	}
+end
+-- }}}
+
 -- Parts, groups -- {{{
 HEAD=model.Head.Head
 VANILLA_PARTIAL={}
@@ -623,8 +634,11 @@ end
 
 -- }}}
 
+-- Tail animation/render code {{{
 
 
+-- }}}
+
 -- initialize values -- {{{
 function player_init()
 	old_state={}
@@ -691,6 +705,9 @@ function tick()
 end
 -- }}}
 
+-- Render function {{{
+-- }}}
+
 -- Enable commands -- {{{
 chat_prefix="$"
 chat.setFiguraCommandPrefix(chat_prefix)