07-20-2012, 04:44 PM
Well, a module is not what you want to use. Instead of using a module, you are going to want to use a class to create Bullets and Enemies. Inside of this class, you are going to store everything that pertains to these bullets and enemies. So, for example, I will outline the bullet class. In theory, each bullet should have an image, a position, a size, and a damage modifier. So, we could create a class for it with those properties. So, to start:
[code2=vbnet]Public Class Bullet
'Location
Private _x As Integer
Private _y As Integer
'Size
Private _width As Integer
Private _height As Integer
'Image
Private _image As Image
'Damage
Private _damage As Integer
End Class[/code2]
So, then you need to make a constructor, and property methods for those variables.
[code2=vbnet]Public Class Bullet
'Location
Private _x As Integer
Private _y As Integer
'Size
Private _width As Integer
Private _height As Integer
'Image
Private _image As Image
'Damage
Private _damage As Integer
End Class[/code2]
So, then you need to make a constructor, and property methods for those variables.