Advertisement

Map Editor?

Started by December 12, 2000 01:38 PM
0 comments, last by The_Krill 24 years, 1 month ago
I am trying to make a map editor for a side-scroller game. I am using delphi to program it, but can''t figure out how to load a the text file into an array (Layer2[13][130]). I am rather stumped. So if any of you can help, with some source code or anything then please send it. C++, VB, will be fine. I may have to use them to make the editor. Thanx in advance -Kevin Souter P.S. The game is being programmed in C++ using OpenGL.
Never argue with an idiot, they drag you down to their level and then beat you with experience.
well, when i did a level editor, i saved things like ..
say you have an array of (4,5) ..you want 4 lines of the 5 things in the file, to look like:
XXXXX
XXXXX
XXXXX
XXXXX
XXXXX ..or so. each X represents one of the latter array parts. anyway, i just declared everything as a string or integer, and jammed them in there, with dots. like:
say var(1,1) has a bunch of parts, like:
blahblah
0304
blahbloo
blue
58403
, just compact it to: [blahblah.0304.blahbloo.blue.58400] and do the same with the rest. then read it like such


me > you
me > you

This topic is closed to new replies.

Advertisement