help with a simple game..

This is a discussion on help with a simple game.. within the C++ Programming forums, part of the General Programming Boards category; I am making a simple game. And i need help with this : it is two walls on my 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
    269
    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, 01: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

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