x


2D Android game

Hey, I'm trying to create a 2D game for Android, and got stuck pretty early on... I have an image I want to use as background for the scene. The resolution of the image is 800x480 (everything is done in landscape mode). I tried creating a plane and place the image on it, but I'm having really hard time making the image fit to the view, and couldn't find any decent guide/tutorial on the web.

How can this be done easily?

more ▼

asked Feb 19 '11 at 05:06 PM

Luoruize gravatar image

Luoruize
2 1 1 1

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Use an orthographic camera, and set the camera's size to be 1/2 the vertical size of the plane. The horizontal dimensions are dependent on aspect ratio.

more ▼

answered Feb 19 '11 at 06:10 PM

Jessy gravatar image

Jessy
15.6k 72 95 196

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2479
x1037
x258

asked: Feb 19 '11 at 05:06 PM

Seen: 2494 times

Last Updated: Feb 19 '11 at 05:06 PM