Putting this together should be something you can achieve now. So, take the source code of the
main.lua file we created previously and modify it in order to make use of our
ResourceDefinitions entities. You’ll need to include
main.lua and then make good use of them. If you download the source code for this chapter from the website,
main.lua has already been modified to work with
Another exercise is to code a way to unload assets from
ResourceManager. This has also been done in the code for this chapter, which you can download from the website.
unload method is pretty important since it will be needed in order to actually free the memory reserved ...