sasikalar / gamekit

Automatically exported from code.google.com/p/gamekit
0 stars 0 forks source link

Couple of Commits #254

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I just pushed a couple of commits. For people wondering how I could commit 33 
commits in about 10minutes, I'm using git-svn with which I can grab the 
svn-repository as git-repo. So I can work on my local repository and commit 
there and once I want to commit them back to svn, I just say: git svn dcommit...

Ok, enough of that. What did change?

1) Logic-Bricks:
every scene has it's own logicbrick-manager. this was necessary since we now 
have (thx, to dithi's patch) multiple-scene-support. But every scene called the 
global logicbrick-manager processing all bricks and for every scene=>speedup. 
More to read here:
http://code.google.com/p/gamekit/source/detail?r=1136

2) Fixed quite a lot issues about using and reusing groupinstances. There might 
be still some...

3) ProcessManager: I added a new manager (can be turned off via cmake)
The process-manager:
    Simple said, a processmanager (every scene has one) plays processes.
    A Process is a simple module that gets called every tick by the process-manager if the scene is active. 

A Process have following methods you can overwrite:
- init() - which gets called right before the process is executed. use this to 
(re)initalize values

- update(delta) - which gets called every tick giving the time passed in 
milisecs since last frame.     

- isFinished():bool - which gets called right after update to check if the 
process is done. if this returns true, the process is considered finished and 
gets automatically removed from the processmanager.

You can chain them up and/or let them run parallel. You can write them in c++ 
and lua and connect them together (if you made them available)

Actually these can be used for anything you want to be updated every tick but 
was especially intended for cutscene-like behaviours.
e.g. move an image in the screen, wait 2 secs, move it out,... 

Of course this isn't a complicated piece of code but I think this might be very 
useful,...

More to see in Samples/Runtime/Regression/TestLuaProcessmanager.blend / 
Engine/Process / Engine/Script/Api/gsProcess.*

I tested quite a lot and it should be stable.

4) updated the android-toolchain for cmake but nevertheless this also seems not 
to work for the latest ndk (8b).

...

Any questions?

Original issue reported on code.google.com by tomag...@googlemail.com on 3 Aug 2012 at 12:14

GoogleCodeExporter commented 9 years ago
Oh, wrote this with my other google-account... :D

Original comment by thomas.t...@googlemail.com on 3 Aug 2012 at 12:16

GoogleCodeExporter commented 9 years ago
Ok, there were some issues. And I also found some new one:
http://code.google.com/p/gamekit/issues/detail?id=257
http://code.google.com/p/gamekit/issues/detail?id=256

But those are not that serious. I'm on it...

Original comment by thomas.t...@googlemail.com on 4 Aug 2012 at 12:48

GoogleCodeExporter commented 9 years ago
Ok, those are fixed. I will leave this issue open for a while...

Original comment by thomas.t...@googlemail.com on 4 Aug 2012 at 8:06

GoogleCodeExporter commented 9 years ago

Original comment by thomas.t...@googlemail.com on 10 Aug 2012 at 10:49