I began by deleting the files created by the Leadwerks Project Manager. I simply want to start with my files and entry point.
I created "Scavenge.h" and "Scavenge.cpp" which will serve a few purposes in the future, but is also my entry point.
Essentially similar to the provided "App" class, this is a simple class that creates the window, creates the context, creates the world, and then updates the time, updates the world, renders the world, and updates the context. A simple version of this is provided by the Leadwerks API found here: https://www.leadwerks.com/learn?page=API-Reference_Object_World_Create
I am searching a reliable way to share the "Game" class, so for now, here is a screen-shot of the header:
Compiling, no errors, and the window launches. If I click the close button on the window or hit the escape key the program ends without issue. I am ready to continue, but I have some thinking and planning to do, and that may involve something similar to the game "cartridge" idea.
No comments:
Post a Comment