zero-to-mastery/ZTM-Quest

Spawning/adding more NPCs to map_city

Ouverte

#4 ouverte le 30 sept. 2024

 (2 commentaires) (0 réaction) (0 personne assignée)JavaScript (132 forks)auto 404
hacktoberfest

Métriques du dépôt

Stars
 (39 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

Currently, there is not much going on on each map. There are a few NPCs which get spawned in map_start which should give you an idea about how you can start.

We build a makeNpc function which you can use to spawn new NPCs easily and randomly. But feel free to add NPCs yourself by adding your own spritesheets.

Here you can find the makeNpc function.

And here how we added them.

Guide contributeur