Page 8 of 19

Re: Blade Brothers Engine: Creating my first 2D Game Engine

Posted: Mon Apr 12, 2010 9:28 am
by lotios611
Live-Dimension wrote:What's inflexible about it? you have drop-in OpenGL any-time, I believe it's made upon OGL. You have access to shaders. You wouldn't be doing much more if you did it in 2D OGL. You can always use bass if you really need to instead of the audio, but from what I've seen its good enough.
I've never looked into it that much, I guess I don't like it much because I'm used to SDL. With this much talk about it though, I might switch.

Re: Blade Brothers Engine: Creating my first 2D Game Engine

Posted: Fri May 07, 2010 11:19 pm
by LeonBlade





Re: Blade Brothers Engine: Creating my first 2D Game Engine

Posted: Sat May 08, 2010 12:01 am
by LeonBlade
New video still processing, let me know what you think.
And let me know what I should do with the entity collision.

Re: Blade Brothers Engine: Creating my first 2D Game Engine

Posted: Sat May 08, 2010 6:00 pm
by eatcomics
For the entity collision/second layer collision, just check if your y is lower than the other entities y, if it is, draw yourself over it :D It may take a little more code than simply drawing the top first, but you can figure it out I'm sure :D

Re: Blade Brothers Engine: Creating my first 2D Game Engine

Posted: Sat May 08, 2010 10:07 pm
by LeonBlade
eatcomics wrote:For the entity collision/second layer collision, just check if your y is lower than the other entities y, if it is, draw yourself over it :D It may take a little more code than simply drawing the top first, but you can figure it out I'm sure :D
Haha, I actually fixed all the problems in this video already ;)
And yes, I did sorting based on Y position.
All entities are stored in a vector that stores entity pointers.
So I used this to sort them...

Code: Select all

Entity::EntityControl.SortEntities();

...

struct EntitySort
{
	bool operator() (Entity* entity1, Entity* entity2) 
	{
		return (entity1->position.y < entity2->position.y);
	}
} SortY;

...

void Entity::SortEntities()
{
	std::sort(Entity::EntityStack.begin(), Entity::EntityStack.end(), SortY);
}

Re: Blade Brothers Engine: Creating my first 2D Game Engine

Posted: Tue May 11, 2010 12:50 pm
by LeonBlade

Now, with map editor :)
I'll be posting my entity collision issues at a later time.
I'm about to tackle a HUGE feature in the editor that I'm going to leave a surprise for now ;)

However, I will say that I want to enhance the UI a bit, because it's a bit bland and very weak at the moment.
And I'd like to change how the map scrolls a bit better as well, and I'll probably make the editor bigger as well.

Let me know what you think.

Re: Blade Brothers Engine: Creating my first 2D Game Engine

Posted: Tue May 11, 2010 2:20 pm
by dandymcgee
That editor looks slick.

Re: Blade Brothers Engine: Creating my first 2D Game Engine

Posted: Tue May 11, 2010 3:33 pm
by LeonBlade
Thanks, I'd like to make it look better though :roll:

Re: Blade Brothers Engine: Creating my first 2D Game Engine

Posted: Tue May 11, 2010 6:24 pm
by eatcomics
Cool :D

Re: Blade Brothers Engine: Creating my first 2D Game Engine

Posted: Wed May 12, 2010 5:29 am
by LeonBlade
Thank you :)

I'll give a hint to what I want to add in the editor.
It has something to do with the tiles...

Re: Blade Brothers Engine: Creating my first 2D Game Engine

Posted: Wed May 12, 2010 6:44 am
by Bakkon
For collision of things like entities and trees, you could try having their collision bounds be a circle at their base. Then if you walk into something offset a bit, you can have your character slightly slide over to be able to get around the object, ala Zelda: Link to the Past.
LeonBlade wrote: I'll give a hint to what I want to add in the editor.
It has something to do with the tiles, and algorithms... fucking complex ones too...
Selecting multiple units of the tile sheet? :P

Re: Blade Brothers Engine: Creating my first 2D Game Engine

Posted: Wed May 12, 2010 8:39 am
by cypher1554R
LeonBlade wrote:Let me know what you think.
Your editor looks like an editor, which means you're on a good path. :) Keep it up!

Re: Blade Brothers Engine: Creating my first 2D Game Engine

Posted: Wed May 12, 2010 6:55 pm
by LeonBlade
Bakkon wrote:For collision of things like entities and trees, you could try having their collision bounds be a circle at their base. Then if you walk into something offset a bit, you can have your character slightly slide over to be able to get around the object, ala Zelda: Link to the Past.
LeonBlade wrote: I'll give a hint to what I want to add in the editor.
It has something to do with the tiles, and algorithms... fucking complex ones too...
Selecting multiple units of the tile sheet? :P
No, that's easy ;)

Re: Blade Brothers Engine: Creating my first 2D Game Engine

Posted: Wed May 12, 2010 7:57 pm
by GroundUpEngine
cypher1554R wrote:Your editor looks like an editor
:lol: ;)

Re: Blade Brothers Engine: Creating my first 2D Game Engine

Posted: Thu May 13, 2010 3:01 am
by LeonBlade

No audio, lets see if you can figure it out ;)