Skip to main content

Meow Rush - Object Pooling Pattern


From the same project, this focuses on the object pooling pattern which makes a "pool" or group of objects and allows the program or game to grab any of the objects from the pool. If the objects are removed or destroyed from the view or scene then they will simply be added right back into the pool to be reused later. 

This is the script used for creating the tower generator using the object pooling method.


This is the script for "breaking" the platforms in the tower so that they can be returned to the pool. The platforms use a trigger collider to activate this script.


This video shows the platforms being taken out of the pool and all being removed once the scene ends.





Comments

Popular posts from this blog

Escape the Cosmos Video Game Project

Escape the Cosmos is a 2D side-scrolling platformer made during CIS 485, Game Development and Design. This was a semester long project and the parameters of the project were loose, basically the only goal was to make a working game. Every choice and addition was made entirely by our team.  The game features various elements such as platforming, shooting, and quizzes for a bit of an educational potential. There were up to three levels planned originally but only one was fully completed by the end of the projects timespan. The purpose of this project was to see everything that goes into video game design from the actual programming to planning and allocating tasks to group members.  The Main Menu Gameplay Clips

Meow Rush Platformer Project - Command Pattern

This project was made in CIS 414. It is a 2D vertical tower climbing platformer game. The purpose of the project it to implement various object oriented patterns into either a video game or a website. The video and images below are showcasing the Command Pattern which does allow actions to be represented as objects. The pattern is used to take the player's actions and translates it to the shadow enemy which will copy those movements on a second or two delay.