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 :
|
-- vim: set foldmethod=marker ts=4 sw=4 :
|
||||||
--- Initial definitions ---
|
--- Initial definitions ---
|
||||||
-- Texture dimensions --
|
-- Texture dimensions --
|
||||||
TEXTURE_WIDTH = 128
|
TEXTURE_WIDTH = 256
|
||||||
TEXTURE_HEIGHT = 128
|
TEXTURE_HEIGHT = 256
|
||||||
|
|
||||||
-- utility functions -- {{{
|
-- utility functions -- {{{
|
||||||
|
|
||||||
@ -355,6 +355,17 @@ do
|
|||||||
end
|
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 -- {{{
|
-- Parts, groups -- {{{
|
||||||
HEAD=model.Head.Head
|
HEAD=model.Head.Head
|
||||||
VANILLA_PARTIAL={}
|
VANILLA_PARTIAL={}
|
||||||
@ -623,8 +634,11 @@ end
|
|||||||
|
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
|
-- Tail animation/render code {{{
|
||||||
|
|
||||||
|
|
||||||
|
-- }}}
|
||||||
|
|
||||||
-- initialize values -- {{{
|
-- initialize values -- {{{
|
||||||
function player_init()
|
function player_init()
|
||||||
old_state={}
|
old_state={}
|
||||||
@ -691,6 +705,9 @@ function tick()
|
|||||||
end
|
end
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
|
-- Render function {{{
|
||||||
|
-- }}}
|
||||||
|
|
||||||
-- Enable commands -- {{{
|
-- Enable commands -- {{{
|
||||||
chat_prefix="$"
|
chat_prefix="$"
|
||||||
chat.setFiguraCommandPrefix(chat_prefix)
|
chat.setFiguraCommandPrefix(chat_prefix)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user