Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
How do you detect a collision between ball & bricks in a brick breaker game?
Bounding Box Collision
That should get you started, and give you some terms to search for. Essentially you treat each brick as a bounding box. Based on the ball position you should be able to determine if the ball collides, this is based on the fact you treat the ball as a simple bounding box, with a set height and width.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
Is there a way to draw a sprite with no rect and only a width height and colour like pygame.draw.sprite(colour,width,height)
The answer Is in these docs here https://www.pygame.org/docs/ref/draw.html you can but it requires some shape such as a circle, line, rectangle like you said, or even other shapes.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I know how to make to make whole stage quality low but can't trigger the low quality of the movieclip in the bg. I tried to change stage to movieclip name also but didn't work. Is it even possible to get it work? I just want Movieclip quality low not whole bg.
stage.quality = StageQuality.LOW;
You should build two different background prototype MCs for high quality and low quality, then exchange them whenever you want to set you background to low/high quality. However, if your background is already too simple to not be able to reduce its contents to simulate low quality, seek elsewhere to have your performance upgraded.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I am trying to find the best way to create a shape in Access that is semi-transparent. I am not sure if this is possible but i would like to have a rectangle which is semi-transparent so i can use it to cover certain objects so the user can see the object but with an opaque visual type effect. Is there some code that can help do this?
Ms Access does not currently support transparency
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I need to draw some straight lines with the mouse and then delete them by clicking the button. How can I do that on AS3?
Help me please
You can find a similar question and useful answers here, also, I found a nice tutorial for you, with example (source code) for a mouse drawing and erase.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I have web application which can upload images to server.
I want to crop and rotate image before sent to server.
Any way to do this using HTML 5 Canvas
Yes, html canvas can crop and rotate an image.
Crop: Use the extended properties of context.drawImage.
context.drawImage(img,cropX,cropY,cropWidth,cropHeight,0,0,cropWidth,cropHeight);
Rotate: Use the context.rotate property.
// set the point of rotation (example below sets rotation point at center-image)
context.translate(img.width/2,img.height/2);
// do the rotation (in radians)
context.rotate(radianAngle);
Note: all transforms (translate,rotate,etc) are cumulative unless you context.save/context.restore.