Summary

In this chapter, we started out slowly by first understanding how to store the player's caught monsters. After that, we looked at a couple of database options before deciding on a cross-platform object relational mapping tool for SQLite, called SQLite4Unity3d. We wrapped the database into our new Inventory service and then wrote CRUD operations for our monster inventory items. From that, we determined we needed a better way to randomly generate monsters, so we developed a monster factory. That allowed us to loop back and complete the Catch scene by incorporating the monster factory for generating monsters and inventory service for storing caught monsters. With monsters being stored in the database, we then developed a new inventory scene ...

Get Augmented Reality Game Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.