Blade Brothers Engine: Creating my first 2D Game Engine

Anything related in any way to game development as a whole is welcome here. Tell us about your game, grace us with your project, show us your new YouTube video, etc.

Moderator: PC Supremacists

Post Reply
User avatar
LeonBlade
Chaos Rift Demigod
Chaos Rift Demigod
Posts: 1314
Joined: Thu Jan 22, 2009 12:22 am
Current Project: Trying to make my first engine in C++ using OGL
Favorite Gaming Platforms: PS3
Programming Language of Choice: C++
Location: Blossvale, NY

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

Post by LeonBlade »

Alright, sounds fine to me.
I just need a way to load in sprites and a way to index them, I could just do this alphabetically... meh...

I was structuring the events based on Advance Map the Pokemon map editor :lol:
I think it will do well... but I just need to do work today, I was busy all yesterday :nono:

So yeah... anyways I should stop thinking ahead else I wont get anywhere...
UI elements later if I find the time.
There's no place like ~/
User avatar
avansc
Respected Programmer
Respected Programmer
Posts: 1708
Joined: Sun Nov 02, 2008 6:29 pm

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

Post by avansc »

if your "string" members are char*, you can easily just dump the length into the bin file, then dump the string, when you read you just read the length in, then you know how many bytes to read in for the "sting". alternatively you can have you strings be char[20] or how ever long you needed, that will automatically dump 20 bytes into the file and you just read 20 bytes in. many many old games did it this way. altho i probably would not choose to do that.
Some person, "I have a black belt in karate"
Dad, "Yea well I have a fan belt in street fighting"
User avatar
LeonBlade
Chaos Rift Demigod
Chaos Rift Demigod
Posts: 1314
Joined: Thu Jan 22, 2009 12:22 am
Current Project: Trying to make my first engine in C++ using OGL
Favorite Gaming Platforms: PS3
Programming Language of Choice: C++
Location: Blossvale, NY

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

Post by LeonBlade »

Hey everyone.

I haven't posted much on the project because... uh... it hasn't gone anywhere...
I've been stuck not knowing what to do for quite some time, and I was talking with Live-Dimension about how I felt like I was doing something wrong with the way I was going about making it (which I was) so now I'm starting to get back on track.

Also, I'm almost 100% sure I'm switching the engine to SFML instead of SDL.
Unfortunately, while SDL is nice, it doesn't have the power that I'd like it to have. So I think I'll go with SFML, what do you think?
If I do plan on switching to SFML, I plan on using Qt for the Editor and that will be where all the actual game editing will be done (not just the maps). However, starting off it will be just the map editor because... that's all I have going so far.

I've been taking a break from coding and made a few sprites which are shown below, tell me what you think etc.
I may decide to use 16 by 16 for my game, I'm not entirely sure yet though because I was going to do 32 by 32.
These tiles are only for testing purposes though, so really I have nothing to worry about at the moment.
Image
Here is a little guy I made too.
Image

Still have to work on other directions and stuff, but right now I'm just playing around with SFML and deciding whether or not I should use it. I'm currently running into a problem with it too so...
Image
As you may notice, there is some bluring going on :lol: I need to get rid of that, so I'll look into that when I wake up (it's 7:48 AM about to sleep ;))

So yeah, figured I'd just update you all because I know a lot of other people on here update a lot, and I get jealous of their progress :(

That's all for now, now I'm going to bed.
There's no place like ~/
K-Bal
ES Beta Backer
ES Beta Backer
Posts: 701
Joined: Sun Mar 15, 2009 3:21 pm
Location: Germany, Aachen
Contact:

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

Post by K-Bal »

sf::Image::SetSmooth(false) ;)

SFML is definitely a good choice.
User avatar
LeonBlade
Chaos Rift Demigod
Chaos Rift Demigod
Posts: 1314
Joined: Thu Jan 22, 2009 12:22 am
Current Project: Trying to make my first engine in C++ using OGL
Favorite Gaming Platforms: PS3
Programming Language of Choice: C++
Location: Blossvale, NY

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

Post by LeonBlade »

K-Bal wrote:sf::Image::SetSmooth(false) ;)

SFML is definitely a good choice.
Ahh! Thank you! :)
I got my guy do do a little animation (not yet wrapped in a class just sitting in the main loop ;))
Image

EDIT: Okay, now I'm going to bed :lol:
There's no place like ~/
User avatar
GroundUpEngine
Chaos Rift Devotee
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: Blade Brothers Engine: Creating my first 2D Game Engine

Post by GroundUpEngine »

Fuck yes, More SFML users! :mrgreen:

p.s. gratz on getting back on track ;)
User avatar
lotios611
Chaos Rift Regular
Chaos Rift Regular
Posts: 160
Joined: Sun Jun 14, 2009 12:05 pm
Current Project: Game engine for the PC, PSP, and maybe more.
Favorite Gaming Platforms: Gameboy Micro
Programming Language of Choice: C++

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

Post by lotios611 »

GroundUpEngine wrote:Fuck yes, More SFML users! :mrgreen:

p.s. gratz on getting back on track ;)
I never liked SFML. Too easy and OO for me. Anyways, great work so far!
"Why geeks like computers: unzip, strip, touch, finger, grep, mount, fsck, more, yes, fsck, fsck, fsck, umount, sleep." - Unknown
K-Bal
ES Beta Backer
ES Beta Backer
Posts: 701
Joined: Sun Mar 15, 2009 3:21 pm
Location: Germany, Aachen
Contact:

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

Post by K-Bal »

lotios611 wrote:Too easy
rofl
User avatar
Innerscope
Chaos Rift Junior
Chaos Rift Junior
Posts: 200
Joined: Mon May 04, 2009 5:15 pm
Current Project: Gridbug
Favorite Gaming Platforms: NES, SNES
Programming Language of Choice: Obj-C, C++
Location: Emeryville, CA
Contact:

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

Post by Innerscope »

K-Bal wrote:
lotios611 wrote:Too easy
rofl
yes, why is that a problem?
I can see inflexible as a valid reason to not like something... but too easy? :lol:
Maybe I'm just not h4X0r enough...
Current Project: Gridbug
Website (under construction) : http://www.timcool.me
Live-Dimension
Chaos Rift Junior
Chaos Rift Junior
Posts: 345
Joined: Tue Jan 12, 2010 7:23 pm
Favorite Gaming Platforms: PC - Windows 7
Programming Language of Choice: c++;haxe
Contact:

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

Post by Live-Dimension »

lotios611 wrote:
GroundUpEngine wrote:Fuck yes, More SFML users! :mrgreen:

p.s. gratz on getting back on track ;)
I never liked SFML. Too easy and OO for me. Anyways, great work so far!
What would you use instead?
Image
User avatar
lotios611
Chaos Rift Regular
Chaos Rift Regular
Posts: 160
Joined: Sun Jun 14, 2009 12:05 pm
Current Project: Game engine for the PC, PSP, and maybe more.
Favorite Gaming Platforms: Gameboy Micro
Programming Language of Choice: C++

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

Post by lotios611 »

Binary. Seriously though, I guess I meant "inflexible." I need to be more precise with my words.
"Why geeks like computers: unzip, strip, touch, finger, grep, mount, fsck, more, yes, fsck, fsck, fsck, umount, sleep." - Unknown
Live-Dimension
Chaos Rift Junior
Chaos Rift Junior
Posts: 345
Joined: Tue Jan 12, 2010 7:23 pm
Favorite Gaming Platforms: PC - Windows 7
Programming Language of Choice: c++;haxe
Contact:

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

Post by Live-Dimension »

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.
Image
User avatar
Ginto8
ES Beta Backer
ES Beta Backer
Posts: 1064
Joined: Tue Jan 06, 2009 4:12 pm
Programming Language of Choice: C/C++, Java

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

Post by Ginto8 »

If you're going to use the same library for both window management and rendering, go with SFML. Since (IIRC) it uses OpenGL for rendering (as opposed to SDL's rendering, which is completely in software), it is much faster. If you're having window management and rendering separate, it's your choice; SDL and SFML are about equal, though SFML is slightly superior in that you don't have to explicitly initialize the window for OpenGL.
Quit procrastinating and make something awesome.
Ducky wrote:Give a man some wood, he'll be warm for the night. Put him on fire and he'll be warm for the rest of his life.
User avatar
eatcomics
ES Beta Backer
ES Beta Backer
Posts: 2528
Joined: Sat Mar 08, 2008 7:52 pm
Location: Illinois

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

Post by eatcomics »

Still kinda thinking about using SFML myself, I'm just more familiar with SDL, so tell me how it is vs SDL if you do switch :D
Image
User avatar
GroundUpEngine
Chaos Rift Devotee
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: Blade Brothers Engine: Creating my first 2D Game Engine

Post by GroundUpEngine »

K-Bal wrote:
lotios611 wrote:Too easy
rofl
I concur.
Post Reply