Compare commits

..

2 Commits

3 changed files with 11 additions and 23 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
.DS_Store
.vscode/settings.json

22
.vscode/settings.json vendored
View File

@ -1,22 +0,0 @@
{
"workbench.colorCustomizations": {
"activityBar.activeBackground": "#65c89b",
"activityBar.background": "#65c89b",
"activityBar.foreground": "#15202b",
"activityBar.inactiveForeground": "#15202b99",
"activityBarBadge.background": "#945bc4",
"activityBarBadge.foreground": "#e7e7e7",
"commandCenter.border": "#15202b99",
"sash.hoverBorder": "#65c89b",
"statusBar.background": "#42b883",
"statusBar.foreground": "#15202b",
"statusBarItem.hoverBackground": "#359268",
"statusBarItem.remoteBackground": "#42b883",
"statusBarItem.remoteForeground": "#15202b",
"titleBar.activeBackground": "#42b883",
"titleBar.activeForeground": "#15202b",
"titleBar.inactiveBackground": "#42b88399",
"titleBar.inactiveForeground": "#15202b99"
},
"peacock.color": "#42b883"
}

View File

@ -411,6 +411,11 @@ function newtitle()
end
},
bg.new{c=1},
bg.new{
y=28,
h=72,
c=5,
},
box,
toyphin.new(),
{
@ -615,7 +620,9 @@ function toyphin:update()
-- maybe boost
if dy > -4.125 then
new_y = 64 + ((dy + y - 64)/dy * -4.125)
dy = 4.125
dy = -4.125
else
dy = (dy - 4.125) / 2
end
else
-- brake
@ -636,6 +643,8 @@ function toyphin:update()
if dy < 4.125 then
new_y = 64 - ((dy - y + 64)/dy * 4.125)
dy = 4.125
else
dy = (4.125 + dy) / 2
end
else
--brake