Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Rain_Effect

7
Posts
3
Topics
1
Followers
28
Following
A member registered Dec 30, 2016

Recent community posts

(Alpha 6)

System buttom is not useful


(Alpha 6)

Can't build/destory/repair at the market up and down


TIC-80 community · Created a new topic A key test project
(2 edits)

This project can be used to test the keys.
Maybe you'll need it.

--Key Test Project
--By Rain_Effect
local x=70
local y=25
local btnLabel={"Up","Down","Left","Right","Btn A","Btn B"}
function TIC()
    cls(0)
    print("Key Test Project",x,y)
 print("Btn",x,y+15,2)
    print("1P",x+50,y+15,2)
    print("2P",x+80,y+15,2)
    for i=1,6 do
     print(btnLabel[i],x,y+(i+1)*10+5)
        if btn(i-1) then
      print("On",x+50,y+(i+1)*10+5,11)
        else
      print("Off",x+47,y+(i+1)*10+5,6)
        end
        if btn(i+7) then
      print("On",x+80,y+(i+1)*10+5,11)
        else
      print("Off",x+77,y+(i+1)*10+5,6)
        end
    end
end

Thanks

Now the keys are not easy to click. [Only 2P> btn(8..13)]

Can make a command to set up button?

E.g: setBtn(id, key)

OK, I created it.

(1 edit)

My Android phone is connected to the keyboard.

I can't use other than the arrow keys to control when I running my code.

And if I switch the apps, when I open the TIC again, it will not be able to input, only can restart.