Cannon Game and Arrays

This is a discussion on Cannon Game and Arrays within the C++ Programming forums, part of the General Programming Boards category; What I would like to do is make a cannon game. Two cannons fire at each other on random terrain, ...

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    145

    Question Cannon Game and Arrays

    What I would like to do is make a cannon game. Two cannons fire at each other on random terrain, adjusting the angles and such before firing the shell (similar to the old Scorched Earth game, if anyone can remember those days). Anyhow, I was wondering how I should start this project.

    On another note, I was looking for tutorials on Arrays. I didn't really find much. Could someone point me in the right direction of a good tutorial so I can do 2D arrays and such things. Thank you in advance for the links and comments.

    Kyoto Oshiro
    Horizon Games
    http://www.angelfire.com/realm2/horizon/files.html

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    int Array[5][5]; <-- 2D array
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  3. #3
    Banned frenchfry164's Avatar
    Join Date
    Oct 2001
    Posts
    1,552
    int variable [5][5][5]; <-- 3D Array

  4. #4
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    int Array[5][5][5][5][5][5][5][5][5][5]; 10D array

    (Actually, he was asking how you created a 2D array )

  5. #5
    Registered User
    Join Date
    Feb 2002
    Posts
    145

    Arrow Okay...

    Alrighty then, thanks guys (or girls, or whatever you may be )

    Kyoto

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. need help using arrays ( simple hangman game)
    By skymoha in forum C Programming
    Replies: 2
    Last Post: 03-04-2009, 04:52 AM
  2. Replies: 23
    Last Post: 12-06-2008, 01:39 PM
  3. Problems in a game program
    By ChronoSquare in forum C++ Programming
    Replies: 4
    Last Post: 06-08-2006, 08:32 AM
  4. Help with Char Arrays in my game
    By madgolfertom in forum Game Programming
    Replies: 6
    Last Post: 03-23-2004, 04:40 PM
  5. Crazy memory problem with arrays
    By fusikon in forum C++ Programming
    Replies: 9
    Last Post: 01-15-2003, 09:24 PM

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