2D Turrets and Zombie hordes in Random maps.

Started by Pakz, August 03, 2017, 19:01:43

Previous topic - Next topic

Pakz

I spend about a day working on this. I used some various older code and tried to make it work, which took a while(bugs and tweaking)

A random map is created of random width/height and filled with a number of turret. Zombies are spawned into the map and as times goes by more and more. The turrets turn towards the nearest zombie and shoot. They also shoot an invisible bullet to see if it hits a wall or not. They have random properties like turnspeed and reload speed.

I made no attempt to create graphics for it. I might put the code in a mojo3d project in the future.

The code is on my github (pakz001) in the monkeyx repository or on my monkey step by step blog.



Qube

Very nice, it's pretty hypnotic just watching it. Kinda reminds me of the turrets blasting all the aliens in Aliens Special Edition :)
Mac Studio M1 Max ( 10 core CPU - 24 core GPU ), 32GB LPDDR5, 512GB SSD,
Beelink SER7 Mini Gaming PC, Ryzen 7 7840HS 8-Core 16-Thread 5.1GHz Processor, 32G DDR5 RAM 1T PCIe 4.0 SSD
MSI MEG 342C 34" QD-OLED Monitor

Until the next time.