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.

Reply
 
LinkBack Thread Tools
Old 07-07-2008, 08:49 AM   #1 (permalink)
Experienced Zuner
 
Join Date: May 2008
Posts: 187
Reputation: 16
Default 2D XNA Tutorial





__________________
Jesus is Lord

Celebrity wallpapers coming to a zune near you!



zunebro is offline   Reply With Quote
Old 07-07-2008, 10:17 AM   #2 (permalink)
Jr. Member
 
Join Date: Nov 2006
Posts: 362
Reputation: 30
Send a message via MSN to Ricardo Dawkins
Default

Very good...+rep for finding these tutorials...
__________________

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.

Black Zune 80 & Samsung YH-J70 + Zune 80 Premium + AKG K26p + JVC HA-FX33 Blue -Marshmallows-

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





Ricardo Dawkins is offline   Reply With Quote
Old 07-07-2008, 10:20 AM   #3 (permalink)
zB Nightshift
Support Team
Premium Member
Section Staff
Super Zuner
 
Justananomaly's Avatar
 
Join Date: Nov 2007
Location: 127.0.0.1
Posts: 1,752
Reputation: 468
Send a message via MSN to Justananomaly Send a message via Yahoo to Justananomaly Send a message via Skype™ to Justananomaly
Default

Great find! +rep
__________________

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.
|
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.

"Anomalys exist, for without struggle there is no progress."
This post may or may not contain accurate information. This post is that
of my own opinion, knowledge, and reasoning, and does not nessessarily
reflect that of CroudGather or Zuneboards and their affiliates, period.



Justananomaly is offline   Reply With Quote
Old 07-07-2008, 10:24 AM   #4 (permalink)
Experienced Zuner
 
Spike!'s Avatar
 
Join Date: Apr 2008
Posts: 175
Reputation: 13
Default

Do you even read before you post these Tutorials? Or do you simply do it to trick people into giving you +rep?

Not only is this tutorial for creating games to use with the Xbox 360, it is for XNA 2.0 which dosen't even work with the Zune.




Spike! is offline   Reply With Quote
Old 07-07-2008, 11:02 AM   #5 (permalink)
Jr. Member
 
Tiptup300's Avatar
 
Join Date: Apr 2008
Posts: 392
Reputation: 121
Default

XNA 3.0 is identical to XNA 2.0. Not to mention the steps involved in programming for the xbox 360 are identical.



Tiptup300 is offline   Reply With Quote
Old 07-07-2008, 12:00 PM   #6 (permalink)
Experienced Zuner
 
Join Date: May 2008
Posts: 187
Reputation: 16
Default

rep isn't cash in my pocket bro...
while this may not be actually for the zune it's a start in learning. if it's not for you just ignore the message.


Quote:
Originally Posted by Spike! View Post
Do you even read before you post these Tutorials? Or do you simply do it to trick people into giving you +rep?

Not only is this tutorial for creating games to use with the Xbox 360, it is for XNA 2.0 which dosen't even work with the Zune.
__________________
Jesus is Lord

Celebrity wallpapers coming to a zune near you!



zunebro is offline   Reply With Quote
Old 07-08-2008, 03:11 PM   #7 (permalink)
Zuner
 
Join Date: Jun 2008
Posts: 56
Reputation: 11
Default

I will give you + rep for this but honestly it isn't very hard to find this. This is the official site (I think).



seifer93 is offline   Reply With Quote
Old 07-08-2008, 06:21 PM   #8 (permalink)
Experienced Zuner
 
Epoc's Avatar
 
Join Date: Sep 2007
Location: Vermont
Posts: 177
Reputation: 18
Default

Quote:
Originally Posted by Spike! View Post
Do you even read before you post these Tutorials? Or do you simply do it to trick people into giving you +rep?

Not only is this tutorial for creating games to use with the Xbox 360, it is for XNA 2.0 which dosen't even work with the Zune.
It seems to be working for me fine, though I have some errors I can't quite seem to straiten out involving parentheses...
__________________
\nn/===IRON MAIDEN RULES===\nn/

Xbox live/Zune= Epocilyps. Invites are fine. need people with zunes on my friends list.


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





Epoc is offline   Reply With Quote
Old 07-08-2008, 07:12 PM   #9 (permalink)
zB Programmer
Experienced Member
 
LedZepp's Avatar
 
Join Date: Mar 2007
Posts: 975
Reputation: 119
Default

Spike! get off your high horse. XNA 3.0 is mainly the same as 2.0 except maybe a couple syntax changes, a couple new classes, and the fact that it supports the Zune.

Any tutorial you find that involves XNA and 2D graphics will work.
__________________

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




LedZepp is offline   Reply With Quote
Old 07-09-2008, 12:51 AM   #10 (permalink)
Jr. Member
 
Tiptup300's Avatar
 
Join Date: Apr 2008
Posts: 392
Reputation: 121
Default

Quote:
Originally Posted by LedZepp View Post
Spike! get off your high horse. XNA 3.0 is mainly the same as 2.0 except maybe a couple syntax changes, a couple new classes, and the fact that it supports the Zune.

Any tutorial you find that involves XNA and 2D graphics will work.
XNA isn't a language. It doesn't have a syntax.



Tiptup300 is offline   Reply With Quote
Old 07-09-2008, 05:35 AM   #11 (permalink)
Experienced Zuner
 
Join Date: May 2008
Posts: 187
Reputation: 16
Default

one thing i know from programming php and other webstuff it makes good pratice to open and close all brackets, braces, parenthesis, and greater/less than signs before putting the rest of the code in it.

Quote:
Originally Posted by Epoc View Post
It seems to be working for me fine, though I have some errors I can't quite seem to straiten out involving parentheses...
__________________
Jesus is Lord

Celebrity wallpapers coming to a zune near you!



zunebro is offline   Reply With Quote
Old 07-09-2008, 11:35 AM   #12 (permalink)
Purger of Ignorance
zB Programmer
Section Staff
Super Zuner
 
Netrix's Avatar
 
Join Date: Jun 2008
Location: In my own world
Posts: 1,670
Reputation: 231
Send a message via MSN to Netrix
Awards Showcase
Favorite zB Extremity 
Total Awards: 1
Default

Quote:
Originally Posted by Tiptup300 View Post
XNA isn't a language. It doesn't have a syntax.
I think he meant different parameters or different uses for certain functions.
__________________
"Against logic there is no armor like ignorance." - Laurence J. Peter

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


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




Netrix is offline   Reply With Quote
Old 07-09-2008, 12:22 PM   #13 (permalink)
Jr. Member
 
SimReality's Avatar
 
Join Date: May 2008
Posts: 410
Reputation: 60
Default

Quote:
Originally Posted by Tiptup300 View Post
XNA isn't a language. It doesn't have a syntax.
If we want to get pedantic, technically XNA isn't an API either; XNA is a brand. The XNA Framework (XNA FX) is the API. XNA Game Studio (XNA GS) is the Visual Studio integration and deployment system. XNA is the brand name for all of Microsoft game technologies including the XNA FX, XNA GS, and native C++ based DirectX (possibly others, but that I'm not sure of). But this is all just dragging us waay off topic.

Back on topic, yes, any tutorial targetting XNA GS 2.0 will work for XNA GS 3.0 CTP as far as I can tell. I've yet to see any method or class that works in 2.0 that no longer works the same in 3.0).



SimReality is offline   Reply With Quote
Old 10-18-2008, 08:28 AM   #14 (permalink)
Zuner
 
BaboonOfTheYard's Avatar
 
Join Date: Oct 2008
Posts: 90
Reputation: 21
Default

This is a great tutorial! Thanks, it's really helping me. But I have run into a problem.

In video 4.3, 'Drawing the Background', I was told to type the following under 'protected override void Draw(GameTime gameTime)':

Code:
            spriteBatch.Begin(SpiteBlendMode.AlphaBlend);
            spriteBatch.Draw(backgroundTexture, viewportRect, Color.White);
            spriteBatch.End();
However, XNA tells me this in the Error List:

Quote:
Error 1 The name 'SpiteBlendMode' does not exist in the current context
Because of this error, it won't let me debug the game.

And another small thing, though I don't think this effected anything, in the tutorial's example of the code, this was written under 'protected override void LoadContent()':

Code:
            spriteBatch = new SpriteBatch(graphics.GraphicsDevice);
However, in my version of the code, the 'graphics.' in front of 'GraphicsDevice' was omitted:

Code:
            spriteBatch = new SpriteBatch(GraphicsDevice);
I went ahead and put the 'graphics.' in there, and it doesn't seem to have effected anything, but could someone explain this to me?
__________________

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




BaboonOfTheYard is offline   Reply With Quote
Old 10-19-2008, 11:41 AM   #15 (permalink)
Purger of Ignorance
zB Programmer
Section Staff
Super Zuner
 
Netrix's Avatar
 
Join Date: Jun 2008
Location: In my own world
Posts: 1,670
Reputation: 231
Send a message via MSN to Netrix
Awards Showcase
Favorite zB Extremity 
Total Awards: 1
Default

Quote:
Originally Posted by BaboonOfTheYard View Post
This is a great tutorial! Thanks, it's really helping me. But I have run into a problem.

In video 4.3, 'Drawing the Background', I was told to type the following under 'protected override void Draw(GameTime gameTime)':

Code:
            spriteBatch.Begin(SpiteBlendMode.AlphaBlend);
            spriteBatch.Draw(backgroundTexture, viewportRect, Color.White);
            spriteBatch.End();
However, XNA tells me this in the Error List:



Because of this error, it won't let me debug the game.

And another small thing, though I don't think this effected anything, in the tutorial's example of the code, this was written under 'protected override void LoadContent()':

Code:
            spriteBatch = new SpriteBatch(graphics.GraphicsDevice);
However, in my version of the code, the 'graphics.' in front of 'GraphicsDevice' was omitted:

Code:
            spriteBatch = new SpriteBatch(GraphicsDevice);
I went ahead and put the 'graphics.' in there, and it doesn't seem to have effected anything, but could someone explain this to me?
SpiteBlendMode does not exist, but SpriteBlendMode does.

GraphicsDevice and graphics.GraphicsDevice in this case are basically the same thing, so it does not matter which one you use.
__________________
"Against logic there is no armor like ignorance." - Laurence J. Peter

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


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




Netrix is offline   Reply With Quote
Reply


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 08:00 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