2D RPG 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
bbguimaraes
Chaos Rift Junior
Chaos Rift Junior
Posts: 294
Joined: Wed Apr 11, 2012 4:34 pm
Programming Language of Choice: c++
Location: Brazil
Contact:

Re: Simple 2D RPG Engine

Post by bbguimaraes »

post -pedantic

Click here to see the hidden message (It might contain spoilers)
This two snippets don't do the same thing:
if(dataCollection.IsEmpty()) {
  empty = true;
}
empty = dataCollection.IsEmpty();
User avatar
dandymcgee
ES Beta Backer
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: Simple 2D RPG Engine

Post by dandymcgee »

bbguimaraes wrote:post -pedantic

Click here to see the hidden message (It might contain spoilers)
This two snippets don't do the same thing:
if(dataCollection.IsEmpty()) {
  empty = true;
}
empty = dataCollection.IsEmpty();
This two snippets do the same thing if you consider the declaration of empty ;)
bool empty = false;
wtetzner wrote:// Cache empty state, because IsEmpty is expensive to call.
That is much too verbose and explicit for my liking.. but to each his own. I probably wouldn't even comment the particular snippet I posted. You guys are WAY over-analyzing the intentions of my post. Wouldn't expect any less from fellow programmers. 8-)
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
User avatar
MarauderIIC
Respected Programmer
Respected Programmer
Posts: 3406
Joined: Sat Jul 10, 2004 3:05 pm
Location: Maryland, USA

Re: Simple 2D RPG Engine

Post by MarauderIIC »

Yeah if you come back in a couple years you'll generally go "why did i do it that way that was stupid" but maybe it's less stupid than you thought ;)
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
User avatar
bbguimaraes
Chaos Rift Junior
Chaos Rift Junior
Posts: 294
Joined: Wed Apr 11, 2012 4:34 pm
Programming Language of Choice: c++
Location: Brazil
Contact:

Re: Simple 2D RPG Engine

Post by bbguimaraes »

MarauderIIC wrote:Yeah if you come back in a couple years you'll generally go "why did i do it that way that was stupid" but maybe it's less stupid than you thought ;)
In my experience, even coming back on Monday and taking a look at Friday's code is enough. Real story:
  • I look at the code and think "why the hell did I do it this way?"
  • I loose half an hour changing it
  • I realize I had already spent half an hour doing the same thing at some point in time and discovering it had to be done that way because of something else
  • I really wish there was a comment there to remind me
User avatar
Light-Dark
Dreamcast Developer
Dreamcast Developer
Posts: 307
Joined: Sun Mar 13, 2011 7:57 pm
Current Project: 2D RPG & NES Platformer
Favorite Gaming Platforms: NES,SNES,N64,Genesis,Dreamcast,PC,Xbox360
Programming Language of Choice: C/++
Location: Canada

Re: Simple 2D RPG Engine

Post by Light-Dark »

Wonderful news! As of late I have been feeling considerably better and thus this good feeling has brought about progress! Got a Main Menu up and operational and a Battle Ground screen in the works for the battle system, unlike my old engine's framework the new one allows for changing of the game state/logic, so in the main loop there are 3 if's checking for particular states and if the state is say set to 2 it shifts the logic to the battle system's logic, same goes for the main menu and over world, this allows for the game to run at a higher FPS compared to my old engine because it's not all contained in one loop. Nonetheless, hopefully I'll continue to make more progress until then I leave you with this screen shot:
Battle System Screen
Battle System Screen
BattleSystem.png (118.95 KiB) Viewed 7701 times
<tpw_rules> LightDark: java is a consequence of inverse moore's law: every 18 months, the average program will be twice as slow. therefore, computers always run at the same percevied speed. java's invention was a monumental step
Image
User avatar
Light-Dark
Dreamcast Developer
Dreamcast Developer
Posts: 307
Joined: Sun Mar 13, 2011 7:57 pm
Current Project: 2D RPG & NES Platformer
Favorite Gaming Platforms: NES,SNES,N64,Genesis,Dreamcast,PC,Xbox360
Programming Language of Choice: C/++
Location: Canada

Re: Simple 2D RPG Engine

Post by Light-Dark »

I'll just leave this here ;)
Image
<tpw_rules> LightDark: java is a consequence of inverse moore's law: every 18 months, the average program will be twice as slow. therefore, computers always run at the same percevied speed. java's invention was a monumental step
Image
User avatar
dandymcgee
ES Beta Backer
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: Simple 2D RPG Engine

Post by dandymcgee »

Light-Dark wrote:I'll just leave this here ;)
Looking really good!
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
User avatar
Light-Dark
Dreamcast Developer
Dreamcast Developer
Posts: 307
Joined: Sun Mar 13, 2011 7:57 pm
Current Project: 2D RPG & NES Platformer
Favorite Gaming Platforms: NES,SNES,N64,Genesis,Dreamcast,PC,Xbox360
Programming Language of Choice: C/++
Location: Canada

Re: Simple 2D RPG Engine

Post by Light-Dark »

dandymcgee wrote:
Light-Dark wrote:I'll just leave this here ;)
Looking really good!
Thank you! I'm so glad I went through with this rewrite, best decision I've ever made! Things are coming along quite nicely now.
<tpw_rules> LightDark: java is a consequence of inverse moore's law: every 18 months, the average program will be twice as slow. therefore, computers always run at the same percevied speed. java's invention was a monumental step
Image
User avatar
Light-Dark
Dreamcast Developer
Dreamcast Developer
Posts: 307
Joined: Sun Mar 13, 2011 7:57 pm
Current Project: 2D RPG & NES Platformer
Favorite Gaming Platforms: NES,SNES,N64,Genesis,Dreamcast,PC,Xbox360
Programming Language of Choice: C/++
Location: Canada

Re: Simple 2D RPG Engine

Post by Light-Dark »

Merry Christmas everyone. https://www.dropbox.com/sh/2n6ba10mn9dd1df/ynosw50s-C

I'm taking another break for a long long time. Today things went for the worst, I practically let myself dig my own grave, now I have to climb out of it.
<tpw_rules> LightDark: java is a consequence of inverse moore's law: every 18 months, the average program will be twice as slow. therefore, computers always run at the same percevied speed. java's invention was a monumental step
Image
User avatar
dandymcgee
ES Beta Backer
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: Simple 2D RPG Engine

Post by dandymcgee »

Light-Dark wrote:I'm taking another break for a long long time. Today things went for the worst, I practically let myself dig my own grave, now I have to climb out of it.
It's a slump, you'll get over it soon enough. Breaks are always healthy anyways.
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
User avatar
DistortedLance
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 26
Joined: Fri Jul 22, 2011 12:36 pm
Favorite Gaming Platforms: PC
Programming Language of Choice: C++
Contact:

Re: Simple 2D RPG Engine

Post by DistortedLance »

It looks good! I hope you're back and kicking soon. Stalking the thread isn't quite as fun when you're feeling down ;)
User avatar
Light-Dark
Dreamcast Developer
Dreamcast Developer
Posts: 307
Joined: Sun Mar 13, 2011 7:57 pm
Current Project: 2D RPG & NES Platformer
Favorite Gaming Platforms: NES,SNES,N64,Genesis,Dreamcast,PC,Xbox360
Programming Language of Choice: C/++
Location: Canada

Re: Simple 2D RPG Engine

Post by Light-Dark »

Merry Christmas to everyone following this, and thank you guys for your continued support :) means quite a bit to me!
<tpw_rules> LightDark: java is a consequence of inverse moore's law: every 18 months, the average program will be twice as slow. therefore, computers always run at the same percevied speed. java's invention was a monumental step
Image
User avatar
EdBoon
Chaos Rift Junior
Chaos Rift Junior
Posts: 258
Joined: Fri May 28, 2010 10:44 pm
Current Project: Top down multiplayer shooter using unity 3D
Favorite Gaming Platforms: 360, SNES, ps1
Programming Language of Choice: C++, C#
Location: Atlanta, GA
Contact:

Re: Simple 2D RPG Engine

Post by EdBoon »

Looks great, always coming back to see progress but never posting. Probably because your animated gif puts me into a trance. Merry Christmas too.
Undead Empire -> http://bit.ly/dYdu3z
Gamerscore Tracker -> http://bit.ly/vI4T4X
Undead Empire: Hellfire -> http://bit.ly/1AgC4ZY
facebook.com/BigRookGames twitter.com/BigRookGames
youtube.com/user/bigrookdigital
User avatar
MarauderIIC
Respected Programmer
Respected Programmer
Posts: 3406
Joined: Sat Jul 10, 2004 3:05 pm
Location: Maryland, USA

Re: Simple 2D RPG Engine

Post by MarauderIIC »

EdBoon wrote:your animated gif puts me into a trance
QFT :)
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
User avatar
dandymcgee
ES Beta Backer
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: Simple 2D RPG Engine

Post by dandymcgee »

MarauderIIC wrote:QFT :)
Had to gts.
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
Post Reply