Coding
From ArdekanturWiki
Contents |
[edit] World and Object Design
[edit] Tileset File Format
See Graphics.
[edit] Settings File Format
A consistent and useful file format must be created for settings that contain information regarding:
- The id of the tileset
- The name of the location
- The width and height of the location
- Whether or not the location is affected by sunlight
- Whether or not the location is affected by weather
- A description of the location containing what tile a square is and the square's attributes
Game state will be responsible for objects that become part of the landscape, i.e. plants.
Square attributes will range from the ability to either walk or bump into a square, to if the square leads to another location, and if so, what location that is, and what direction you have to approach the square from in order to enter the new location.
[edit] Preliminary Attempt
ID:4f LOC:Jack's House - Indoors W:16 H:16 AFFECT_DAYTIME:FALSE AFFECT_WEATHER:FALSE 0000:0000:0000|0000:0000:0000|0000:0000:0000|0000:0000:0000|0000:0000:0000|0000:0000:0000|0000:0000:0000|0000:0000:0000|0000:0000:0000|0000:0000:0000|0000:0000:0000|0000:0000:0000|0000:0000:0000|0000:0000:0000|0000:0000:0000|0000:0000:0000| 0000:0000:0000|0001:0000:0000|0002:0000:0000|0002:0000:0000|0002:0000:0000|0002:0000:0000|0002:0000:0000|0003:0000:0000|0002:0000:0000|0002:0000:0000|0002:0000:0000|0002:0000:0000|0002:0000:0000|0002:0000:0000|0001:0000:0000|0000:0000:0000| 0000:0000:0000|0004:0000:0000|0005:0000:0000|0006:0000:0000|0007:0000:0000|0008:0000:0000|0009:0000:0000|0003:0000:0000|0005:0000:0000|0009:0000:0000|000a:0000:0000|000a:0000:0000|0009:0000:0000|000b:0000:0000|000c:0000:0000|0000:0000:0000| 0000:0000:0000|0004:0000:0000|000d:0000:0000|000e:0000:0000|000f:0000:0000|0010:0000:0000|0011:0000:0000|0012:0000:0000|0013:0000:0000|0014:0000:0000|0015:0000:0000|0016:0000:0000|0017:0000:0000|0005:0000:0000|000c:0000:0000|0000:0000:0000| 0000:0000:0000|0004:0000:0000|0018:0000:0000|0019:0000:0000|001a:0000:0000|001b:0000:0000|001c:0000:0000|001d:0000:0000|001e:0000:0000|001f:0000:0000|0020:0000:0000|0021:0000:0000|0022:0000:0000|0023:0000:0000|000c:0000:0000|0000:0000:0000| 0000:0000:0000|0004:0000:0000|0024:0000:0000|0025:0000:0000|0026:0000:0000|0027:0000:0000|0028:0000:0000|0029:0000:0000|002a:0000:0000|002b:0000:0000|002c:0000:0000|002d:0000:0000|002e:0000:0000|002f:0000:0000|000c:0000:0000|0000:0000:0000| 0000:0000:0000|0004:0000:0000|0030:0000:0000|0031:0000:0000|0026:0000:0000|0026:0000:0000|0032:0000:0000|0026:0000:0000|0032:0000:0000|0026:0000:0000|0032:0000:0000|0026:0000:0000|0032:0000:0000|0033:0000:0000|000c:0000:0000|0000:0000:0000| 0000:0000:0000|0004:0000:0000|0034:0000:0000|0035:0000:0000|0032:0000:0000|0026:0000:0000|0032:0000:0000|0036:0000:0000|0037:0000:0000|0038:0000:0000|0032:0000:0000|0026:0000:0000|0032:0000:0000|0033:0000:0000|000c:0000:0000|0000:0000:0000| 0000:0000:0000|0004:0000:0000|0032:0000:0000|0026:0000:0000|0032:0000:0000|0026:0000:0000|0039:0000:0000|003a:0000:0000|003b:0000:0000|003c:0000:0000|0032:0000:0000|0026:0000:0000|0032:0000:0000|0033:0000:0000|000c:0000:0000|0000:0000:0000| 0000:0000:0000|0004:0000:0000|003d:0000:0000|003e:0000:0000|003f:0000:0000|0026:0000:0000|0039:0000:0000|0040:0000:0000|0041:0000:0000|0042:0000:0000|0032:0000:0000|0026:0000:0000|0032:0000:0000|0033:0000:0000|000c:0000:0000|0000:0000:0000| 0000:0000:0000|0004:0000:0000|0043:0000:0000|0044:0000:0000|0045:0000:0000|0026:0000:0000|0026:0000:0000|0032:0000:0000|0046:0000:0000|0032:0000:0000|0032:0000:0000|0026:0000:0000|0032:0000:0000|0033:0000:0000|000c:0000:0000|0000:0000:0000| 0000:0000:0000|0004:0000:0000|0032:0000:0000|0026:0000:0000|0032:0000:0000|0026:0000:0000|0026:0000:0000|0032:0000:0000|0026:0000:0000|0032:0000:0000|0032:0000:0000|0026:0000:0000|0032:0000:0000|0033:0000:0000|000c:0000:0000|0000:0000:0000| 0000:0000:0000|0004:0000:0000|0032:0000:0000|0026:0000:0000|0032:0000:0000|0026:0000:0000|0032:0000:0000|0047:0000:0000|0048:0000:0000|0026:0000:0000|0032:0000:0000|0026:0000:0000|0032:0000:0000|0033:0000:0000|000c:0000:0000|0000:0000:0000| 0000:0000:0000|0001:0000:0000|0049:0000:0000|0049:0000:0000|0049:0000:0000|0049:0000:0000|0049:0000:0000|004a:0000:0000|004b:0000:0000|0049:0000:0000|0049:0000:0000|0049:0000:0000|0049:0000:0000|0049:0000:0000|0001:0000:0000|0000:0000:0000| 0000:0000:0000|0000:0000:0000|0000:0000:0000|0000:0000:0000|0000:0000:0000|0000:0000:0000|0000:0000:0000|0000:0000:0000|0000:0000:0000|0000:0000:0000|0000:0000:0000|0000:0000:0000|0000:0000:0000|0000:0000:0000|0000:0000:0000|0000:0000:0000| 0000:0000:0000|0000:0000:0000|0000:0000:0000|0000:0000:0000|0000:0000:0000|0000:0000:0000|0000:0000:0000|0000:0000:0000|0000:0000:0000|0000:0000:0000|0000:0000:0000|0000:0000:0000|0000:0000:0000|0000:0000:0000|0000:0000:0000|0000:0000:0000|
[edit] Game State
A global gamestate object must be created that both keeps track of the game's engine and state at any given point, as well as provide a useful and compact dump of this information for use in saving and loading games.
[edit] Miscellaneous
[edit] Progress
As of Jan 8, memdump parse is in alpha stages

