summaryrefslogtreecommitdiff
path: root/Scenes/Maps/World.gd
blob: 6f80a4e367338ec76590b48ec791c75d9f803c43 (plain)
1
2
3
4
5
6
7
8
9
10
11
extends "res://Scenes/Maps/Map.gd"


func _ready():
	super._ready()
	
	for i in 6:
		var enemy = preload("res://Scenes/Entities/Enemies/Enemy.tscn").instantiate()
		enemy.position = Vector2(randi_range(3, 10), randi_range(3, 10)) * 16
		enemy.health = 4*(i+1)
		$Areas/Main/TileMap.add_child(enemy)