|
||
|
GP Mailing List
ATXGPSIG List
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] RE: Creating maps for scrolling............
You could always do it manually with your favourite paint program (eg paint shop pro). Just figure out how big the final image will be, make a new one, and copy and paste. It will be a pretty big pain to do this with a mouse, but it's possible. Some programs can even do it automatically. Paul Robson > -----Original Message----- > From: gameprogrammer-owner@gameprogrammer.com > [mailto:gameprogrammer-owner@gameprogrammer.com]On Behalf Of Josiah > Avery > Sent: Thursday, 22 June 2000 2:48 AM > To: gameprogrammer@gameprogrammer.com > Subject: Creating maps for scrolling............ > > > Hello, > > I am trying to write a routine which combines all the images data of x > amount of images, and combines them into one large image. That way, I can > create another function which pans over the large image. Here is a bit of > code: > > byte * > LoadMap(image * padtMapList , byte * pfcDestinationMap , magnitude_var > iNumberOfMaps) > { > byte * video = (byte *)0xA0000000L; > > try > { > pfcDestinationMap = new byte[RESOLUTION * iNumberOfMaps]; > } > > catch(xalloc error) > { > TerminateGraphics(); > printf("Unable to load map!!\n"); > exit(1); > } > > for(long_var iTotalIndex = 0,iMapNumber = 0;iMapNumber < iNumberOfMaps; > iMapNumber++) > { > > for(long_var iIndex = 0;iIndex < RESOLUTION;iIndex++,iTotalIndex++) > { > pfcDestinationMap[iTotalIndex] = > (byte)padtMapList[iMapNumber].buffer[iIndex]; > } > } > > return pfcDestinationMap; // <- this points to the beggining of the newly > initalized map > } > > If anyone sees anything that I may have missed, please let me know... > > Josiah > > ________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com > > ================================================================= > The GameProgrammer.Com mailing list is for the open discussion > of any topic related to the art, science, and business of > programming games. This list is especially tolerant of beginners. > We were all beginners once > > To SUBSCRIBE or UNSUBSCRIBE please visit: > http://gameprogrammer.com/mailinglist.html > ================================================================= The GameProgrammer.Com mailing list is for the open discussion of any topic related to the art, science, and business of programming games. This list is especially tolerant of beginners. We were all beginners once To SUBSCRIBE or UNSUBSCRIBE please visit: http://gameprogrammer.com/mailinglist.html
|
|