Dark Bit Factory & Gravity

ARCHIVE => Archive => Useful links => Topic started by: Pixel_Outlaw on August 12, 2008

Title: Messing with the Windows console (ASCII graphics)
Post by: Pixel_Outlaw on August 12, 2008


Currently I'm still trucking away on learning C++ and I found a cool page that shows how to create games and demos made of ASCII text.

Might be useful for some retro fun.

http://benryves.com/tutorials/?t=winconsole
Title: Re: Messing with the Windows console (ASCII graphics)
Post by: benny! on August 12, 2008
Thanks ... the other tutorials are nice and simple, too!
Nice link - thanks, PO - ahh ... and of course looking
forward to your creations !
Title: Re: Messing with the Windows console (ASCII graphics)
Post by: Pixel_Outlaw on August 20, 2008
I just compiled and ran the sample painting program there. It started using 100% of my RAM. Does anyone see why?

Perhaps it wasn't such a good tutorial site if this problem is common.
Title: Re: Messing with the Windows console (ASCII graphics)
Post by: Jim on August 20, 2008
I've just had a look for you and I didn't spot anything immediately wrong with the code...but I could easily have missed something.  Can you pin it down to doing certain things that cause the leak, like clicking the mouse?

Jim
Title: Re: Messing with the Windows console (ASCII graphics)
Post by: Pixel_Outlaw on August 24, 2008
I've just had a look for you and I didn't spot anything immediately wrong with the code...but I could easily have missed something.  Can you pin it down to doing certain things that cause the leak, like clicking the mouse?

Jim



Even if the whole program inside Main() is removed, it still causes the RAM to rocket to 100% in the task manager. This is really quite odd. I wonder if it is another Vista bug.
Title: Re: Messing with the Windows console (ASCII graphics)
Post by: Rbz on August 24, 2008
PO: Try to add:
Code: [Select]
Sleep(10);in the program main loop...
Title: Re: Messing with the Windows console (ASCII graphics)
Post by: Pixel_Outlaw on August 24, 2008
PO: Try to add:
Code: [Select]
Sleep(10);in the program main loop...

Ahhh thank you very much! Have some karma. Could you maybe explain why this program needs this command?
Title: Re: Messing with the Windows console (ASCII graphics)
Post by: benny! on August 25, 2008
With Sleep (http://msdn.microsoft.com/en-us/library/ms686298(VS.85).aspx) you give back the processor power to the system / Windows.
Title: Re: Messing with the Windows console (ASCII graphics)
Post by: Jim on August 25, 2008
So it was using 100% CPU not 100% RAM?

Jim
Title: Re: Messing with the Windows console (ASCII graphics)
Post by: Pixel_Outlaw on August 25, 2008
Yes, I transposed the little windows in the utility.  :xmas:
Title: Re: Messing with the Windows console (ASCII graphics)
Post by: Jim on August 26, 2008
doh!

Jim
Title: Re: Messing with the Windows console (ASCII graphics)
Post by: Moroboshisan on October 21, 2008
Might be useful for some retro fun.

maybe someone will take a look at http://tmdc.scene.org/tmdc-template.zip  :whisper:

TMDC site says:
"October 19th, 2008: Demo template released!
For every newcomer, we made an textmode demo template. It contains everything needed to make a basic textmode demo (libcaca, fmod, syncing, basic fx). One could *almost* just take the framework, remake the assets, and have something interresting out of that!
"

could it be useful? cheers
Title: Re: Messing with the Windows console (ASCII graphics)
Post by: Shockwave on October 21, 2008
That's an excellent initiative btw, Northern Dragons really rule at TDMC.
Title: Re: Messing with the Windows console (ASCII graphics)
Post by: Hezad on October 21, 2008
Very cool link Pixel :) The tutorial about 3d tunnel is pretty cool too :p

 :goodpost:
Title: Re: Messing with the Windows console (ASCII graphics)
Post by: Clyde on October 21, 2008
@Moroboshisan: Very cool and usefull indeed, nice find dude. I'm quite fond of the Text Mode demos.
Title: Re: Messing with the Windows console (ASCII graphics)
Post by: Moroboshisan on October 22, 2008
@Moroboshisan: Very cool and usefull indeed, nice find dude. I'm quite fond of the Text Mode demos.

Thanks mate, don't forget to take a look at http://www.taat.fi/tmdc/tmdc5inv_src.zip also! If you haven't seen it yet ;D

some years ago I found it quite interesting to take a look at but my coding skills are so basic (actually just some poor console STDOUT done in C and very little time to experiment due to RealLifeBusiness[TM]...) that I was unable to undestand anything about effects (my memory relies onto C64 tasm monolithic-coding[which I forgot during years due to lack of interest  :whack: ... How wrong I feel now!!!], so i'm actually unable to follow multiple file projects... I simply feel my mind lost after few jumps  :boxer: )

But I think that information sharing could help the whole community to grow and improve, so I'm happy to post links to useful things I have discovered diggin' the net during the last 5 years or so.

Happy Hacking! ;-)
Title: Re: Messing with the Windows console (ASCII graphics)
Post by: Clyde on October 22, 2008
Always been fascinated by ascii / ansi stuff. :D

Cheers for the taat linkie poos, thats a shame that they are closing the doors to Text Mode Demo Competitions.