About the lifebar problem could you upload the error log?
yes sure..here's the thing I've got from log file located in debug folder after crash:
runtime error: index out of range
goroutine 1 [running, locked to thread]:
github.com/yuin/gopher-lua.(*LState).PCall.func1(0x90dcf0, 0xc000218000, 0xc0086c7c00, 0x0, 0x0, 0x0)
C:/Ikemen_GO/go/src/github.com/yuin/gopher-lua/state.go:1634 +0x650
panic(0x88e860, 0x7cb990)
C:/Dev/Go/src/runtime/panic.go:513 +0x1c7
main.(*Fnt).DrawText(0xc00bd4ed90, 0x7b9810, 0x1, 0x43358000434d0000, 0x3f0000003f000000, 0x100000000)
C:/Ikemen_GO/src/font.go:493 +0x479
main.(*Layout).DrawText(0xc00c3d64fc, 0x0, 0x3f800000, 0x7b9810, 0x1, 0xc00bd4ed90, 0x100000000)
C:/Ikemen_GO/src/common.go:611 +0x119
main.(*PowerBar).draw(0xc00c3d6000, 0xf350000, 0x3f80000000000000, 0x7d9d38, 0xa, 0xa)
C:/Ikemen_GO/src/lifebar.go:255 +0x398
main.(*Lifebar).draw(0x7d9d18, 0x0)
C:/Ikemen_GO/src/lifebar.go:1196 +0x2c8
main.(*System).draw(0x7d3b20, 0x80000000, 0xc03f800000)
C:/Ikemen_GO/src/system.go:1215 +0x757
main.(*System).fight(0x7d3b20, 0xc000014900)
C:/Ikemen_GO/src/system.go:1589 +0xec5
main.systemScriptInit.func61.2(0x18, 0x90df70, 0x7d3b20)
C:/Ikemen_GO/src/script.go:853 +0x23e
main.systemScriptInit.func61(0xc000218000, 0x0)
C:/Ikemen_GO/src/script.go:897 +0x3cd
github.com/yuin/gopher-lua.callGFunction(0xc000218000, 0x0, 0xc001739801)
C:/Ikemen_GO/go/src/github.com/yuin/gopher-lua/vm.go:136 +0x47
github.com/yuin/gopher-lua.init.3.func26(0xc000218000, 0x7c000601, 0xc00020e000, 0x0)
C:/Ikemen_GO/go/src/github.com/yuin/gopher-lua/vm.go:717 +0x39b
github.com/yuin/gopher-lua.mainLoop(0xc000218000, 0xc00020e000)
C:/Ikemen_GO/go/src/github.com/yuin/gopher-lua/vm.go:31 +0xe1
github.com/yuin/gopher-lua.(*LState).callR(0xc000218000, 0x0, 0xffffffffffffffff, 0x0)
C:/Ikemen_GO/go/src/github.com/yuin/gopher-lua/state.go:876 +0x24e
github.com/yuin/gopher-lua.(*LState).Call(0xc000218000, 0x0, 0xffffffffffffffff)
C:/Ikemen_GO/go/src/github.com/yuin/gopher-lua/state.go:1613 +0x4f
github.com/yuin/gopher-lua.(*LState).PCall(0xc000218000, 0x0, 0xffffffffffffffff, 0x0, 0x979040, 0xc000043140)
C:/Ikemen_GO/go/src/github.com/yuin/gopher-lua/state.go:1676 +0xe1
github.com/yuin/gopher-lua.(*LState).DoFile(0xc000218000, 0xc000068900, 0xf, 0x979380, 0xc0000d12f0)
C:/Ikemen_GO/go/src/github.com/yuin/gopher-lua/auxlib.go:394 +0xc9
main.main()
C:/Ikemen_GO/src/main.go:235 +0x15c2
stack traceback:
[G]: in function 'game'
.\script\select.lua:678: in function 'f_selectSimple'
script/main.lua:1627: in function 'f_mainMenu'
script/main.lua:2120: in main chunk
[G]: ?