@K-Bal: This is a hint for your near future marketing plan reconsideration. ("near future" = now, that you're reading this) lolwearymemory wrote: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.
Cell - An Action Game
Moderator: PC Supremacists
- cypher1554R
- Chaos Rift Demigod
- Posts: 1124
- Joined: Sun Jun 22, 2008 5:06 pm
Re: Cell - An Action Game
Re: Cell - An Action Game
Lol'd very hard. Hint has been recognized. Updates commencing again in two days. STOP.cypher1554R wrote:@K-Bal: This is a hint for your near future marketing plan reconsideration. ("near future" = now, that you're reading this) lolwearymemory wrote: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.
Re: Cell - An Action Game
Update
- Team
I am proud to announce that Tank has joined the development of Cell as a further programmer. I feel very honored because he is the maintainer of pySFML and the German SFML web page and he is also the developer of SFGUI, the greatest GUI lib for SFML ever created. He also supplied the project with a git repository and a redmine project management page. His fields of work will be GUI- and network-related aspects.
- Game States
I came to the conclusion that game states are mostly pretty static and therefore the system actually does not have to be as dynamic or scriptable as I thought. However, I will make some minor improvements in my new implementation, considering the changing of game states and I will also make game states non-singletons. I haven't come up with a solution for shared variables between game states though.
Stay tuned. There is going to be some progress
Marius
- Team
I am proud to announce that Tank has joined the development of Cell as a further programmer. I feel very honored because he is the maintainer of pySFML and the German SFML web page and he is also the developer of SFGUI, the greatest GUI lib for SFML ever created. He also supplied the project with a git repository and a redmine project management page. His fields of work will be GUI- and network-related aspects.
- Game States
I came to the conclusion that game states are mostly pretty static and therefore the system actually does not have to be as dynamic or scriptable as I thought. However, I will make some minor improvements in my new implementation, considering the changing of game states and I will also make game states non-singletons. I haven't come up with a solution for shared variables between game states though.
Stay tuned. There is going to be some progress
Marius
- GroundUpEngine
- Chaos Rift Devotee
- Posts: 835
- Joined: Sun Nov 08, 2009 2:01 pm
- Current Project: mixture
- Favorite Gaming Platforms: PC
- Programming Language of Choice: C++
- Location: UK
Re: Cell - An Action Game
Nice update!
Awesome!!!K-Bal wrote:developer of SFGUI
Re: Cell - An Action Game
Indeed! He is one of the best programmers I've got to know so far.GroundUpEngine wrote:Awesome!!!K-Bal wrote:developer of SFGUI
I discussed the game state system with Tank and we ended up with a very different approach, that is much less error prone. I will go into further details on this soon.
- rolland
- Chaos Rift Regular
- Posts: 127
- Joined: Fri Dec 21, 2007 2:27 pm
- Current Project: Starting an Android app soon
- Favorite Gaming Platforms: PS1, N64
- Programming Language of Choice: C++
- Location: Michigan, US
Re: Cell - An Action Game
First, I'd like to say that your project looks pretty amazing so far. Second, I'll be waiting for that update.K-Bal wrote:I discussed the game state system with Tank and we ended up with a very different approach, that is much less error prone. I will go into further details on this soon.
I'll write a signature once I get some creativity and inspiration...
Re: Cell - An Action Game
Thank you! I'll give a brief explanation of how it worksrolland wrote:First, I'd like to say that your project looks pretty amazing so far. Second, I'll be waiting for that update.K-Bal wrote:I discussed the game state system with Tank and we ended up with a very different approach, that is much less error prone. I will go into further details on this soon.
Game states are now self-managed and contain a full game loop (this is managed by the base class, so no need to reimplement it every time a state is created). There is no extern game state managing class anymore. There is still a game engine class, but it's only purpose is to provide shared data to all game states. Game states can spawn sub-states (e.g. main game spawns item inventory). Here is the interface:
Code: Select all
#pragma once
#include <Cell/GameEngine.hpp>
namespace sf
{
class Event;
}
class GameState
{
public:
// Construction and destruction
GameState( GameEngine& engine );
virtual ~GameState();
//
bool Run( GameState* parent = 0 );
protected:
// Allocate and deallocate Memory
virtual bool Init() { return true; }
virtual void Cleanup() { }
// Logic
virtual void Update( float time ) = 0;
virtual void Render() const = 0;
virtual void HandleEvent( const sf::Event& event ) = 0;
// State changing
void LaunchSubState( GameState* state, bool cleanup = true );
void LeaveState();
private:
// Non-Copyable
GameState( const GameState& );
GameState& operator=( const GameState& );
// Enums
enum Result
{
Continue = 0,
LaunchState,
Leave
};
// Member
GameState* mSubState;
bool mCleanUp;
Result mResult;
protected:
GameEngine& mEngine;
GameState* mParentState;
};
Game states are no singletons anymore.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.
State changes are now queued until the end of the game loop cycle.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.
This is unfortunately still the case, but I came to the conclusion that it is not really that bad since state structures are very static and normally there are only a few states.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.
Common data is in the GameEngine class. Didn't come up with a better solution but it doesn't seem that bad for now.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.
Re: Cell - An Action Game
Update
So there is some work happening behind the scenes I have to say that we produce almost no code, but that is not a bad thing. We have extremely fruitful discussions on the underlying software architectures. All class interfaces are reviewed several times to assure that long term reliability can be assured. We are not writing much code but what we write is by all team members considered to be solid. This has led to a component entity system which is much different from what was discussed in the other thread on this board. I will go into further details on this system after I have implemented and tested it thoroughly.
Tank is currently working very hard on rewriting SFGUI to boost it from absolutely awesome to unbelievably epic. Meanwhile my friend Dens is testing different physics engines to evaluate which one is most suitable for Cell. This is a very important point due to the fact that Box2D didn't really fit into our vision of a neat physics engine. So here is a small demo using ODE as a physics engine and so far it seems to be quite nice:
There is a lot more going on than this thread might reveal
Cheers,
Marius
So there is some work happening behind the scenes I have to say that we produce almost no code, but that is not a bad thing. We have extremely fruitful discussions on the underlying software architectures. All class interfaces are reviewed several times to assure that long term reliability can be assured. We are not writing much code but what we write is by all team members considered to be solid. This has led to a component entity system which is much different from what was discussed in the other thread on this board. I will go into further details on this system after I have implemented and tested it thoroughly.
Tank is currently working very hard on rewriting SFGUI to boost it from absolutely awesome to unbelievably epic. Meanwhile my friend Dens is testing different physics engines to evaluate which one is most suitable for Cell. This is a very important point due to the fact that Box2D didn't really fit into our vision of a neat physics engine. So here is a small demo using ODE as a physics engine and so far it seems to be quite nice:
There is a lot more going on than this thread might reveal
Cheers,
Marius
- dandymcgee
- ES Beta Backer
- Posts: 4709
- Joined: Tue Apr 29, 2008 3:24 pm
- Current Project: https://github.com/dbechrd/RicoTech
- Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
- Programming Language of Choice: C
- Location: San Francisco
- Contact:
Re: Cell - An Action Game
Great to hear, thanks for posting!
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches!
- Milch
- Chaos Rift Junior
- Posts: 241
- Joined: Sat Jul 11, 2009 5:55 am
- Programming Language of Choice: C++
- Location: Austria, Vienna
Re: Cell - An Action Game
Great update!
Already looking forward to your explanation of your component entitiy system
btw: You might also want to try out Bullet ( http://bulletphysics.org/wordpress/ )
Already looking forward to your explanation of your component entitiy system
btw: You might also want to try out Bullet ( http://bulletphysics.org/wordpress/ )
Follow me on twitter!
Re: Cell - An Action Game
Thank you guys!
Indeed, that looks very nice. Thanks for the hintMilch wrote:btw: You might also want to try out Bullet ( http://bulletphysics.org/wordpress/ )