trinket/main.go

29 lines
342 B
Go
Raw Normal View History

2017-10-08 22:17:53 -07:00
package main
//Characters
var (
player = Character{
Name: "Daniel",
Health: 100,
Damage: 60,
Spell: firearrow}
goblin = Character{
Name: "Goblin",
Health: 100,
Damage: 20}
firearrow = Spell{
Name: "Fire Arrow",
Damage: 50,
Cost: 10,
Level: 1,
Active: true}
)
func main(){
Battle(player, goblin, 1)
}