Jump to content
Xtreme .Net Talk

JNewt

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by JNewt

  1. If you didn't install the documentation with the SDK then, yeah, you can find it online at MSDN. You pretty much just need to use the DrawImage method on your form's graphics object. A quick demo of GDI+: Go to your form's Paint event and insert the following: Dim myGraphics As Graphics = e.Graphics myGraphics.DrawLine(Pens.Red, 0, 0, Me.Width, Me.Height) I would have used the DrawImage method in my example except that it involves declaring an image object and loading an image (both extremely simple, but would have increased the scope of the example).
  2. Well, if you're using DirectX, you need to use normal Draw function instead of the DrawFast. One of the parameters is a source rectangle that will allow you to specify a particular area of the source surface to blit from. TileX=MouseX\32 TileY=MouseY\32 The forward slashes perform integer division (returns a whole number). So a mouseclick at X=42, Y=10 will be on the tile at 1,0.
  3. Smooth borders can be accomplished with GDI+; just blit a bitmap that has a checkerboard pattern of transparent/opaque pixels along the border. Wavy borders can be accomplished with a similar method; just use different patterns of transparency along the borders and cycle through. I think you could use a similar method for fog effects; probably much cheaper drawing-wise than using a particle system.
×
×
  • Create New...