Jump to content

View more

Image of the Day

Inventory ! Va falloir trouver une autre couleur pour le cadre D: #AzTroScreenshot #screenshotsaturday https://t.co/PvxhGL7cOH
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

XNA - Read arrays from file

4: Adsense

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   

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



#2 DpakoH   Members   

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