Arrays with coordinate system

This is a discussion on Arrays with coordinate system within the C++ Programming forums, part of the General Programming Boards category; HI!!!!!!! I wanted to make a text based, turn-based fighting game. So I was thinking that I could use arrays ...

  1. #1
    Registered User LiNeAr's Avatar
    Join Date
    Aug 2005
    Posts
    31

    Arrays with coordinate system

    HI!!!!!!! I wanted to make a text based, turn-based fighting game. So I was thinking that I could use arrays for a coordinate system. Such as char arena [12][12], would indicate the size of the arena. And from within that i could issue specific points, like char arena [2][2], would be an enemy or something. Could this work?
    IDE: Microsoft Visual C++ .net Standard 2003

  2. #2
    ZuK
    ZuK is offline
    Registered User
    Join Date
    Aug 2005
    Location
    Austria
    Posts
    1,990
    yes that works

  3. #3
    ^ Read Backwards^
    Join Date
    Sep 2005
    Location
    Earth
    Posts
    282
    Yep.

  4. #4
    Registered User LiNeAr's Avatar
    Join Date
    Aug 2005
    Posts
    31
    Ok thanks, that's all I wanted to know.
    IDE: Microsoft Visual C++ .net Standard 2003

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. New system build wont boot
    By lightatdawn in forum Tech Board
    Replies: 7
    Last Post: 12-02-2005, 06:58 AM
  2. Building B-Tree from Arrays
    By 0rion in forum C Programming
    Replies: 1
    Last Post: 04-09-2005, 03:34 AM
  3. Help with arrays and pointers please...
    By crazyeyesz28 in forum C++ Programming
    Replies: 8
    Last Post: 03-17-2005, 01:48 PM
  4. Crazy memory problem with arrays
    By fusikon in forum C++ Programming
    Replies: 9
    Last Post: 01-15-2003, 09:24 PM
  5. Flight Simulator Viewing System
    By Anarchist in forum Game Programming
    Replies: 8
    Last Post: 02-12-2002, 05:16 AM

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