歡迎大家參與【我的Go+語言初體驗】活動:
活動地址:【https://bbs.csdn.net/topics/603464006?utm_source=1594742339】
git地址:【網不行,傳不上去】傳上去再改
先上GIF

回敬【uiuing's】先生

起因:
這兩天忙,沒怎么弄,晚上領導帶著出去吃了個飯,回來也挺晚了,就寫了一個,原本想寫【按10秒】來著,但是彈出框楞是沒搞出來,就來了個【10秒真男人】,
代碼不多啊,先看一下結構:

結構層次很容易明白,跟著【demo】弄就行,但是沒有具體的檔案,摳起來不方便,
全域也就倆內容:


【index.gmx】
var (
butTen butTen
times int
)
run "res", {Title: "10秒真男人游戲"}
【butTen.spx】
onTouched => {
destroy
}
onStart => {
for{
for i := range 0:11{
times= i;
wait 0.01
clone
}
}
}
onClick => {
if times==10 {
say "真男人",2
}else{
say times,2.0
}
times=0
clone
}
希望【goplus】內容會越來越充實,

轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/375053.html
標籤:其他
