Thread: Just a random project

  1. #1
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    New York
    Posts
    1,905

    Just a random project

    So I've been working lately..but since there's nothing to do I've gutted out one of the old computers, reinstalled the OS and installed visual studio and such so it's almost a home-away-from-home. While I've been bored out of my mind, I've made a cool little DOS console rendering class.

    Basically it sets up the DOS window so you have an 80x50 area (or 80x100 if you use the block character trick that I used for rendering the bitmaps) for rendering text to a buffer and swapping it to the screen really fast (I achieved about 900 fps on some computers with it in realtime mode). I've added support for a mouse and such, and I've done a couple random things, like print out an ASCII reference table.

    The cool thing I just finished though is a bitmap renderer using my Image Express library...it can load a bitmap and print it to the screen (using the available 16 colors) and does a somewhat decent job of it.

    Here's a screeny and some apps for you to play with.

    If you want code, feel free to ask and I'll post it. I might be doing a little tutorial thing on my site about this stuff, as it's fun to dabble with.

    These two attachments need to be renamed to .zip to be opened.

    Note: ImageLoader quits when you press a key, the ASCII table one has a + for the cursor. If you go in to full-screen (alt-enter) it works best.
    Last edited by jverkoey; 07-20-2005 at 02:26 PM.

  2. #2
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    New York
    Posts
    1,905
    Screeny of the rendered bitmaps:

  3. #3
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    New York
    Posts
    1,905
    Just added functionality for moving the bitmap on the screen and rolling the graphics around. I threw in a sin and cos wave to make it move around cool.

    I haven't efficienized it whatsoever, mind you, so it might run slow, but I used a Sleep function for really rudimentary frame limiting so it shouldn't go faster than what I tested it with, I know that for sure. It could go slower though if you have a computer worse than this crap one I'm using (667mhz).

  4. #4
    Registered User mrafcho001's Avatar
    Join Date
    Jan 2005
    Posts
    483
    lol you got way too much free time on your hands...

    this could be usefull for something i had in mind but never bother doing..
    My Website
    010000110010101100101011
    Add Color To Your Code!

  5. #5
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    New York
    Posts
    1,905
    It's called work, which oddly enough means free time.

    That's also the cool thing about working in an over-staffed computer help desk area as an intern.

  6. #6
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    nice work

  7. #7
    I am he who is the man! Stan100's Avatar
    Join Date
    Sep 2002
    Posts
    361
    Looks very interesting, if and when you get articles/tutorials/give out code on your site, post about it/PM me
    Stan The Man. Beatles fan

    When I was a child,
    I spoke as a child,
    I thought as a child,
    I reasoned as a child.
    When I became a man,
    I put childish ways behind me"
    (the holy bible, Paul, in his first letter to the Cor. 13:11)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Open-source Game Project
    By Glorfindel in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 03-24-2009, 01:12 AM
  2. Lesson #3 - Math
    By oval in forum C# Programming
    Replies: 2
    Last Post: 04-27-2006, 08:16 AM
  3. Game Independent Anti-cheat Project Needs Programmers
    By GIA Project Lea in forum Projects and Job Recruitment
    Replies: 3
    Last Post: 09-15-2005, 07:41 PM
  4. Testing Random Number Generator
    By Roaring_Tiger in forum C Programming
    Replies: 7
    Last Post: 08-12-2005, 12:48 AM
  5. Best way to generate a random double?
    By The V. in forum C Programming
    Replies: 3
    Last Post: 10-16-2001, 04:11 PM