Need help creating game with Turbo C

This is a discussion on Need help creating game with Turbo C within the Game Programming forums, part of the General Programming Boards category; Our prof wants us to create a game using turbo. Could someone post codes of simple games that can be ...

  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    34

    Need help creating game with Turbo C

    Our prof wants us to create a game using turbo.
    Could someone post codes of simple games that can be created using turbo C.

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Well, that's not quite how this site works. We don't do your homework for you. We will help you solve your homework given that you show some effort (just the same type of help that your professor would give).

    Of course, a game can be many things:
    1 Simple "guess a number game"
    2 tic-tac-toe.
    3. Self-learning "twenty-questions to find an animal"
    4. Text-action game, e.g. "snake".
    5. Text adventure type thing.
    6. Graphical "pong" game.
    7. Graphical game, such as space invaders.

    The requirement to solve each of those games vary in difficulty (I think I've roughly ordered it from easy to hard, and certainly the two latter ones are quite difficult if you want something that is both complete and fully functional - one could of course make simple versions of either).

    So the first step for you would be to specify what sort of game you are expected to produce. I would expect that above 3 would be something you would be a "term task", rather than something you are expected to finish within a week or two - so a key to what is achievable would be how much time you are supposed to use for this task.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Registered User
    Join Date
    Sep 2008
    Posts
    34
    Can you just give me links that can has info about the functions I need to use to create games.
    Our prof only taught us this functions

    scanf
    printf
    if else

  4. #4
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    And now he expects you to write a game? Well, then it must be a pretty simple game, I'd say.

    It is no point in me giving you links to more complex functions, as you most certainly haven't got sufficient experience to build anything more advanced.

    With those functions, you can make a "guess a number" game - well, you may want to use while or for to make a loop as well.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  5. #5
    Registered User
    Join Date
    Sep 2008
    Posts
    34
    He said childish game like that guessing ........ isn't allowed.
    We need to make tic tac toe, snake, space impact, etc.

  6. #6
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,892
    You can make a tic tac toe. But a snake or space invaders or asteroids is completely impossible with basic I/O functionality.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  7. #7
    Registered User
    Join Date
    Sep 2008
    Posts
    34
    thanks at least i know i can make one using those functions he taught us

  8. #8
    Budding Synth Programmer samGwilliam's Avatar
    Join Date
    Feb 2002
    Location
    Trefforest
    Posts
    368
    Quote Originally Posted by CornedBee View Post
    You can make a tic tac toe. But a snake or space invaders or asteroids is completely impossible with basic I/O functionality.
    I've played an ASCII Space Invaders clone.
    MSVC++ 6.0

  9. #9
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by samGwilliam View Post
    I've played an ASCII Space Invaders clone.
    Yes, but at the very least, you would need a "position the current output here" type function (e.g. gotoxy()), so using STANDARD I/O functionality is not possible here, which is what the original message says.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  10. #10
    Budding Synth Programmer samGwilliam's Avatar
    Join Date
    Feb 2002
    Location
    Trefforest
    Posts
    368
    I thought gotoxy was part of the standard IO. It must be in conio.h, then. Sorry, it's been a while since I made a text mode game.
    MSVC++ 6.0

  11. #11
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by samGwilliam View Post
    I thought gotoxy was part of the standard IO. It must be in conio.h, then. Sorry, it's been a while since I made a text mode game.
    It may well live in stdio.h in some header files - but it is not part of the C standard, and for example Visual Studio doesn't have a gotoxy function at all - you can quite easily make one from available Console API's, but that's not the point here.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 2D RPG Online Game Project. 30% Complete. To be released and marketed.
    By drallstars in forum Projects and Job Recruitment
    Replies: 2
    Last Post: 10-28-2006, 12:48 AM
  2. beach bar (sims type game)
    By DrKillPatient in forum Game Programming
    Replies: 1
    Last Post: 03-06-2006, 12:32 PM
  3. HELP!wanting to make full screen game windowed
    By rented in forum Game Programming
    Replies: 3
    Last Post: 06-11-2004, 04:19 AM
  4. Game Programmer's AIM Circle: Join Today
    By KingZoolerius66 in forum A Brief History of Cprogramming.com
    Replies: 28
    Last Post: 12-20-2003, 11:12 AM
  5. Someone help me with this game??
    By stehigs321 in forum Game Programming
    Replies: 15
    Last Post: 10-30-2003, 08:42 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21