-
Notifications
You must be signed in to change notification settings - Fork 5
Modules
To interact and truly understand Blur one must understand the concept of Modules. A module is an independent unit in a complex system. Think of it like a car. A car isn't just a car, a car is wheels, engine, steering wheel and other parts put together to construct what is known as a car. In this same context, a wheel can be considered a module, so can the engine and steering wheel. In the same way, creating a game consists of more than just the core idea.
Take Pac-Man for example. The game is more than just Pac-Man himself, you've also got stages, score, etc. As such, you can think of the preceding list as a collection of modules. Similarly, Blur uses the concept of Modules to construct a complex structure, which may be in the form of a game. Therefore, in order to turn an idea into a functioning game, one must think abstractly, breaking the idea into little pieces that Blur modules can handle.
However, Blur provides an API which allows for the creation of custom modules, meaning if you know your way around coding you can write your own modules that do unique things. This is especially useful for those who wish to just remove the boilerplate of having to write game code and instead focus on writing the real concept.
The concept is really simple once you understand it, modules are like cogwheels in a wrist-watch allowing the hands to tick, also important to note is that some cogwheels might depend on others being there. With time, you will be able to construct modules without having to refer to documentation.
Getting started on how to use modules can be both easy and challenging at times. Depending on what modules you’re using, you need to make sure you read the documentation written for it so that as a user you can understand the intended functionality. Failure to do so may lead in unexpected behaviour.
However, Blur strives to make your life easier. As such, documentation will always be provided for stable modules. Stable modules are ones that are meant for public use, at some point in time, a module may be accessible for the average user, but it may not be one that is meant to be used by the average user unless they know what they are doing. So be on the lookout for documented modules.
To get started with understanding Blur more, use the navigation menu. Alternatively, if you’re new to Blur and need more guidance check out the guides page.