Game Development Reference
In-Depth Information
Conclusion
In this chapter we've implemented a complete weapon system. This includes the full implementation
of a punch and gun weapon, as well as a system for switching between weapons after both have
been collected. By now, your trigger finger is probably getting itchy to shoot some baddies and test
the damage code. We'll see that in action in the upcoming chapter as we explore intelligent enemies.
By now, you should be able to do the following:
Create weapon prefabs
Understand object orientation and inheritance
Understand how to create base classes and derived classes
Code weapons from a common abstract base class
Create basic sprite animation
Create orthographic cameras
Understand how to control camera depth and rendering
Understand how to achieve pixel-perfection with orthographic size
Create weapon cycling with polymorphism
Understand how using SendMessage creates object independence
Create classes that work nicely with the event system
 
Search WWH ::




Custom Search