• Advertisement

Archived

This topic is now archived and is closed to further replies.

array in array

This topic is 5700 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Im making a airplane game with scrolling backroud. I want to save enemy plane formations in arrays but then those arrays have to be in another array, how do i do that? type TSpriteClass = class of TSprite; TEnemyFormation = record c: TSpriteClass; x: Integer; y: Integer; end; const EnemyFormationTable1: array[0..3] of TEnemyFormation = ( (c: TAirPlane; x: 100; y: 0), (c: TAirPlane; x: 200; y: 0), (c: TAirPlane; x: 300; y: 0), (c: TAirPlane; x: 400; y: 0) ); Hope you understand what i mean.

Share this post


Link to post
Share on other sites
Advertisement
I don''t really see where the problem is...
here''s an example:

type
TMyArray = array[0..100, 0..100] of TWhatever;

var
ArrayInArray: array[0..20] of TMyArray;


or even

var
ArrayInArray: array[0..20] of array[0..20] of TWhatever;

Share this post


Link to post
Share on other sites

  • Advertisement