|
|
View previous topic - View next topic |
Author |
Message |
DeveloperX 202192397
Joined: 04 May 2003 Posts: 1626 Location: Decatur, IL, USA
|
Posted: Wed Jun 03, 2009 10:04 am Post subject: Encounter Engine |
[quote] |
|
So I was digging through old files and ran across one of the intermediate projects that I had written during the WiTCHHUNT game development period.
Its called Encounter Engine.
Its really just a very plain start for a text-based battle engine.
I'm releasing it for anyone who wants to play with it.
Its C/C++ and I went through the old source, and completely re-typed in the entire project in a much cleaner and easier to read and use coding convention.
functions and methods are written like this:
this_is_a_function();
variables are all lower case such as:
thisisavariable = 5;
classes, enums, and structs are capitalized:
class ThisIsAClass {};
the code isn't great, nor is it commented.
I'm willing to explain any part of it to anyone who has questions about it.
You can download the project here
The best place to start is in main.cpp like the compiler does.
When you reach a function, go find which source file its in, and read through line for line. Thats the easiest way to get familiar with the code.
The project has save & load, random multi-class character generation, random monster encounters, and really bad game-play XD
I never did tweak the gameplay into anything really usable, since I was just concentrating on deciding the interface that I wanted.
In the end, I started a new project before I got to the WiTCHHUNT battle engine....whee..good times...
okay, its 5am..goodnight...
one more time..
You can download the project here _________________ Principal Software Architect
Rambling Indie Games, LLC
See my professional portfolio
|
|
Back to top |
|
|
Mattias Gustavsson Mage
Joined: 10 Nov 2007 Posts: 457 Location: Royal Leamington Spa, UK
|
Posted: Wed Jun 03, 2009 10:34 am Post subject: |
[quote] |
|
This is nice, thanks for sharing :-) There seems to be quite a bit of stuff in the project, and it looks like it could provide a nice starting point for someone wanting to make an RPG of their own. _________________ www.mattiasgustavsson.com - My blog
www.rivtind.com - My Fantasy world and isometric RPG engine
www.pixieuniversity.com - Software 2D Game Engine
|
|
Back to top |
|
|
DeveloperX 202192397
Joined: 04 May 2003 Posts: 1626 Location: Decatur, IL, USA
|
Posted: Wed Jun 03, 2009 7:32 pm Post subject: |
[quote] |
|
: )
Its nothing major, but yeah, it could provide a good place to start.
Its funny though that I used so much code in 2007 that I don't use now. ..like fstreams ..ick. lol!
The abuse of the std namespace too..I went overboard in 2007 lol. _________________ Principal Software Architect
Rambling Indie Games, LLC
See my professional portfolio
|
|
Back to top |
|
|
|
Page 1 of 1 |
All times are GMT
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|