well in english (or anglais
)
you make the "definition" of a type like so:
type player
x#, y#, z#
health
magic
endtype
or something like that. that's just the definition of a player tho; now to make some.
player1 as player
now you've made a player called player1. let's set some stuff.
player1.x#=10
player1.y#=12
player1.z#=30
player1.health=100
player1.magic=25
ok! to access the variables inside a player you use the period.
you can also make an array of player like so:
dim players(10) as player
then it's pretty much the same:
players(0).health=50
players(7).y#=54.5
it's easy.
you can also put types in types, which is really no more difficult:
type vertex
x,y
endtype
type line
v1 as vertex
v2 as vertex
endtype
longline as line
longline.v1.x=5
longline.v1.y=10
longline.v2.x=200
longline.v2.y=400
i'm looking at yooooou!