XNA Essentials

Game Programming for Xbox 360, PC + Windows Phone

NAVIGATION - SEARCH

Learning from XNA Game Studio Unleashed 3.0

Hi. I'm new here. I have studied c# and am now going through Unleashed 3.0.


I was wandering. After I finish the book, will I know how to expand the 2d side scroller game?


Or should I figure out how to expand the 2d side scroller game before going onto the next chapters?


I want to turn the game into a proper 2d side scrolling game, like the game "Clover".....


thanx.

dshuffman33 - Saturday, May 15, 2010 @ 12:41 PM

Re: Learning from XNA Game Studio Unleashed 3.0

After the Parallax Side Scroller there isn't much more discussion on new 2D topics.  There is some discussion regarding update the 2D game for the Zune, but if you are mainly interested in a side scroller then you need to determine how large your levels are going to be.  Typically it would be better to use a tile engine.  Back in the .NET 2.0 days, Nick Gravelyn did a video series on creating his own tile engine.  Since then he uploaded the videos to youtube.


Since then, he has taken the approach of using an off the shelf tile editor: Tiled.


http://blog.nickgravelyn.com/2010/03/know-when-to-be-lazy/


http://blog.nickgravelyn.com/2010/03/tiledlib-now-on-codeplex/


http://tiledlib.codeplex.com/


Now, you do not need to use a tile engine when the levels are small like Clover's.  It can all fit in memory, but I did want to mention the use of tile engines since most scrolling 2D games are done that way.


You should also look at the HLSL chapters since they will also help in your 2D game adventure.  You will also want to look at the  Finite State Machine chapter talking about game states. 


I hope this information helps.


Good luck on your game!!


Chad

Chad Carter - Sunday, May 16, 2010 @ 4:27 PM

Re: Learning from XNA Game Studio Unleashed 3.0

Thankyou for your quick reply!!


I am currently trying to figure out if I would benefit from mastering C# before going back to the book.


I understand Basic C#....... but haven't had any real practice with it outside of "Head First C#".


How would an intermediate programmer use your book "XNA Game Studio 3.0 Unleashed" after going through it?


Any advice?


Thanx....


 


David.

dshuffman33 - Saturday, May 22, 2010 @ 1:53 PM

Re: Learning from XNA Game Studio Unleashed 3.0

David,


 


[quote user="dshuffman33"]


I am currently trying to figure out if I would benefit from mastering C# before going back to the book.


I understand Basic C#....... but haven't had any real practice with it outside of "Head First C#".


[/quote]


If any of the programming concepts or syntax are confusing then you should definitely spend some more time understanding C#.  Understanding concepts like Polymorphism and Inheritance is assumed.  Understanding Generics are also assumed.  I do not use any C# 3.0 specific features like LINQ in the book nor any C# 4.0 features.


If you understand the concepts above then you should be ok, but having a deeper understanding of the language you are writing code with is never a bad thing.


I definitely suggest folks to read my book from start to finish.  Even if all you ever plan on doing is 2D development you will need to read the earlier chapters that discuss 3D Basics because that is where certain XNA concepts like Game Components and Game Services are defined.  One of the benefits of a book in my opinion is that the reader can go on a journey from beginning to the end to understand the concepts.  This is easier than trying to find information on the web sometimes.  Once you know a topic that you want more information on, that is where knowing the right question to ask is key.  This is where I think online resources shine.  The biggest hurdle is not knowing what you don't know.  What I mean by that is when we are learning something new it is hard to find reference material unless we know what to search for.  My hope is that my book when read from front to back provides enough information to help you dig into different topics deeper on your own.  Physics and Artificial Intelligence is a prime example of giving just a taste on a subject with the expectation that the reader will search out more detailed information if they want to create more complex algorithms.


[quote user="dshuffman33"]How would an intermediate programmer use your book "XNA Game Studio 3.0 Unleashed" after going through it?[/quote]


Once a reader has finished my book my expectation is that they understand all the code for the 4 games they created during the course of the book.  With this knowledge they should be able to create their own 2D and 3D Single Player and Multi-player games and sell their creations on Xbox LIVE Indie Games (Formerly Xbox LIVE Community Games).


I hope this information helps.  If you have any additional questions as you go through the book please don't hesitate to ask.


Happy Learning!


Chad

Chad Carter - Saturday, May 22, 2010 @ 8:20 PM