Search | Statistics | User Listing Forums
XNA Resources
XNA Resources ->  XNAResources.com Tutorial Forums -> Sprite Engine Series -> View Thread

You are logged in as a guest. ( logon | register )

zoom
Jump to page : 1
Now viewing page 1 [25 messages per page]
View previous thread :: View next thread
   XNAResources.com Tutorial Forums -> Sprite Engine SeriesMessage format
 
CrazyWu
Posted 2013-08-30 4:59 AM (#617)
Subject: zoom


New user

Posts: 2


(212.58.212.99)
Hi all. Can someone explain me pls, how to upgrade this engine with zoom? I'm using transorm matrix at spritebatch.begin function to make it, but i can't improve picking algorithm for it.
My matrix:
public static Matrix get_transformation(GraphicsDevice graphicsDevice)
{
transform =
Matrix.CreateTranslation(new Vector3(-ViewWidth * 0.5f, -ViewHeight * 0.5f, 0)) *
Matrix.CreateScale(new Vector3(zoom, zoom, 1)) *
Matrix.CreateTranslation(new Vector3(ViewWidth * 0.5f, ViewHeight * 0.5f, 0));
return transform;

}
Top of the page Bottom of the page
CrazyWu
Posted 2013-08-30 5:00 AM (#618 - in reply to #617)
Subject: Re: zoom


New user

Posts: 2


(212.58.212.99)
sry, it must be in tile engine series(
Top of the page Bottom of the page
Jump to page : 1
Now viewing page 1 [25 messages per page]
Jump to forum :
Search this forum
Printer friendly version
E-mail a link to this thread

(Delete all cookies set by this site)
Running MegaBBS ASP Forum Software
© 2002-2017 PD9 Software