• Welcome to Dark Bit Factory & Gravity.
 

Messing with the Windows console (ASCII graphics)

Started by Pixel_Outlaw, August 12, 2008

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Pixel_Outlaw



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
Challenge Trophies Won:

benny!

Thanks ... the other tutorials are nice and simple, too!
Nice link - thanks, PO - ahh ... and of course looking
forward to your creations !
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Pixel_Outlaw

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.
Challenge Trophies Won:

Jim

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
Challenge Trophies Won:

Pixel_Outlaw

Quote from: 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



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.
Challenge Trophies Won:

Rbz

PO: Try to add:
Sleep(10);
in the program main loop...
Challenge Trophies Won:

Pixel_Outlaw

Quote from: rbz on August 24, 2008
PO: Try to add:
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?
Challenge Trophies Won:

benny!

With Sleep you give back the processor power to the system / Windows.
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Jim

So it was using 100% CPU not 100% RAM?

Jim
Challenge Trophies Won:

Pixel_Outlaw

Yes, I transposed the little windows in the utility.  :xmas:
Challenge Trophies Won:

Jim

Challenge Trophies Won:

Moroboshisan

Quote from: Pixel_Outlaw on August 12, 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

Shockwave

That's an excellent initiative btw, Northern Dragons really rule at TDMC.
Shockwave ^ Codigos
Challenge Trophies Won:

Hezad

Very cool link Pixel :) The tutorial about 3d tunnel is pretty cool too :p

:goodpost:
Music + Coding :
http://Hezad.no-ip.org

Hosting / Hébergement :
www.hezad.com

Clyde

@Moroboshisan: Very cool and usefull indeed, nice find dude. I'm quite fond of the Text Mode demos.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.


Challenge Trophies Won:

Moroboshisan

Quote from: Clyde on October 21, 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! ;-)

Clyde

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.

Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.


Challenge Trophies Won: