Bay 12 Games Forum

Finally... => Creative Projects => Topic started by: atomicwinter on January 03, 2010, 03:31:15 pm

Title: Forbidden Lands Roguelike
Post by: atomicwinter on January 03, 2010, 03:31:15 pm
Forbidden Lands Roguelike [Renamed]
Well, all these threads about peoples C++ exploits started popping up, so I thought that I might as well make one. Recently I have been talking to Outcast Orange, and he has taught me quite a bit of C++. With this knowledge, I plan to create a roguelike adventure that shall blow your minds. Right now the project is nothing more than bare bones, and I am using just a basic console and no special library's such as curses or anything. I will most likely adapt a library or two to my roguelike to give it a better look. Without further ado here is a screen shot.

Shot: 1/03/09 at 1:28pm: First steps

Spoiler (click to show/hide)

Shot: 1/03/09 at 8:22pm: Color! :)
Spoiler (click to show/hide)

Shot: 1/03/09 at 9:39pm: Changed ground color, not much of an update but it looks better  ;)
Spoiler (click to show/hide)

Current Goals:

-Add a character
-Add character movement
-Colored display
-Sound
-Inventory and item handling system
-Combat system
-Scrolling Maps
-Buildings


Big thanks to Outcast Orange for teaching and helping me learn C++
Title: Re: Adventures in C++
Post by: Hippoman on January 03, 2010, 03:50:40 pm
Looks good actually. I like the colors.
Title: Re: Adventures in C++
Post by: Outcast Orange on January 03, 2010, 04:03:41 pm
Don't worry, I can at least get you to the "Hippo Stage" of programming.

Nice colors indeed.
Title: Re: Adventures in C++
Post by: Alexhans on January 03, 2010, 07:20:36 pm
nice to see this things happening... posting to have it on my read list.
Title: Re: Adventures in C++
Post by: atomicwinter on January 03, 2010, 10:23:53 pm
Well finally it is colored. Hope it is more pleasing to the eye now  ;)
Title: Re: Forbidden Lands Roguelike
Post by: Hippoman on January 04, 2010, 08:23:13 am
Better, but try not to make it too bright and attacking on the eyes when you add in new stuff.
Title: Re: Forbidden Lands Roguelike
Post by: atomicwinter on January 04, 2010, 05:34:00 pm
Better, but try not to make it too bright and attacking on the eyes when you add in new stuff.
You'll give it away! The point of my game is to induce seizures!
Title: Re: Forbidden Lands Roguelike
Post by: Outcast Orange on January 04, 2010, 07:36:26 pm
Hehe.

Teaching you stuff is a blast,
 as you absorb my knowledges like some sort of satanic absorption device.

I predict you will surpass all of us in a few weeks.
At least if Timmeh stays gone for much longer.
Title: Re: Forbidden Lands Roguelike
Post by: qwertyuiopas on January 04, 2010, 09:15:15 pm
Fortunately for me, I recently expanded the gap you must fill to surpass me by about the contents of basic windows registry usage, a better understading of C's win32 API, HTTP, and unicode.

Still have plenty to learn, though. It would take a lifetime to know everything there is to know NOW, and thats not counting what comes out within even one year from now.
Title: Re: Forbidden Lands Roguelike
Post by: Alexhans on January 04, 2010, 10:54:22 pm
Do you know about sockets?  I need to learn sockets... :P
Title: Re: Forbidden Lands Roguelike
Post by: Nadaka on January 05, 2010, 01:04:51 pm
Do you know about sockets?  I need to learn sockets... :P

In what language? I used sockets in c++ but that was years ago, I am aweful rust. Also used them in Java more recently. What particularly do you want to know?

A socket is basically an abstraction for a communication channel. Depending on the socket, you can write bytes in or read them out. Behind the scenes there is a byte array that acts as a buffer for data and some code you don't normally deal with to make sure the data gets in or out from the socket on the other end.
Title: Re: Forbidden Lands Roguelike
Post by: Outcast Orange on January 05, 2010, 07:59:48 pm
Okay, I want to know more about buffers.
Before I run over to Google, as I'm about to,
 I'd like to guess that I already use a buffer, of sorts.

In most of the code I make for 2D ASCII games,
 there is a map array, which stores the actual data,
 and then there is a display array,
 which collects the map data and alters it before it is written to the screen.
Would that be an example of a buffer?

Also, I suggested something like this to Atomic Winter a few minutes ago,
 and we decided that it may be too complex for a beginning project.
I suppose he can make something more simple than a rogue-like?

If he decides to stay with it, I am curious as to what he will churn out.
For now, it seems this game may be on hiatus.

Don't worry Atomicwinter, I support whatever decision you make.
Title: Re: Forbidden Lands Roguelike
Post by: Nadaka on January 05, 2010, 08:20:02 pm
Re: buffer. pretty much.

A buffer is basically a bit of memory that is used as temporary storage that does not need to be reallocated every time it is needed. There are various specific kinds with different uses.

Sounds like you are using something like a frame buffer. Typically you would have two or three, writing to one, reading from the other and switching them when the write buffer is filled.

There are other uses and ways of dealing with buffers as well. IO buffers, like those in a socket, are often circular. With a read pointer and a write pointer into a single array. when the pointers reach the end of the array they wrap around to the beginning, but the reader can never pass the writer.
Title: Re: Forbidden Lands Roguelike
Post by: Outcast Orange on January 05, 2010, 08:26:05 pm
Ah.
That useful information was appreciated, though I didn't follow all of it.
Title: Re: Forbidden Lands Roguelike
Post by: Alexhans on January 06, 2010, 08:55:41 am
Outcast... What do you think you're doing when you make the call to    glutSwapBuffers();?  ;D  You specified the use of DOUBLE buffers so the screen won't flicker due to having to wait for the buffer to be ready each time...

Thanks for the sockets info...  I want to learn it at some point but I also don't want to spread to thin as I've been doing so many things of so different subjects that I seem to be losing the little sanity I had left :P...
Title: Re: Forbidden Lands Roguelike
Post by: Outcast Orange on January 06, 2010, 02:59:42 pm
Whatever.

Glut is frustrating, end of story.

Some day I'll know who killed Charlie.
Title: Re: Forbidden Lands Roguelike
Post by: atomicwinter on January 06, 2010, 06:04:12 pm
Actually I am sticking with the game, but this week I don't have much time to work on it. I am currently taking 2 online classes so i'm bogged down  :(