29 lines
342 B
Go
29 lines
342 B
Go
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)
|
|
} |