1) Types are not automatically global but you can make them global
e.g global enemy.bullet
2) Yep, but they're 'special' Blitz arrays.
Type ship
Field missiles[2]
They have a few limitations...
http://www.blitzcoder.com/cgi-bin/code/code_showentry.pl?id=thechange09052002191420&comments=no
You can also have types within types and arrays of types.
Blitzcoder has some articles and Learn to Program 2D Games in Blitzbasic has a good section on this subject.
e.g global enemy.bullet
2) Yep, but they're 'special' Blitz arrays.
Type ship
Field missiles[2]
They have a few limitations...
http://www.blitzcoder.com/cgi-bin/code/code_showentry.pl?id=thechange09052002191420&comments=no
You can also have types within types and arrays of types.
Blitzcoder has some articles and Learn to Program 2D Games in Blitzbasic has a good section on this subject.