I am going to make a Tetris clone. In order to make it look more authentic, I want to draw it in a 160×144 area, but scale it to a 640×576 (scaled 4x), so that every pixel looks like 4 pixels. How can I do this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you’re using simple, straightforward Graphics and Graphics2D objects, then drawing a simple square may suffice.
I’ll write a method to do this for myself to make things easier, i.e.