Thread: help with a simple game..

  1. #1
    Registered User
    Join Date
    Mar 2006
    Posts
    1

    help with a simple game..

    I am making a simple game.
    And i need help with this :


    it is two walls on my game, and i want, so when the 'O' go in to an wall , then the 'O' shuld instantly be on the other wall

    and i think it is some :
    Code:
    gotoxy(int x, int y)  code
    can anyone help me ??

  2. #2
    Just kidding.... fnoyan's Avatar
    Join Date
    Jun 2003
    Location
    Still in the egg
    Posts
    275
    Once I wrote a simple game with C (like the game in NOKIA phones). You should test the current position of the "O" each time, and if the position is on the wall, locate the cursor on the other side of the screen and then print it.

    If you are using Turbo C (which is rahter old!) you can use its graphics library for this (actually this was what I did)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Creating a simple Windows game
    By ejohns85 in forum C Programming
    Replies: 1
    Last Post: 05-22-2009, 12:46 PM
  2. A "guess my number" game, with simple AI
    By h3ro in forum C++ Programming
    Replies: 7
    Last Post: 11-04-2006, 10:45 PM
  3. craps game & dice game..
    By cgurl05 in forum C Programming
    Replies: 3
    Last Post: 03-25-2006, 07:58 PM
  4. Whats a very simple but good game i can try to make?
    By bluehead in forum C++ Programming
    Replies: 2
    Last Post: 11-06-2001, 09:24 PM
  5. Replies: 1
    Last Post: 11-06-2001, 02:15 PM