Thread: how to make a Countdown Timer over the game on full screen?

  1. #1
    Registered User
    Join Date
    Jan 2003
    Posts
    25

    how to make a Countdown Timer over the game on full screen?

    How would i INPUT a countdown timer in a game? I would want it to be simple and easy. this would be actually the first program i would make. So i wanna know what should i do to start making this program? Whats the first step on making it? And how should i code the countdown timer?

    I also want the timer to be shown for everyone thats playing in the game also. So if thats not possible, maybe Broadcast a shoutout saying that its over???

  2. #2
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    What... lemme see:
    -This is your first program.
    -You want to use graphics, apparently since it's "fullscreen".
    -You want this to be a multiplayer game, i.e. networking.
    -You want to know the first step to making this game.

    Well, I'll help you out. If this is your first program, I suggest this as a first step:
    Code:
    #include <iostream>
    int main()
    {
         std::cout << "Hello world!";
         return 0;
    }
    You also want this simple and easy, and since this is your second program now:
    Code:
    #include <windows.h>
    #include <iostream>
    int main()
    {
         std::cout << "5...\n";
         Sleep(1000);
         std::cout << "4...\n";
         Sleep(1000);
         std::cout << "3...\n";
         Sleep(1000);
         std::cout << "2...\n";
         Sleep(1000);
         std::cout << "1...\n";
         Sleep(1000);
         std::cout << "BLASTOFF!!!...\n";
         Sleep(1000);
         
         return 0;
    }
    Last edited by Hunter2; 08-13-2003 at 12:07 PM.
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  3. #3
    Registered User
    Join Date
    Jan 2003
    Posts
    25
    Wow Nice Thats Alot! Thanks Alot For That Info...

    But theres one problem...

    this is what i really need to know. and that i get confused about. What should i use???

    Can someone explains these for me please. Because its hard to understand this.

    Check Out The Clips That im Talking About:

    ScreenShot 1

    ScreenShot 2


    Thanks Alot To Everyone That Helped Me
    Last edited by yakabod; 08-13-2003 at 04:04 PM.

  4. #4
    If your starting a new game goto the projects tab and choose either Win32 Application or Win32 Console application depending on what you want. If this is your first project you will want a console application and I wouldn't recommend doing network play or graphics for your first project, stick with text based or use ASCII for "graphics".

    EDIT: Also the example of a setting a timelimit that Hunter2 gave you wasn't a real answer but rather telling you that you should learn the basics first. A real timer isn't difficult though I thought CProgramming had a tutorial on it somewhere but I'm not positive.
    Last edited by unanimous; 08-13-2003 at 04:34 PM.

  5. #5
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    Wow Nice Thats Alot! Thanks Alot For That Info...
    Hope you were being sarcastic, because I sure was Well, since this is your first program, you should go with the Win32 Console Application, and make a console program first (i.e. learn the basics). Most of (if not all) the tutorials here on CProgramming should deal mostly with console programs, as they are much MUCH simpler than normal Windows applications.

    Umm, once you've created the Windows Console Application, you create a new "C++ Source File" (screenshot 2) and insert it into the workspace. This is where all your code (at this point) goes. You'll know what I mean once you do a few tutorials
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C++ Full Screen
    By Unregistered in forum C++ Programming
    Replies: 25
    Last Post: 06-12-2009, 01:33 PM
  2. C Programming 2d Array Question
    By jeev2005 in forum C Programming
    Replies: 3
    Last Post: 04-26-2006, 03:18 PM
  3. Game Engine Link Prob
    By swgh in forum Game Programming
    Replies: 2
    Last Post: 01-26-2006, 12:14 AM
  4. why do game devolpers make you use the disc???
    By nerdyneo in forum A Brief History of Cprogramming.com
    Replies: 37
    Last Post: 01-01-2004, 03:28 AM
  5. Running in full screen mode!
    By Skute in forum Game Programming
    Replies: 0
    Last Post: 12-10-2001, 03:56 AM