Add start of UVManager code
This commit is contained in:
parent
8da3f6267f
commit
f170553eba
21
script.lua
21
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user