0

I'm working on a game where I want to replace all these white blocks and the ball (which uses a RectF collider) with images, but still keep the characteristics of the game. Super Breakout

How can I import an image like this: Paddle into the game but still keep the game mechanics? (Colliding and such).

Let me know if I should post some code I already have in order to help or anything else. Thank you!

1 Answers1

1

You can use the method:

drawBitmap(Bitmap bitmap, Rect src, RectF dst, Paint paint)

dst have to be rectF you currently been using.

For a bitmap like the sample one you have shown, scr can be null since you want to draw the entire image.

Bertram Gilfoyle
  • 9,899
  • 6
  • 42
  • 67