Home
Site Map
[ Site Map ]
Programming: C++

Here you can download the complete project files and resources of the my freeware programs (Freeware -> Windows).
The Metronome Timer and the Kaleidoscope program are Borland C++ Builder 1.0 projects, all the other are made with Visual C++ 6.0.
For the PacWorld game you need to include the CDX library (no longer available, but included) and the DirectX library.

  • World Time Clock (old version)
  • Multi Clipboard
  • Week Scheduler
  • Program Launcher
  • Metronome Timer
  • Unit Converter
  • PacWorld
  • Card Game: 1001
  • Block Game
  • Concentration Game
  • Recall the Melody
  • Monitor Test Screens
  • Password Generator
  • RGB-Mixer
  • Multiple Choice
  • Simple Paint
  • Kaleidoscope

  • The applications in the list below are all made with Borland C++ Builder 1.0 and are supposed to help you on your first steps to your own games and programs and to give you some inspiration for your first own projects. They rely on the Windows library VCL by Borland, so they won't compile if you don't have C++ Builder installed. Most concepts can be transferred to other libraries easily. The downloadable archive files contain all the sourcecode, project files and bitmaps, as well as the *.exe-files of the programs. You may freely use the sourcecode to learn from it and use it for your own programs. Most of the programs on this page depend on the SuperTimer component for high precision timing. This component is free and can be easily plugged into your projects. If you program in Microsoft Visual C++, you find the code to all my freeware Windows programs on the top of this page.

    Lines and Circles Lines and Circles
    A simple example for double buffered graphics drawing for flicker free animation.

    » Download


    Bitmap Animation Bitmap Animation
    Example program for drawing bitmaps with transparency, using image lists. The vehicles move across the window with different speeds. The program also features a menu and an "Info about" box.

    » Download


    Clock Clock
    This little Clock program shows analog and digital time and calendar functions. Country specific weekday and month names in the registry are considered. The time format can be changed to 12 h / 24 h format and there is an optional chime sound every quarter of an hour. Settings are saved in an ini-file.

    » Download


    Slot Machine Slot Machine
    A simple Slot Machine with nice, smooth reel scrolling and sound effect. The reels also get slower before they stop, giving a natural appearance. Two equal fruits make a $1 win, three equals $50, if no NULL is among them.

    » Download


    Chancy Words Chancy Words
    An interesting little program for creating words at random. You can use one of three algorithms (V=vowel - C=consonant) or let the program decide. On every button click a word is added on top of the list. If the list contains more than 100 words, a word on the bottom is deleted for every new one.

    » Download


    Shoot the Alien Shoot the Alien
    A funny little example to demonstrate game timing and graphics handling. Featuring sound effects, intro screen and evaluation. Move the gun with cursor LEFT and RIGHT buttons, shoot with SPACEBAR.

    » Download


    Little Monsters Little Monsters
    This example demonstrates some more complex techniques used in video games: objects and classes, sprite animation, collision detection and a lot more, though I tried to keep it as simple as possible. Click at the monsters to let them disappear, if you can!

    » Download


    Breakout Game Breakout Game
    An even more advanced example of a simple video game. Uses several classes and pointers, but no bitmaps this time. The game has all the basic features you would expect (ball is reflected with different angels from the paddle, for instance), but a real game ready for publishing, would need a bit more (like different kinds of blocks, that vanish only after more than one ball hit and several levels with different block configurations, bonus objects, animations when ball hits a block etc.). Notice that there are always lots of different (and probably better) ways to solve a programming task than those I have used.

    » Download


    Lotto Simulator Lotto Simulator
    Test your chances! This program can make up to 1000,000,000 draws of your favorite numbers, single or timer controlled. It displays 4, 5, and 6 right numbers and the relative frequency they occur with. There are some pretty tough problems for beginners in this program:
    • guarantee that different numbers are set by user
    • no number is drawn twice
    • numbers are sorted ascendantly
    • the right numbers are highlighted


    » Download


    Worm Game Worm Game
    One of the all time classics. Use the cursors to steer the worm. The worm's meaning in life is to eat all the yellow dots (food) and to grow. When he touches the borders or himself, he dies. There are several possibilities to do the game logic, I used a separate "Worm class" and a dynamically growing array of structures to keep track of the worm length. Also it has to be made sure that the yellow dots are not placed on top of the worm. Every five eaten dots, the level and speed is increased. Game stats are displayed in status bar panes. With sound and nice "dying animation sequence". This example is rather advanced and you can use the things shown here for a lot of similar games.

    » Download


    Rotation Rotation
    This demo shows you how to rotate geometric figures around an axis. The functions which accomplish this can be used for any kind of polygon. To make this program even more interesting, I added some options to play with. When you check "Draw trails", the background isn't repainted.

    » Download


    Sinus Sinus
    Demo program to visualize a sinus function. You can change the parameters Frequency and Amplitude. Nothing exciting, but little demo programs like this are always useful as a reference (you can never have enough of them).

    » Download


    Est.: March, 1999 - Last updated: February 28th, 2010
    © 1999-2010 Johannes Wallroth