Inside The Game – Animation, Simulation, and Game

This article is second part of the series called as Inside The Game. For those, who are not familiar with Inside The Game series, this series will provide the articles and tutorials related to mechanisms and architectures of the game. Also, in this series, you will learn to think like a game developer. Now, if you have not read the first part of this series, please click here to read it. I am summarizing the first part here for those who have not read first part of the series. In the first part, the differences between a game and software were presented. The main difference between game and software is that software works on event-based systems, however game works on loop-based system. That loop is called game loop, and performs some tasks like processing inputs, simulating world, rendering etc directly or indirectly. For explanation of this mechanism, you can read part 1 Inside The Game – Game vs. Software.

Enough talking about first part, we already learnt about the differences about the game and software. You might remember that in last part, there was a very little part of information related to animation, simulation, and the game. Yeah!!! you got it right!!! This article is about the comparison between animation, simulation, and the game.

Why compare games and animations/simulations?

Well, game is not all about coding. Coding is just a part of the game, which plays an important role of assembling each component to form a game. But, we are here to discuss about the animations and simulations. The architecture behind any animation or simulation is almost same as the architecture of a game. Let’s see this in details here.

Animation/Simulation vs. Game

Animation is like a movie, which shows only the information which is already hard coded in it. For example, the most famous comic Tom & Jerry only shows what is in the story. We cannot change it according to our wish. You can say that its just readable data. Simulation is very close to the animation. The little difference is that you can also interact with simulation unlike in animation. But, there is very little control to the user to access and write the simulation. So, game is virtual word, where game developer provides access to the user to interact with the world and make decisions. The more access you give to the user, the more complex it becomes.

So, it was all general speaking about animations, simulations, the games. If we say from programming perspective, then I will only tell you one thing: Game is a controlled simulation. So, if you create a game, first create a simulation with some hard coded values, and then provide the control to the user. The advantage in this approach is that you can make the game in an easy way not making it more complex though. Following figure shows the concept graphically.

The figure above shows that animations are static and hard coded. When we provide some values to the animation, it becomes close to the simulation. And we provide the full control to the user to interact with the world, then it becomes the game. From coding point of view, the mechanism is same as explained in the last article about the game loop. Each category will have same game loop. The only difference is of Process Inputs. The animation/simulation will take inputs from their hard coded databases, and game will take it from the user. So, in this sense, it can be said that Game  is a controlled animation.

Thanks for reading this article. In the next part, you will read about the game composition. In which I will explain that how a game is composed and what are the important components to be implemented to develop a game. To read the next part, please click here.

I hope you are enjoying this series. Please provide your valuable feedback, suggestions, or comments, I would love to hear from your side.

Advertisements

About Wajahat Karim (GamyGuru)

I am Wajahat Karim living in Islamabad, Pakistan. I am currently a Facebook Game Developer at White Rabbit Studios, Islamabad. I am passionate about game development for Android, iPhone, browsers, computers and more. I just wanna say that "Me, The Entertainer, Coz Everyone Needs Entertainment .... :D"

Posted on July 14, 2012, in Game Engine, Games, GamyGuru, Inside The Game, Technology and tagged , , , , , , , . Bookmark the permalink. 10 Comments.

  1. Nice one dear,

  2. I simply want to mention I am very new to weblog and certainly savored you’re web-site. More than likely I’m planning to bookmark your website . You actually come with exceptional posts. Thanks for revealing your webpage.

  3. Hey there! This is my 1st comment here so I just wanted to give a quick shout out and say I really enjoy reading through your articles. Can you recommend any other blogs/websites/forums that deal with the same subjects? Thanks a ton!

  4. This kind of lovely weblog you’ve, glad I located it!??

  5. Regards for this post, I’m a big big fan of this site would like to go on updated.

  6. I do consider all of the concepts you’ve introduced in your post. They’re very convincing and will definitely work. Nonetheless, the posts are very brief for beginners. May just you please extend them a little from next time? Thanks for the post.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: