jakubg1 / OpenSMCE

Game engine which allows creating a broad range of marble popper games.
MIT License
14 stars 11 forks source link

Partial module replacement #46

Closed jakubg1 closed 2 years ago

jakubg1 commented 3 years ago

The default main module file states that:

-- This is a default module file for OpenSMCE games.
-- You can override any, or all of the methods below.

However, this is only partially true. You can't make a module which replaces only one of the functions, you have to make a module which replaces all of the functions. This is because the default functions are ignored at all when anything is found in the game module. Solution: Always load the default module first and then replace them with functions from the game module.

jakubg1 commented 2 years ago

Game modules are to be deprecated and eventually removed, so this will not be implemented.