Advertisement



Go Back   Zune Boards > Zune Discussions > Zune Games > Development Discussions

New Member?



 
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Development Discussions All developers who are coding games may stop by here for any help, suggestions, and everything development related.

Closed Thread
 
LinkBack Thread Tools
Old 05-13-2008, 02:57 PM   #1 (permalink)
Support Team
Expert Zuner
 
(-_-)'s Avatar
 
Join Date: Nov 2007
Posts: 2,930
Reputation: 189
Default Changing a game to touch.


I know someone posted something about this before, but I couldn't find it. I was just wondering, is there a simple way to change a game to touch.. Basically, whre in the code do I go to change to touch, and what do I edit?



__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.





(-_-) is offline  
Old 05-13-2008, 05:27 PM   #2 (permalink)
Zuner
 
Join Date: May 2008
Posts: 64
Reputation: 11
Default

I actually think touch is easier to implement. The methods (I cant recall exactly what, but something like GamePad.GetState(Player.One).....YThumbstick & xthumbsitck) each return a number between -1 and 1 (-1 is completely down or left, 1 is all the way up or right). So lets say you move something based on the Y, and it happens to be a paddle. You would say something like;

paddle.Ypos += GamePad....Ythumstick * 5f, or some factor.

Sorry, im not on my PC so i cant give you exact code. If you have anymore questions feel free to ask. Also, the 3.0 came with a little bit of documentation about this under "Zune programming considerations".




amoo3 is offline  
Old 05-14-2008, 10:15 AM   #3 (permalink)
Experienced Zuner
 
jsedlak's Avatar
 
Join Date: May 2008
Posts: 127
Reputation: 26
Default

Touch == Left Thumbstick

Click == DPad
__________________
John Sedlak
Microsoft Xna / DirectX MVP

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.



jsedlak is offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT -8. The time now is 09:31 PM.

 
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0 RC8
vB Ad Management by =RedTyger=
(C) ZuneBoards 2006-2007
Copyright © 2006 - 2008 Zune Boards | About Zune Boards | Legal | A member of the Crowdgather Forum Community