Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ron0studios committed Dec 31, 2021
1 parent 7a1f78f commit d746196
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions game.gd
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ func _physics_process(_delta):
func _on_StartButton_pressed():
$gentimelimit.wait_time = Genetic.max_life
$gentimelimit.start()
if genpassed == 0:
Genetic.generations = []
Genetic.generations.append(Genetic.randomgen())

for i in range(Genetic.gensize):
var newthing = preload("res://thing.tscn").instance()
newthing.cardata = Genetic.generations[-1][i]
Expand Down

0 comments on commit d746196

Please sign in to comment.