here is the basic code for my program, i built it to be very interchangeable. i wrote it in school so i haven't had time to actually build the array yet. All of the arguments used in the functions will be replaced with positions in an array which is available within functions and as univeral variables.
i have left the arguments in to give an idea of what data will need to flow in and out of these sections
someone told me that i'm trying to use DB as if its object oriented, but i've never actually used an object oriented language. What exactly am i doing and will the data going in and out of the array be to slow?
`these are my functions
#include Control
#include Shoot
#include Collision
#include Drop
#include explosion
DIM Data(20,20)
DO
`All the arguments below will be removed and instead they will
`be taken from a universal array, data()
Control(X#,Y#,Z#,Gravity,Sensativity)
`shoot the bullet
If mouseClick()=1
Shoot(X#,Y#,Z#,Bulletlife,Guntype)
If collision(X,Y,Z)=1 then Hit=1
If Hit=1 then done=Explosion()
If done=1 Then Hit=0 : done=0
endif
`pick up gun or drop gun
If Inkey$()="G"
If Primary=1 Then Drop(1)
If Secondary = 1 then Drop(2)
Endif
If Primary=0 then PickUp(1)
If secondary=1 then PickUp(2)
This is realllly sketchy and i think i have some fundamental errors in my orginazation, its basically just a brainstorm right now, but you get the general idea of how much info will have to be written into and out of the array every single revolution. Will this be slow or is writing in and out of an array slow?
What about with a memblock?
256k ought to be enough for anybody
-Bill Gates