Moved characters from main.go to characters.go
This commit is contained in:
parent
b0aaf57d0c
commit
d9460a7c59
20
characters.go
Normal file
20
characters.go
Normal file
@ -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}
|
||||
)
|
20
main.go
20
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user