Programming 2D Games

The official forum for "Programming 2D Games" the book by: Charles Kelly

It is currently Mon Aug 21, 2017 7:27 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Tue Jun 20, 2017 11:02 pm 
Offline

Joined: Wed Mar 22, 2017 10:33 pm
Posts: 14
Hi. I am making a game with a fairly large world. 300x300 tiles big. Each tile is 32x32 pixels wide. But, paint.net says that file is 351 mb. I do not want my game to be that big, especially since then most of the size would be the map. Would it take up less space if i used an internal array? i assume so. Thanks a ton!


Top
 Profile  
Reply with quote  
PostPosted: Mon Jun 26, 2017 8:49 pm 
Offline
Site Admin
User avatar

Joined: Sat Jan 28, 2012 4:36 pm
Posts: 536
Several of the chapter 10 examples on the website contain code that demonstrates how to load the map file from disk into an array.

_________________
Professor Kelly


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group