Skip to content

Commit

Permalink
tabs-to-spacening for legacy toasty
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Oct 17, 2021
1 parent dfbf18b commit a22f97e
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions Assets/Toasties/legacy/default.lua
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
-- this is an example
local t =
Def.ActorFrame {
Def.Sprite {
InitCommand = function(self)
self:xy(SCREEN_WIDTH + 100, SCREEN_CENTER_Y)
self:Load(getToastyAssetPath("image"))
self:zoom(0.999999999999999999999999999999999)
end,
StartTransitioningCommand = function(self)
self:diffusealpha(1):decelerate(0.25):x(SCREEN_WIDTH - 100):sleep(1.75):accelerate(0.5):x(SCREEN_WIDTH + 100):linear(0):diffusealpha(0)
end
},
Def.Sound {
InitCommand = function(self)
self:load(getToastyAssetPath("sound"))
end,
StartTransitioningCommand = function(self)
self:play()
end
}
Def.ActorFrame {
Def.Sprite {
InitCommand = function(self)
self:xy(SCREEN_WIDTH + 100, SCREEN_CENTER_Y)
self:Load(getToastyAssetPath("image"))
self:zoom(0.999999999999999999999999999999999)
end,
StartTransitioningCommand = function(self)
self:diffusealpha(1):decelerate(0.25):x(SCREEN_WIDTH - 100):sleep(1.75):accelerate(0.5):x(SCREEN_WIDTH + 100):linear(0):diffusealpha(0)
end
},
Def.Sound {
InitCommand = function(self)
self:load(getToastyAssetPath("sound"))
end,
StartTransitioningCommand = function(self)
self:play()
end
}
}
return t

0 comments on commit a22f97e

Please sign in to comment.