Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Vec2 = {} do
- Vec2.__index = Vec2
- function Vec2.New(x,y)
- return setmetatable({X=x,Y=y},Vec2)
- end
- end
- local Sprite = {} do
- function Sprite.New(image)
- return setmetatable({Image = image}, Sprite)
- end
- function Sprite:Draw(pos)
- term.setCursor(pos.X, pos.Y)
- end
- end
- local image =
- [[
- ###_____###
- ##| . . |##
- ##| === |##
- ##|_] [_|##
- ]]
- ..
- [[
- ###_____###
- ##| . . |##
- ##| === |##
- ##|_] --'##
- ]]
- ..
- [[
- ###_____###
- ##| . . |##
- ##| === |##
- ##'-- [_|##
- ]]
- ..
- [[
- ###_____###
- ##| |##
- ##| I |##
- ##|_] [_|##
- ]]
- ..
- [[
- ###_____###
- ##| |##
- ##| I |##
- ##|_] --'##
- ]]
- ..
- [[
- ###_____###
- ##| |##
- ##| I |##
- ##'-- [_|##
- ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement