Component-base games - Nintendo Game Development

Published on Friday, September 27, 2013

Description

Let's begin developing our game for the Nintendo Wii U console system. Since the Nintendo Web Framework is all about developing in straight HTML5 and JavaScript for a WebKit environment, we'll write the entire game using Google Chrome to test and iterate. Once we have the game complete, and you have an indie game developer or studio license with Nintendo, we'll just need to compile the final code base so it can be sent to Nintendo. From there, the games will be available from the eStore either for free, or at some cost if you would like to make money from Nintendo games you program. Component based game development is a way to write games in a very plug-and-play manner. Instead of gaming a very thick base class that everything in the game inherits from, and a super [poorly designed] object-oriented beast that does everything, we'll write very small and loose modules (components) that the various game entities can use freely. The idea is that a game entity object represents something within the game world, such as a player (the hero) or an enemy. Entities are composed of zero or more components, and each component is designed to do one thing, and one thing only. For example, an entity object can contain a render component that renders it to the screen, a movement component so we can move the entity around the game world, and a physics component so the entity follows the physics laws (logic) imposed by the component. The key point about components is that entities should be able to add and remove components at run time (as opposed to at compile time). This approach makes code easier to write, maintain, and test, since a component is isolated from everything else in the system.

Copyright © 2014-2017 EasyLearnTutorial. All rights reserved.