04-03-2004, 04:23 AM
Lets say i was making a 3D environment in QBasic
ok.....lets say i hava a map array
so i say that i can only see so far....
How would i go about displaying the ground tile?
Please assume:
Any input would be very helpful
Alex~
ok.....lets say i hava a map array
Code:
'This is just a skeleton..there is more in my code
TYPE MAPTYPE
TextureIndex as integer 'Index of texture in array (not in this code)
Polygons as integer 'Number of polygons in this map position
Height as integer
END TYPE
DIM Map(100,100) AS MAPTYPE
so i say that i can only see so far....
Code:
CONST SightRange = 5 '5 grid spaces ahead
CONST SightRangeAngle = 20 'Angle (from center) -20 to 20 degrees
How would i go about displaying the ground tile?
Please assume:
Code:
'Please also note that these are fragments.....only the stuff that
'needs to be there...
TYPE PLAYERTYPE
x as integer
y as integer
z as integer
vx as single
vy as single
vz as single
deg as single 'angle currentally at
rad as single 'angle in radians
END TYPE
CONST PI = 3.141596#
DIM TileArray(####) AS INTEGER 'My Tile Array
DIM Player AS PlayerType
Any input would be very helpful
Alex~