Initializing Smiley Catch

Non-platform specific questions.

Initializing Smiley Catch

Postby xenoruh » Mon Apr 18, 2005 8:41 pm

Hi, I spent along time trying to learn what the Initializegame actor does. I finally came to the conclusion that it does nothing, it was probably placed there just for fun. Have I missed something?
xenoruh
 
Posts: 14
Joined: Fri Apr 08, 2005 11:24 am
Location: Liecester UK
Score: 0 Give a positive score

Postby jazz_e_bob » Tue Apr 19, 2005 4:16 am

In this game the Initializegame actor initializes timer and sets the view actor coordinates. (See code under createActor.)

An Initialization actor is handy because you can keep all of your start-up variables in one place.
Controlling complexity is the essence of computer programming.
User avatar
jazz_e_bob
 
Posts: 742
Joined: Tue Jul 01, 2003 9:38 pm
Location: Bloke from Cockatoo Creek Australia
Score: 14 Give a positive score

Postby xenoruh » Tue Apr 19, 2005 6:11 am

I understand the theory, but when I tried it myself, it didn't work, when I tried that Smiley Catch game demo I found that, that didn't work either. It seems to be doing nothing. So much so that when I deleted it, the game ran as normal.
xenoruh
 
Posts: 14
Joined: Fri Apr 08, 2005 11:24 am
Location: Liecester UK
Score: 0 Give a positive score

Postby jazz_e_bob » Tue Apr 19, 2005 7:23 am

Tricky. :)

Well J4F wrote it. With any luck she'll add to this thread. :wink:

I just checked. You are right. Removing the actor and its region does no harm to the game. As far as I can tell neither are referenced by the program at any time.
Controlling complexity is the essence of computer programming.
User avatar
jazz_e_bob
 
Posts: 742
Joined: Tue Jul 01, 2003 9:38 pm
Location: Bloke from Cockatoo Creek Australia
Score: 14 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest