Page 1 of 2
Cell - An Action Game
Posted: Mon Sep 20, 2010 5:50 pm
by K-Bal
Re: Cell - An Action Game
Posted: Mon Sep 20, 2010 6:01 pm
by dandymcgee
Intriguing concept for sure. Interested in seeing where this goes.
Re: Cell - An Action Game
Posted: Mon Sep 20, 2010 6:10 pm
by TheAustech
K-Bal wrote:So Austech's thread inspired me to present a little bit of my project.
Good start, good start.
FUCKING AWESOME! :D
Re: Cell - An Action Game
Posted: Mon Sep 20, 2010 7:07 pm
by eatcomics
@austech-My thoughts exactly
Re: Cell - An Action Game
Posted: Mon Sep 20, 2010 8:32 pm
by LeonBlade
Amazing, this looks sick!
Re: Cell - An Action Game
Posted: Tue Sep 21, 2010 4:37 am
by K-Bal
Thank you guys
I have to do some house work and go to one lecture at university. Then I will continue with the deving
Re: Cell - An Action Game
Posted: Tue Sep 21, 2010 2:40 pm
by GroundUpEngine
K-Bal wrote:Thank you guys
I have to do some house work and go to one lecture at university. Then I will continue with the deving
Dude... sweeeeeeeeet project, you own.
Re: Cell - An Action Game
Posted: Tue Sep 21, 2010 3:57 pm
by K-Bal
Thanks
Game States
So basically the next part of my rewrite is the game state system. Currently I have a game class that holds a stack of game states which are singletons. The principles are basically taken from here:
http://gamedevgeek.com/tutorials/managi ... ates-in-c/. I'm not happy about some things:
1) Since states are singletons you obviously can't have more than one state of one type. It is fine for what I'm doing right now, but it looks messy to me.
2) States have startup and cleanup functions which are called on a state change. However, if a state triggers a state change, the change is instantanious. That means while the main function of the state is still running, it's cleanup function is called and the startup function of the other state is called. This is bad but should be quite easy to change.
3) To create a state I have to create a new class, let it derive from GameState and implement all the functions. It works well enough but it is kinda slow. I want to have something that allows rapid development of game structures, e.g. through scripting.
4) I'm wondering what would be the best way to share common data between states, e.g. the GUI. I currently keep that stuff as a member of the game class with get/set-methods. Don't ask me why, but somehow it does not feel right to me.
If you have ideas for one of those points, please post them. I have some thoughts on it, but I'd like to have some opinions and discussion before developing something that contains flaws.
Cheers,
Marius
Re: Cell - An Action Game
Posted: Tue Sep 21, 2010 6:59 pm
by XianForce
First off, the game looks great
. Interesting concept, I must say :D. And as for your post about state machines, I just want to throw in that I'm curious about that as well... Every time I code something, that seems to be the weakest point
. So any tips would be helpful for me as well :D
Re: Cell - An Action Game
Posted: Wed Sep 22, 2010 2:35 pm
by Milch
(To point 4)
I'm not sure if thats the best way, but I can tell you how I did it.
I made a signal system, so each gamestate ( in my case, each entitiy ) can recieve events from the main loop. ( kinda broadcast events - e.g pause,... )
Also, the same signal system is used to communicate between the different gamestates. ( e.g to pass the next map to load + the weapons the player has choosen )
Basically, I just passed byte arrays around.
Re: Cell - An Action Game
Posted: Wed Sep 22, 2010 4:35 pm
by eatcomics
Milch wrote:(To point 4)
I'm not sure if thats the best way, but I can tell you how I did it.
I made a signal system, so each gamestate ( in my case, each entitiy ) can recieve events from the main loop. ( kinda broadcast events - e.g pause,... )
Also, the same signal system is used to communicate between the different gamestates. ( e.g to pass the next map to load + the weapons the player has choosen )
Basically, I just passed byte arrays around.
I've been thinking about doing something similar... Qt inspired
Re: Cell - An Action Game
Posted: Thu Sep 23, 2010 3:45 am
by K-Bal
Milch wrote:(To point 4)
I'm not sure if thats the best way, but I can tell you how I did it.
I made a signal system, so each gamestate ( in my case, each entitiy ) can recieve events from the main loop. ( kinda broadcast events - e.g pause,... )
Also, the same signal system is used to communicate between the different gamestates. ( e.g to pass the next map to load + the weapons the player has choosen )
Basically, I just passed byte arrays around.
Interesting. Who is the owner of the data then? The receiving state?
Re: Cell - An Action Game
Posted: Thu Sep 23, 2010 12:26 pm
by Milch
In my system, the owner of the data is the sending state and the recieving state just parses the char array it gets.
So I can reuse the same array over and over again and don't have to worry inside the recieving function about deletion of the array,
because it gets freed inside the destructor from the sending state.
But I'm sure if coded properly, it can easily be changed so the recieving state is the owner.
Re: Cell - An Action Game
Posted: Fri Sep 24, 2010 5:17 am
by K-Bal
This really sounds like a bad excuse, but I have a visitor from Germany as a guest and I won't do anything until tuesday evening
Bear with me
Re: Cell - An Action Game
Posted: Sun Sep 26, 2010 2:29 am
by wearymemory
Oh, I get it now; that thing in your first video is a cell! I thought it was going to be like rockin' ragdoll tits or something, where you could brutally maul some awesome boobage. For some reason, I'm less attracted to the videos now, but nice progress nonetheless.