Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


XNA - Read arrays from file


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 QuackTheDuck   Members   -  Reputation: 104

Like
0Likes
Like

Posted 18 August 2013 - 02:13 AM

Hello, i'm working on a simple 2D rpg game, and i've been trying to make so instead of creating an array in a class, i can just load it from a textfile in my "Contents" folder. Something that would be good, is if i could add a switch to generate the textures, for instance:

 

case 'G':

 

Contents.Load<Texture2D>("grass");

 

or something simular?:)

 

Also, if i could add collision, for example a rock?

 

Thanks in advance :3



Sponsor:

#2 DpakoH   Members   -  Reputation: 1146

Like
0Likes
Like

Posted 18 August 2013 - 11:15 AM

maybe you should look into serialization and deserization technique in .net






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS