diff --git a/README.md b/README.md index c4ec3f2..7e8ce3a 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,8 @@ Navigate to where you put ``tromi_mobile.love`` in the File manager (the one you - [ ] Add a way to export ~~replay~~ data for Android > 11 - [x] Revert ``bitser`` with ``binser`` (if and only if I can make it works) -- [ ] Design a new on-screen buttons skin (the current one is come from [C₂₉H₂₅N₃O₅](https://github.com/C29H25N3O5), I am aware that it's not fit to Tromi's design language) +- [x] Design a new on-screen buttons skin (the current one is come from [C₂₉H₂₅N₃O₅](https://github.com/C29H25N3O5), I am aware that it's not fit to Tromi's design language) +- [ ] Updating on-screen control configuration screen - [ ] (Low priority) Design a new menu screen # License (GNU GPLv3) diff --git a/game/vctrl.lua b/game/vctrl.lua index d5b1ef6..32d846b 100644 --- a/game/vctrl.lua +++ b/game/vctrl.lua @@ -18,20 +18,32 @@ end ShowLoadingText('virtual key skin') local empty_quad -- A table containing quads used to draw icons for virtual control system. +-- local virtual_quad=setmetatable((function() +-- local t={} +-- local w=180 +-- empty_quad=gc_newQuad(0,0,1,1,5*w,7*w) +-- for i,name in next,{ +-- 'left','right','up','down','', +-- 'rotate_right','rotate_left','','','', +-- '','','','','', +-- '','','','','', +-- '','','menu_back','','', +-- '','','','','', +-- '','','','','menu_decide', +-- } do if #name>0 then t[name]=gc_newQuad((i-1)%5*w,math.floor((i-1)/5)*w,w,w,5*w,7*w) end end +-- t.rotate_right2, t.rotate_left2 = t.rotate_right, t.rotate_left +-- return t +-- end)(),{ +-- __index=function() return empty_quad end +-- }) local virtual_quad=setmetatable((function() local t={} local w=180 - empty_quad=gc_newQuad(0,0,1,1,5*w,7*w) + empty_quad=gc_newQuad(0,0,1,1,5*w,2*w) for i,name in next,{ - 'left','right','up','down','', - 'rotate_right','rotate_left','','','', - '','','','','', - '','','','','', - '','','menu_back','','', - '','','','','', - '','','','','menu_decide', - } do if #name>0 then t[name]=gc_newQuad((i-1)%5*w,math.floor((i-1)/5)*w,w,w,5*w,7*w) end end - t.rotate_right2, t.rotate_left2 = t.rotate_right, t.rotate_left + 'left','right','up','down','restart', + 'rotate_right','rotate_left','rotate_right2','rotate_left2','', + } do if #name>0 then t[name]=gc_newQuad((i-1)%5*w,math.floor((i-1)/5)*w,w,w,5*w,2*w) end end return t end)(),{ __index=function() return empty_quad end diff --git a/game/vctrlTexture.png b/game/vctrlTexture.png index cb09330..a0a3d11 100644 Binary files a/game/vctrlTexture.png and b/game/vctrlTexture.png differ diff --git a/game/vctrlTexture_legacy.png b/game/vctrlTexture_legacy.png new file mode 100644 index 0000000..cb09330 Binary files /dev/null and b/game/vctrlTexture_legacy.png differ