Page 5 of 11

Re: Simple 2D RPG Engine

Posted: Thu Jul 05, 2012 5:07 pm
by Light-Dark
Sometime yesterday morning i decided instead of just fucking around doing nothing being all depressed to actually do something and well,i started learning some OpenGL and began messing around and what has come out of that is this:
Test
Test
OGLTest.png (90.14 KiB) Viewed 8171 times
It's a pretty basic 32x32 tile engine with a working camera and player, it loads a 128x128 tile map. Oh and the purple square and transparent shroom was just me fooling around with Quads, they currently rotate and the shroom's transparency goes up and down and it scales up and down to :), anyways hopefully from what i've learned from this i can apply it to completely redoing my SDL level editor using OpenGL and QT.

Re: Simple 2D RPG Engine

Posted: Sun Jul 08, 2012 3:03 pm
by Light-Dark


This is something I've been meaning to do for a long time but just didn't have the time (school, relationship bullshit,etc). Finally i have just said fucku to my SDL level editor and made a new better one in QT :) this video showcases what it can do so far and it is a lot easier to use than the old one where every time you wanted to edit a new map you would have to go into a configuration text file and edit file paths and there would be times where it simply would just not load a file and there would be all sorts of nuisances, but no more!

Re: Simple 2D RPG Engine

Posted: Wed Aug 01, 2012 7:34 pm
by Light-Dark
Just going to drop this screenshot here.
Inventory
Inventory
Inventory.png (165.06 KiB) Viewed 8061 times
So I've finally made some passable attempt at a inventory system, so far you can pick up items by touching them then activate the menu that has a Super Mario RPG background because that game is awesome and I've been losing a lot of sleep because of it. Afterwards scroll over to the Item screen and you have a fancy hand to display which item you are selecting then either press RSHIFT or B on the 360 controller and it will 'use' that item (aka activate that items corresponding lua script). Needs a bit more work, might add a little box of text telling you what the item does. Anyways that's all i have to share today, my productivity has been seriously lacking mainly because most of my time is spent asking myself questions that i will probably never get an answer for. Nonetheless if you read this entire paragraph with my bitching and all i thank you, have a wonderful day.

Re: Simple 2D RPG Engine

Posted: Sun Aug 05, 2012 5:50 pm
by Mutrify
This looks very good :) I'm looking forward to more updates ;) :worship:

Re: Simple 2D RPG Engine

Posted: Tue Aug 14, 2012 1:41 am
by Light-Dark
Mutrify wrote:This looks very good :) I'm looking forward to more updates ;) :worship:
Why thank you :)!

Anyways, here is a somewhat huge update.

I am rewriting the entire engine.

A lot of progress has been made, it still uses SDL for rendering because i don't feel confident enough with doing something like this with OpenGL, future projects will probably utilize OpenGL as i move forward in understanding it. Nonetheless here's an update on which systems thus far have been implemented and are being worked on, and which ones i have yet to.

Implemented/Working on:
  • -GameSystem (Basicly the main system that holds the rendering,image loading,collision & input retrieving functions)
    -TileSystem
    -AudioSystem
    -LuaSystem
    -AdvLogSystem
    -DebugSystem
    -PlayerSystem
Yet To Be Implemented:
  • -Items&ObjectsSystem
    -NPCSystem (Friendly & Enemy)
    -BattleSystem
    -MenuSystem
    -TextboxSystem
    -PartySystem
    -AnimationSystem
Now you may be asking, well what was wrong with the old engine, let me tell you my good sirs/madams it was all inn a SINGLE source file all cluttered together, a lot of systems like items were just downright disgusting they wreaked of age and inexperience, one day i was pushed to the breaking point got really angry at my own incompetence and began a rewrite.

Now i'm not just going to basically clone everything in a new neat fashion, no i intend to make better versions of all the old systems, primarily the battle system,NPC system,Menu system,animation system and textbox system, those are the most disgusting areas of the old engine. After "researching" Final Fantasy's III,IV and VI with some Super Mario RPG and Chrono Trigger i have decided what kind of Battle system and Menu system i want, i want something along the lines of those games because for some reason i really like turn based combat and the way their menus work. Nonetheless that concludes this update, i apologize for making you all read so much but i like writing long and somewhat detailed descriptions to inform people of things, mainly because i myself like to know a lot of useless details and information :).

Re: Simple 2D RPG Engine

Posted: Tue Aug 14, 2012 6:08 am
by bbguimaraes
There's something about programmers... We really like reading long texts about programming. Good luck on your rewrite (we all need). Might be a good time to start using CVS (if you're not using already).


off-topic edit
YouTube wrote:DeltaSpartanJizz liked In The Court Of The Crimson King - King Crimson [HQ Sound]
Oh yeah. Now I know why you're engine is so nice ;)

Re: Simple 2D RPG Engine

Posted: Thu Aug 23, 2012 3:16 am
by Light-Dark
bbguimaraes wrote:There's something about programmers... We really like reading long texts about programming. Good luck on your rewrite (we all need). Might be a good time to start using CVS (if you're not using already).


off-topic edit
YouTube wrote:DeltaSpartanJizz liked In The Court Of The Crimson King - King Crimson [HQ Sound]
Oh yeah. Now I know why you're engine is so nice ;)
I thank you kind sir, Nonetheless here's another unscheduled update.

So basically in just over a week i got a prototype item/object system done, I'd call that horrible progress but still, the benefit of this rewrite is it's much more clean and organized allowing for me to try new ideas that attempting in the old engines single source file would have made me want to bash my head into a wall thus i am making slow progressions, the project is taking a bit of a backseat to some emotional bullshit that has plagued me since about around 8am, Sunday, June 3rd 2012(conveniently seared and burned into my memory), so for those who actually want to see this project finish take solace this (WARNING this is going to sound extremely sad) project and music are the only things that keep me going and i am 100% intent on finishing it so one day i can place a game made with it in your hands and i hope it brings you joy. Also I want to release the toolkit for it so people can make some mods to the game or make their own :)

Anyways enough of my ranting, ladies and gentlemen, have a good morning I'll make another video as soon as i feel there is sufficient new features and things to entice you with ;)!

Re: Simple 2D RPG Engine

Posted: Mon Sep 10, 2012 3:58 pm
by Light-Dark
Can hardly believe it's been a year since this thread was started, i must regrettably announce that i'm taking a break, i don't know how long it will be i'm sorry but i have a lot of shit to do and i just get home everyday and i'm just to depressed to get anything done, don't worry i'm not going to stop, i've come to far to do that now i am going to finish this project even if it takes me years i will finish it, i promise that and if i break that promise feel free to bitch at me and beat me for breaking it lol.

Re: Simple 2D RPG Engine

Posted: Thu Oct 11, 2012 5:00 pm
by eatcomics
Light-Dark wrote:Can hardly believe it's been a year since this thread was started, i must regrettably announce that i'm taking a break, i don't know how long it will be i'm sorry but i have a lot of shit to do and i just get home everyday and i'm just to depressed to get anything done, don't worry i'm not going to stop, i've come to far to do that now i am going to finish this project even if it takes me years i will finish it, i promise that and if i break that promise feel free to bitch at me and beat me for breaking it lol.
Right on man! We all have slumps, if you aren't excited and ready to work, then something needs to change. If that means taking a break, stepping back, and fixing shit, then that's what has to be done. The best thing you can do is listen to your body and mental state. Knowing yourself is the first step to improving your life ten fold. If you ever get too down or just want some kind of motivation, let us know. You're fellow programmers have your back. Also if you ever need a weekend coding buddy to chat to on skype just PM me, either here or on the moosader boards. I try to check both daily. :D best of luck

Re: Simple 2D RPG Engine

Posted: Sat Nov 17, 2012 3:18 pm
by Light-Dark
eatcomics wrote: Right on man! We all have slumps, if you aren't excited and ready to work, then something needs to change. If that means taking a break, stepping back, and fixing shit, then that's what has to be done. The best thing you can do is listen to your body and mental state. Knowing yourself is the first step to improving your life ten fold. If you ever get too down or just want some kind of motivation, let us know. You're fellow programmers have your back. Also if you ever need a weekend coding buddy to chat to on skype just PM me, either here or on the moosader boards. I try to check both daily. :D best of luck
Thank you man, that means quite a bit :), Nonetheless I present all those who have been following this project with a gift I guess! https://www.dropbox.com/s/tg4hbryi07wkbg9/Engine.zip, It's the latest build of the old Engine, you can mess around with lua there is a script in the documentation folder detailing it. Also if you want to make your own maps the engine runs on a 128x128 tile grid, each tile is 32x32 and the map files just contain tile type numbers in 16-bit(short) unsigned integers! I haven't included the source code just yet because I'm sure it would make people vomit at how disgusting it is and it is a very bad example, however I plan on releasing the new engine's source after I finish a game with it.

On the topic of the new engine, I will mention some of the tiny updates made in the past 3 months, they are:
-Collision layer/Collision box map
-Basic NPC system setup
-Re-implemented 360 controller input
-A few little optimizations here and there
-More comments(I'm lazy when it comes to documenting my stuff, I don't need documentation since I remember what everything i write does but that will not suffice if I release it to the public)

Re: Simple 2D RPG Engine

Posted: Sat Nov 17, 2012 3:46 pm
by dandymcgee
Light-Dark wrote: -More comments(I'm lazy when it comes to documenting my stuff, I don't need documentation since I remember what everything i write does but that will not suffice if I release it to the public)
Or if you take a long break and come back to it. I often return to old projects at work and am constantly thanking myself for having commented them so well.

Re: Simple 2D RPG Engine

Posted: Sat Nov 17, 2012 8:59 pm
by Light-Dark
dandymcgee wrote:
Light-Dark wrote: -More comments(I'm lazy when it comes to documenting my stuff, I don't need documentation since I remember what everything i write does but that will not suffice if I release it to the public)
Or if you take a long break and come back to it. I often return to old projects at work and am constantly thanking myself for having commented them so well.
Good point, I think I shall put some more time into documenting my code.

Re: Simple 2D RPG Engine

Posted: Sat Nov 17, 2012 9:29 pm
by MarauderIIC
Yeah my general rule is "if you come back in two years from never seeing it will the comments make sense". As opposed to the other standard of "if someone new comes to the project that's never seen it will the comments make sense" because that tends to make things a bit too verbose =)

Re: Simple 2D RPG Engine

Posted: Sun Nov 18, 2012 10:36 am
by dandymcgee
MarauderIIC wrote:As opposed to the other standard of "if someone new comes to the project that's never seen it will the comments make sense" because that tends to make things a bit too verbose =)
Well the comments should still make sense, but they shouldn't repeat what the code says:
//If data collection is empty set the empty flag to true
if(dataCollection.IsEmpty()) {
	empty = true;
}
Better code:
//Set empty flag
empty = dataCollection.IsEmpty();

Re: Simple 2D RPG Engine

Posted: Sun Nov 18, 2012 4:41 pm
by wtetzner
dandymcgee wrote: Better code:
//Set empty flag
empty = dataCollection.IsEmpty();
Even this seems like a pointless comment to me. You're still just repeating what the code says. The comment should say why you're doing it.
// Cache empty state, because IsEmpty is expensive to call.
empty = dataCollection.IsEmpty();