diff --git a/characters.go b/characters.go new file mode 100644 index 0000000..ead64e2 --- /dev/null +++ b/characters.go @@ -0,0 +1,20 @@ +package main + +var ( + player = Character{ + + Name: "Daniel", + Health: 100, + Damage: 30, + Spell: firearrow, + Weapons: [5]Weapon{Broadsword}, + Initiative: 4} + + goblin = Character{ + + Name: "Goblin", + Health: 100, + Damage: 20, + Weapons: [5]Weapon{GoblinClaw}, + Initiative: 3} +) diff --git a/main.go b/main.go index c641f59..d3e0599 100644 --- a/main.go +++ b/main.go @@ -7,26 +7,6 @@ import ( "time" ) -//Characters -var ( - player = Character{ - - Name: "Daniel", - Health: 100, - Damage: 30, - Spell: firearrow, - Weapons: [5]Weapon{Broadsword}, - Initiative: 4} - - goblin = Character{ - - Name: "Goblin", - Health: 100, - Damage: 20, - Weapons: [5]Weapon{GoblinClaw}, - Initiative: 3} -) - func main() { initGame() Battle(player, goblin)