Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Module Issue
#2
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.
My Blog | My Setup | My Videos | Have a wonderful day.


Messages In This Thread
Module Issue - by Vinwarez - 07-20-2012, 04:37 PM
Re: Module Issue - by brandonio21_phpbb3_import2 - 07-20-2012, 04:44 PM
Re: Module Issue - by Vinwarez - 07-20-2012, 04:48 PM
Re: Module Issue - by brandonio21_phpbb3_import2 - 07-20-2012, 06:37 PM
Re: Module Issue - by Vinwarez - 07-21-2012, 01:33 AM
Re: Module Issue - by brandonio21_phpbb3_import2 - 07-21-2012, 12:25 PM
Re: Module Issue - by Vinwarez - 07-21-2012, 01:37 PM
Re: Module Issue - by brandonio21_phpbb3_import2 - 07-22-2012, 04:19 AM
Re: Module Issue - by Vinwarez - 07-22-2012, 06:29 AM
Re: Module Issue - by brandonio21_phpbb3_import2 - 07-22-2012, 05:32 PM
Re: Module Issue - by Vinwarez - 07-22-2012, 05:52 PM
Re: Module Issue - by brandonio21_phpbb3_import2 - 07-22-2012, 09:23 PM
Re: Module Issue - by Vinwarez - 07-23-2012, 02:08 AM
Re: Module Issue - by brandonio21_phpbb3_import2 - 07-23-2012, 01:20 PM
Re: Module Issue - by Vinwarez - 07-24-2012, 08:18 AM
Re: Module Issue - by brandonio21_phpbb3_import2 - 07-24-2012, 10:43 PM
Re: Module Issue - by Vinwarez - 07-24-2012, 11:25 PM
Re: Module Issue - by brandonio21_phpbb3_import2 - 07-24-2012, 11:38 PM
Re: Module Issue - by Vinwarez - 07-24-2012, 11:47 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Dual Menu Strip Issue Moldraxian 3 16,844 08-15-2012, 12:36 PM
Last Post: brandonio21
  MySQL Database Issue Moldraxian 7 29,061 08-13-2012, 08:58 PM
Last Post: brandonio21
  Remove Enemy [Game Issue] Vinwarez 3 14,541 07-14-2012, 02:15 PM
Last Post: brandonio21
  Launching Projectile [Game Issue] Vinwarez 11 33,495 07-13-2012, 03:29 PM
Last Post: brandonio21

Forum Jump:


Users browsing this thread: 1 Guest(s)