hi dear Hivers! Since halloween is almost here, I wanted to create a mini videogame inspired by horror movies monsters, so I've made a zombies shooter!
So I started drawing the background, I'm drawing it in Adobe Illustrator with the mouse using vectors, this tree will be repeated to create an infinite background.
¡Hola queridos Hivers! Como Halloween ya casi está aquí, quería crear un mini videojuego inspirado en los monstruos de las películas de terror, ¡así que hice un juego de disparos de zombies!
Entonces comencé a dibujar el fondo, lo estoy dibujando en Adobe Illustrator con el mouse usando vectores, este árbol se repetirá para crear un fondo infinito.
and of course, I have to draw the player! you will have a shotgun, like in that first person shooter games!
y por supuesto, ¡tengo que dibujar al jugador! ¡Tendrás una escopeta, como en los juegos de disparos en primera persona!
and we need our enemy!
¡Y necesitamos a nuestro enemigo!
after drawing all the animation sprites, we are ready for the Javascript part!
Let's code!
First I have to repeat the trees in the background, so you can move infinitely like in a circular movement. So if you are in the last tree scene, you will be teleported to the first one.
después de dibujar todos los sprites de animación, ¡estamos listos para la parte de Javascript!
¡Vamos a programar!
Primero tengo que repetir los árboles del fondo, para que puedas moverte infinitamente como en un movimiento circular. Entonces, si estás en la última escena del árbol, serás teletransportado a la primera.
the zombies can appear randomly in the spots between the trees!
¡Los zombis pueden aparecer al azar en los lugares entre los árboles!
I'm also adding a counter, if you shoot twice, the status will be a "reload" animation.
También estoy agregando un contador, si disparas dos veces, el estado será una animación de "recargar".
and I had to add a scale transformation to the zombies, so it gives the illusion that they are chasing you! if the scale is too big, the zombie animation turns into attack mode.
y tuve que agregar una transformación de escala a los zombis, ¡así da la ilusión de que te están persiguiendo! si la escala es demasiado grande, las animaciones de zombis se convierten en modo de ataque.
but if you shoot the gun when you are close to the zombie position, then he will be killed!
pero si disparas el arma y estás cerca de la posición de zombi, ¡entonces lo matarás!
everytime the zombie attacks you, you will lose life, so if your life counter turns below zero, you will die.
cada vez que el zombi te ataque, perderás vida, así que si tu contador de vida cae por debajo de cero, morirás.
I hope you like it!
you can play or collect the NFT here!:
¡Espero que te guste!
¡puedes jugar o coleccionar el NFT aquí!:
https://teia.art/objkt/791041