# Defined at class level
const THEMES = [# Theme 1{
tileset = ’tileset_1′,
NPC_mid_boss = ‘folder_1/mid_boss’,
NPC_end_boss = ‘folder_1/end_boss’,# …},# Theme 2{
tileset = ’tileset_2′,
NPC_mid_boss = ‘folder_2/mid_boss’,
NPC_end_boss = ‘folder_2/end_boss’,# …},# …
]
func my_func():# Pick a random theme
var theme = THEMES[randi() % THEMES.size()]
tileset_to_use = theme.tileset
# …
/*** comm ***/
.site{
background-color: #eff3f5;
}
.hidden{
display: none;
}
/*** header ***/
.site-title{
line-height: 32px;
}
.menu-top ul > li > a{
font-size: 16px;
font-weight: 400;
}
.menu-top{
margin-left: 240px;
}
.logo{
height: 32px;
width: 150px;
}
/*** widget ***/
#bbp_search_submit{
display: none;
}
#bbp_search{
width: 100%;
padding: 10px;
border: 0;
}
/*** footer ***/
.site-footer{
border-top: 1px solid #fff;
}
.footer-right .logo{
height: 30px;
width: 124px;
}
/*** mobile ***/
Kei 抓狂,最后搞了个最便宜的阿里轻量云当测试机 ?