+++ /dev/null
-MM_GetPtr\r
- baseptr=1430:1db4 useptr=1430:1db4\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec62 &useptr=1430:1e20\r
-MM_GetPtr\r
- baseptr=1430:1ba6 useptr=1430:1ba6\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:1e30\r
-MM_GetPtr\r
- baseptr=1430:1ba8 useptr=1430:1ba8\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:1e40\r
-MM_GetPtr\r
- baseptr=1430:1baa useptr=1430:1baa\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:1e50\r
-MM_GetPtr\r
- baseptr=1430:1bac useptr=1430:1bac\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:1e60\r
-MM_GetPtr\r
- baseptr=1430:1bae useptr=1430:1bae\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:1e70\r
-MM_GetPtr\r
- baseptr=1430:1bb0 useptr=1430:1bb0\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:1e80\r
-MM_GetPtr\r
- baseptr=1430:1bb2 useptr=1430:1bb2\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:1e90\r
-MM_GetPtr\r
- baseptr=1430:1bb4 useptr=1430:1bb4\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:1ea0\r
-MM_GetPtr\r
- baseptr=1430:1bb6 useptr=1430:1bb6\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:1eb0\r
-MM_GetPtr\r
- baseptr=1430:1bb8 useptr=1430:1bb8\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:1ec0\r
-MM_GetPtr\r
- baseptr=1430:1bba useptr=1430:1bba\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:1ed0\r
-MM_GetPtr\r
- baseptr=1430:1bbc useptr=1430:1bbc\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:1ee0\r
-MM_GetPtr\r
- baseptr=1430:1bbe useptr=1430:1bbe\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:1ef0\r
-MM_GetPtr\r
- baseptr=1430:1bc0 useptr=1430:1bc0\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:1f00\r
-MM_GetPtr\r
- baseptr=1430:1bc2 useptr=1430:1bc2\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:1f10\r
-MM_GetPtr\r
- baseptr=1430:1bc4 useptr=1430:1bc4\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:1f20\r
-MM_GetPtr\r
- baseptr=1430:1bc6 useptr=1430:1bc6\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:1f30\r
-MM_GetPtr\r
- baseptr=1430:1bc8 useptr=1430:1bc8\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:1f40\r
-MM_GetPtr\r
- baseptr=1430:1bca useptr=1430:1bca\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:1f50\r
-MM_GetPtr\r
- baseptr=1430:1bcc useptr=1430:1bcc\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:1f60\r
-MM_GetPtr\r
- baseptr=1430:1bce useptr=1430:1bce\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:1f70\r
-MM_GetPtr\r
- baseptr=1430:1bd0 useptr=1430:1bd0\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:1f80\r
-MM_GetPtr\r
- baseptr=1430:1bd2 useptr=1430:1bd2\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:1f90\r
-MM_GetPtr\r
- baseptr=1430:1bd4 useptr=1430:1bd4\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:1fa0\r
-MM_GetPtr\r
- baseptr=1430:1bd6 useptr=1430:1bd6\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:1fb0\r
-MM_GetPtr\r
- baseptr=1430:1bd8 useptr=1430:1bd8\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:1fc0\r
-MM_GetPtr\r
- baseptr=1430:1bda useptr=1430:1bda\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:1fd0\r
-MM_GetPtr\r
- baseptr=1430:1bdc useptr=1430:1bdc\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:1fe0\r
-MM_GetPtr\r
- baseptr=1430:1bde useptr=1430:1bde\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:1ff0\r
-MM_GetPtr\r
- baseptr=1430:1be0 useptr=1430:1be0\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2000\r
-MM_GetPtr\r
- baseptr=1430:1be2 useptr=1430:1be2\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2010\r
-MM_GetPtr\r
- baseptr=1430:1be4 useptr=1430:1be4\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2020\r
-MM_GetPtr\r
- baseptr=1430:1be6 useptr=1430:1be6\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2030\r
-MM_GetPtr\r
- baseptr=1430:1be8 useptr=1430:1be8\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2040\r
-MM_GetPtr\r
- baseptr=1430:1bea useptr=1430:1bea\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2050\r
-MM_GetPtr\r
- baseptr=1430:1bec useptr=1430:1bec\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2060\r
-MM_GetPtr\r
- baseptr=1430:1bee useptr=1430:1bee\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2070\r
-MM_GetPtr\r
- baseptr=1430:1bf0 useptr=1430:1bf0\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2080\r
-MM_GetPtr\r
- baseptr=1430:1bf2 useptr=1430:1bf2\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2090\r
-MM_GetPtr\r
- baseptr=1430:1bf4 useptr=1430:1bf4\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:20a0\r
-MM_GetPtr\r
- baseptr=1430:1bf6 useptr=1430:1bf6\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:20b0\r
-MM_GetPtr\r
- baseptr=1430:1bf8 useptr=1430:1bf8\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:20c0\r
-MM_GetPtr\r
- baseptr=1430:1bfa useptr=1430:1bfa\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:20d0\r
-MM_GetPtr\r
- baseptr=1430:1bfc useptr=1430:1bfc\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:20e0\r
-MM_GetPtr\r
- baseptr=1430:1bfe useptr=1430:1bfe\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:20f0\r
-MM_GetPtr\r
- baseptr=1430:1c00 useptr=1430:1c00\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2100\r
-MM_GetPtr\r
- baseptr=1430:1c02 useptr=1430:1c02\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2110\r
-MM_GetPtr\r
- baseptr=1430:1c04 useptr=1430:1c04\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2120\r
-MM_GetPtr\r
- baseptr=1430:1c06 useptr=1430:1c06\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2130\r
-MM_GetPtr\r
- baseptr=1430:1c08 useptr=1430:1c08\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2140\r
-MM_GetPtr\r
- baseptr=1430:1c0a useptr=1430:1c0a\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2150\r
-MM_GetPtr\r
- baseptr=1430:1c0c useptr=1430:1c0c\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2160\r
-MM_GetPtr\r
- baseptr=1430:1c0e useptr=1430:1c0e\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2170\r
-MM_GetPtr\r
- baseptr=1430:1c10 useptr=1430:1c10\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2180\r
-MM_GetPtr\r
- baseptr=1430:1c12 useptr=1430:1c12\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2190\r
-MM_GetPtr\r
- baseptr=1430:1c14 useptr=1430:1c14\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:21a0\r
-MM_GetPtr\r
- baseptr=1430:1c16 useptr=1430:1c16\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:21b0\r
-MM_GetPtr\r
- baseptr=1430:1c18 useptr=1430:1c18\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:21c0\r
-MM_GetPtr\r
- baseptr=1430:1c1a useptr=1430:1c1a\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:21d0\r
-MM_GetPtr\r
- baseptr=1430:1c1c useptr=1430:1c1c\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:21e0\r
-MM_GetPtr\r
- baseptr=1430:1c1e useptr=1430:1c1e\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:21f0\r
-MM_GetPtr\r
- baseptr=1430:1c20 useptr=1430:1c20\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2200\r
-MM_GetPtr\r
- baseptr=1430:1c22 useptr=1430:1c22\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2210\r
-MM_GetPtr\r
- baseptr=1430:1c24 useptr=1430:1c24\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2220\r
-MM_GetPtr\r
- baseptr=1430:1c26 useptr=1430:1c26\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2230\r
-MM_GetPtr\r
- baseptr=1430:1c28 useptr=1430:1c28\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2240\r
-MM_GetPtr\r
- baseptr=1430:1c2a useptr=1430:1c2a\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2250\r
-MM_GetPtr\r
- baseptr=1430:1c2c useptr=1430:1c2c\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2260\r
-MM_GetPtr\r
- baseptr=1430:1c2e useptr=1430:1c2e\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2270\r
-MM_GetPtr\r
- baseptr=1430:1c30 useptr=1430:1c30\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2280\r
-MM_GetPtr\r
- baseptr=1430:1c32 useptr=1430:1c32\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2290\r
-MM_GetPtr\r
- baseptr=1430:1c34 useptr=1430:1c34\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:22a0\r
-MM_GetPtr\r
- baseptr=1430:1c36 useptr=1430:1c36\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:22b0\r
-MM_GetPtr\r
- baseptr=1430:1c38 useptr=1430:1c38\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:22c0\r
-MM_GetPtr\r
- baseptr=1430:1c3a useptr=1430:1c3a\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:22d0\r
-MM_GetPtr\r
- baseptr=1430:1c3c useptr=1430:1c3c\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:22e0\r
-MM_GetPtr\r
- baseptr=1430:1c3e useptr=1430:1c3e\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:22f0\r
-MM_GetPtr\r
- baseptr=1430:1c40 useptr=1430:1c40\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2300\r
-MM_GetPtr\r
- baseptr=1430:1c42 useptr=1430:1c42\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2310\r
-MM_GetPtr\r
- baseptr=1430:1c44 useptr=1430:1c44\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2320\r
-MM_GetPtr\r
- baseptr=1430:1c46 useptr=1430:1c46\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2330\r
-MM_GetPtr\r
- baseptr=1430:1c48 useptr=1430:1c48\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2340\r
-MM_GetPtr\r
- baseptr=1430:1c4a useptr=1430:1c4a\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2350\r
-MM_GetPtr\r
- baseptr=1430:1c4c useptr=1430:1c4c\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2360\r
-MM_GetPtr\r
- baseptr=1430:1c4e useptr=1430:1c4e\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2370\r
-MM_GetPtr\r
- baseptr=1430:1c50 useptr=1430:1c50\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2380\r
-MM_GetPtr\r
- baseptr=1430:1c52 useptr=1430:1c52\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2390\r
-MM_GetPtr\r
- baseptr=1430:1c54 useptr=1430:1c54\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:23a0\r
-MM_GetPtr\r
- baseptr=1430:1c56 useptr=1430:1c56\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:23b0\r
-MM_GetPtr\r
- baseptr=1430:1c58 useptr=1430:1c58\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:23c0\r
-MM_GetPtr\r
- baseptr=1430:1c5a useptr=1430:1c5a\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:23d0\r
-MM_GetPtr\r
- baseptr=1430:1c5c useptr=1430:1c5c\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:23e0\r
-MM_GetPtr\r
- baseptr=1430:1c5e useptr=1430:1c5e\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:23f0\r
-MM_GetPtr\r
- baseptr=1430:1c60 useptr=1430:1c60\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2400\r
-MM_GetPtr\r
- baseptr=1430:1c62 useptr=1430:1c62\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2410\r
-MM_GetPtr\r
- baseptr=1430:1c64 useptr=1430:1c64\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2420\r
-MM_GetPtr\r
- baseptr=1430:1c66 useptr=1430:1c66\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2430\r
-MM_GetPtr\r
- baseptr=1430:1c68 useptr=1430:1c68\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2440\r
-MM_GetPtr\r
- baseptr=1430:1c6a useptr=1430:1c6a\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2450\r
-MM_GetPtr\r
- baseptr=1430:1c6c useptr=1430:1c6c\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec48 &useptr=1430:2460\r
--------------------------------------------------------------------------------\r
-&main()= 1430:6cc1\r
-buffer:\r
- 1430:0000 &1430:1b78\r
- 0000 & 1b78\r
--------------------------------------------------------------------------------\r
-press any key to continue!\r
-======================================load======================================\r
-MM_GetPtr\r
- baseptr=1430:1b78 useptr=1430:1b78\r
- *baseptr=1430:0000 *useptr=1430:0000\r
- &baseptr=1430:ec64 &useptr=1430:2470\r
--------------------------------------------------------------------------------\r
-&main()= 1430:6cc1\r
-buffer:\r
- 1430:893b &1430:1b78\r
- 893b & 1b78\r
--------------------------------------------------------------------------------\r
-\r
-yay!\r
-======================================read======================================\r
--------------------------------------------------------------------------------\r
-&main()= 1430:6cc1\r
-buffer:\r
- 1430:893b &1430:1b78\r
- 893b & 1b78\r
--------------------------------------------------------------------------------\r
-\r
-yay!\r
-========================================\r
- DebugMemory_\r
-========================================\r
-Memory Usage\r
-------------\r
-Total: 578k\r
-Free: 170k\r
-With purge: 570k\r
-------------\r
-MMDUMP.16 created.\r
-========================================\r
- MM_Report_\r
-========================================\r
- ÉLIMEMS 1\r
- ÇÄEMM v4.0 available\r
- ÇÄtotalEMSpages: 4032 freeEMSpages: 3939\r
- ÇÄEMSPageFrame: e000\r
- ÓÄEMSmem: 64536576\r
- ÉXMS 1\r
- ÇÄXMS v3.0 available\r
- ÇÄXMSDriver: c83f:0010\r
- ÇÄXMSHandle: 0800\r
- ÓÄXMSmem: 2097152\r
- ÉConv. 1\r
- ÓÄTotal: 578k Free: 170k With purge:570k\r
-nearheap: 3884 farheap: 588812\r
-========================================\r
-near= 1430:eec8 far= 2431:009c\r
-&near= 1430:1dc0 &far= 1430:1dbc\r
-bigb= 1430:0000 &bigb=1430:1b78 \r
-========================================\r
-\r
-_memavl(): 4404\r
-HC_farcoreleft(): 962022\r
-HC_GetNearFreeSize(): 4406\r
-HC_GetFarFreeSize(): 40134\r
-Project 16 exmmtest.exe. This is just a test file!\r
-version Feb 22 2017 12:35:11\r
-debugmm: 1 \r
- [ ] Fix pngwen's pcx rendering code it dose not render large relolution pcx files well at all! almost done
- [ ] tweak animation frame perloop and make the dpad controls a case switch (look at commander keen code?) and vsync horizontal animation
- [x] ~~movement and player movement when reaching edge of map~~
-- [ ] sprite rendering
+- [x] sprite rendering
- [ ] text box rendering
- [x] text rendering
- [x] ~~YAY! map loading~~
- [ ] item inventory~
* ==working on extending==
- [ ] Memory management [EMS + XMS] done but not tested...
-- [ ] case switch with keyboard code
+- [x] case switch with keyboard code
- when your holding 2 arrow keys and a key is released the keyboard controller dose not read input from the port anymore for some weired reason
- [ ] masking layer! [i think this is not easy to accomplish!]
- [x] ~~8088 detection to turn off vsync!~~
-- [ ] *very important!* optimize draw row and draw col
+- [x] *very important!* optimize draw row and draw col
- [ ] Study verge2's map system,
- [ ] save feature!
+- [ ] config feature!
- [ ] *also important* interperator! and possibly custom map system
-- [ ] *also important* lua scripting system!
- [ ] extend the map system!
- [x] ~~opl2/3 audio!!!!~~
- [ ] engine core!
- [ ] *MOST important!* FUCKING MASSIVE DATA MANAGEMENT!!!
- [ ] MUSIC PLAYBACK!!!! WWWW
- [ ] basic SFX from opl2 + pc speaker!
-- [ ] clean up repository after event 1.
+- [ ] clean up repository after event 1.??
- [ ] script system for text and interaction
- [ ] ====00 IMPORTANT! 00==== AS PART OF FINISHING THE GRAPHICAL LIB. Make a palette manager that updates the display palette with the pallet of images and sprites. in a stack and reuse same colors in the pallette on the image by changing the image's values to the matching color.
- Use a little database to keep track of the images loaded and have manipulated the display pallette.
--- /dev/null
+-------------------------------------------------------------------------------
+ ./qkeen.sh start
+-------------------------------------------------------------------------------
+16/keen/id_ca.c:byte _seg *tinf;\r
+16/keen/id_ca.c:unsigned _seg *mapsegs[3];\r
+16/keen/id_ca.c:maptype _seg *mapheaderseg[NUMMAPS];\r
+16/keen/id_ca.c:byte _seg *audiosegs[NUMSNDCHUNKS];\r
+16/keen/id_ca.c:void _seg *grsegs[NUMCHUNKS];\r
+16/keen/id_ca.c:long _seg *grstarts; // array of offsets in egagraph, -1 for sparse\r
+16/keen/id_ca.c:long _seg *audiostarts; // array of offsets in audio / audiot\r
+16/keen/id_ca.c: grstarts = (long _seg *)FP_SEG(&EGAhead);\r
+16/keen/id_ca.c: grstarts = (long _seg *)FP_SEG(&CGAhead);\r
+16/keen/id_ca.c: tinf = (byte _seg *)FP_SEG(&maphead);\r
+16/keen/id_ca.c: audiostarts = (long _seg *)FP_SEG(&audiohead);\r
+16/keen/id_ca.c: spritetype _seg *dest;\r
+16/keen/id_ca.c: dest = (spritetype _seg *)grsegs[chunk];\r
+16/keen/id_ca.c: dest = (spritetype _seg *)grsegs[chunk];\r
+16/keen/id_ca.c: pos = ((mapfiletype _seg *)tinf)->headeroffsets[mapnum];\r
+16/keen/id_ca.c: CA_FarRead (maphandle,bufferseg,((mapfiletype _seg *)tinf)->headersize[mapnum]);\r
+16/keen/id_ca.c: ((mapfiletype _seg *)tinf)->RLEWtag);\r
+16/keen/id_ca.c: ((mapfiletype _seg *)tinf)->RLEWtag);\r
+16/keen/id_ca.c: source = (byte _seg *)bufferseg+(pos-bufferstart);\r
+16/keen/id_in.c:static byte _seg *DemoBuffer;\r
+16/keen/id_in.c:IN_StartDemoPlayback(byte _seg *buffer,word bufsize)\r
+16/keen/id_rf.c: spritetype _seg *block;\r
+16/keen/id_rf.c: block = (spritetype _seg *)grsegs[spritenumber];\r
+16/keen/id_rf.c: spritetype _seg *block;\r
+16/keen/id_rf.c: block = (spritetype _seg *)grsegs[spritenumber];\r
+16/keen/id_sd.c: word *SoundTable; // Really * _seg *SoundTable, but that don't work\r
+16/keen/id_vw.c:pictabletype _seg *pictable;\r
+16/keen/id_vw.c:pictabletype _seg *picmtable;\r
+16/keen/id_vw.c:spritetabletype _seg *spritetable;\r
+16/keen/id_vw.c: fontstruct _seg *font);\r
+16/keen/id_vw.c: spritetype _seg *block;\r
+16/keen/id_vw.c: block = (spritetype _seg *)grsegs[chunknum];\r
+16/keen/id_vw.c:VWL_MeasureString (char far *string, word *width, word *height, fontstruct _seg *font)\r
+16/keen/id_vw.c: VWL_MeasureString(string,width,height,(fontstruct _seg *)grsegs[STARTFONT]);\r
+16/keen/id_vw.c: VWL_MeasureString(string,width,height,(fontstruct _seg *)grsegs[STARTFONTM]);\r
+16/keen/id_vw.c: spritetype _seg *block;\r
+16/keen/id_vw.c: block = (spritetype _seg *)grsegs[chunknum];\r
+16/keen/kd_act2.c: map = (unsigned _seg *)mapsegs[1]+\r
+16/keen/kd_act2.c: map = (unsigned _seg *)mapsegs[1]+\r
+16/keen/kd_act2.c: map = (unsigned _seg *)mapsegs[1]+\r
+16/keen/kd_keen.c: spritetype _seg *block;\r
+16/keen/kd_keen.c: block = (spritetype _seg *)grsegs[SCOREBOXSPR];\r
+16/keen/kd_keen.c: spritetype _seg *dest;\r
+16/keen/kd_keen.c: dest = (spritetype _seg *)grsegs[SCOREBOXSPR];\r
+16/keen/kd_keen.c: spritetype _seg *block;\r
+16/keen/kd_keen.c: block = (spritetype _seg *)grsegs[SCOREBOXSPR];\r
+16/keen/kd_keen.c: block = (spritetype _seg *)grsegs[SCOREBOXSPR];\r
+16/keen/kd_keen.c: block = (spritetype _seg *)grsegs[SCOREBOXSPR];\r
+16/keen/kd_keen.c: tile = *((unsigned _seg *)mapsegs[2]+mapbwidthtable[y]/2+x);\r
+16/keen/kd_keen.c: map = (unsigned _seg *)mapsegs[1]+\r
+16/keen/kd_keen.c: map = (unsigned _seg *)mapsegs[1]+\r
+16/keen/kd_keen.c: map = (unsigned _seg *)mapsegs[1]+mapbwidthtable[ob->tiletop]/2+ob->temp4;\r
+16/keen/kd_keen.c: map = (unsigned _seg *)mapsegs[1]+mapbwidthtable[ob->tilebottom]/2+ob->temp4;\r
+16/keen/kd_main.c: spritetype _seg *block;\r
+16/keen/kd_main.c: block = (spritetype _seg *)grsegs[sprite];\r
+16/keen/id_ca.h:extern byte _seg *tinf;\r
+16/keen/id_ca.h:extern unsigned _seg *mapsegs[3];\r
+16/keen/id_ca.h:extern maptype _seg *mapheaderseg[NUMMAPS];\r
+16/keen/id_ca.h:extern byte _seg *audiosegs[NUMSNDCHUNKS];\r
+16/keen/id_ca.h:extern void _seg *grsegs[NUMCHUNKS];\r
+16/keen/id_in.h: IN_StartDemoPlayback(byte _seg *buffer,word bufsize),\r
+16/keen/id_mm.h:typedef void _seg * memptr;\r
+16/keen/id_vw.h:extern pictabletype _seg *pictable;\r
+16/keen/id_vw.h:extern pictabletype _seg *picmtable;\r
+16/keen/id_vw.h:extern spritetabletype _seg *spritetable;\r
+=============== ./qkeen.sh end ===============
+-------------------------------------------------------------------------------
+ ./qwolf.sh start
+-------------------------------------------------------------------------------
+==== 16/wf3d8086 ====
+16/wf3d8086/contigsc.c:byte _seg *endscalermemory;\r
+16/wf3d8086/contigsc.c: endscalermemory = (void _seg *)(seg+ofs/16);\r
+16/wf3d8086/contigsc.c: t_compshape _seg *shape;\r
+16/wf3d8086/contigsc.c: t_compshape _seg *shape;\r
+16/wf3d8086/id_ca.c:byte _seg *tinf;\r
+16/wf3d8086/id_ca.c:unsigned _seg *mapsegs[MAPPLANES];\r
+16/wf3d8086/id_ca.c:maptype _seg *mapheaderseg[NUMMAPS];\r
+16/wf3d8086/id_ca.c:byte _seg *audiosegs[NUMSNDCHUNKS];\r
+16/wf3d8086/id_ca.c:void _seg *grsegs[NUMCHUNKS];\r
+16/wf3d8086/id_ca.c:long _seg *grstarts; // array of offsets in egagraph, -1 for sparse\r
+16/wf3d8086/id_ca.c:long _seg *audiostarts; // array of offsets in audio / audiot\r
+16/wf3d8086/id_ca.c: grstarts = (long _seg *)FP_SEG(&EGAhead);\r
+16/wf3d8086/id_ca.c: tinf = (byte _seg *)FP_SEG(&maphead);\r
+16/wf3d8086/id_ca.c: pos = ((mapfiletype _seg *)tinf)->headeroffsets[i];\r
+16/wf3d8086/id_ca.c: audiostarts = (long _seg *)FP_SEG(&audiohead);\r
+16/wf3d8086/id_ca.c: ((mapfiletype _seg *)tinf)->RLEWtag);\r
+16/wf3d8086/id_ca.c: ((mapfiletype _seg *)tinf)->RLEWtag);\r
+16/wf3d8086/id_ca.c: source = (byte _seg *)bufferseg+(pos-bufferstart);\r
+16/wf3d8086/id_in.c: byte _seg *DemoBuffer;\r
+16/wf3d8086/id_pm.c: _seg *PMSegPages;\r
+16/wf3d8086/id_pm.c: void _seg *buf;\r
+16/wf3d8086/id_pm.c: MM_FreePtr(&(void _seg *)PMSegPages);\r
+16/wf3d8086/id_sd.c: word *SoundTable; // Really * _seg *SoundTable, but that don't work\r
+16/wf3d8086/id_sd.c: word _seg *DigiList;\r
+16/wf3d8086/id_vh.c:pictabletype _seg *pictable;\r
+16/wf3d8086/id_vh.c: byte _seg *temp, far *dest, far *srcline;\r
+16/wf3d8086/id_vh.c: , fontstruct _seg *font)\r
+16/wf3d8086/id_vh.c: VWL_MeasureString(string,width,height,(fontstruct _seg *)grsegs[STARTFONT+fontnumber]);\r
+16/wf3d8086/id_vh.c: VWL_MeasureString(string,width,height,(fontstruct _seg *)grsegs[STARTFONTM+fontnumber]);\r
+16/wf3d8086/id_vh.c: src = (byte _seg *)grsegs[STARTTILE8];\r
+16/wf3d8086/id_vh.c: src = (byte _seg *)grsegs[STARTTILE16];\r
+16/wf3d8086/id_vh.c: src = (byte _seg *)grsegs[STARTTILE16+i];\r
+16/wf3d8086/oldscale.c:t_compscale _seg *scaledirectory[MAXSCALEHEIGHT+1];\r
+16/wf3d8086/oldscale.c:t_compscale _seg *work;\r
+16/wf3d8086/oldscale.c: _fmemcpy ((byte _seg *)(*finalspot),(byte _seg *)work,totalsize);\r
+16/wf3d8086/oldscale.c: t_compshape _seg *shape;\r
+16/wf3d8086/oldscale.c: t_compscale _seg *comptable;\r
+16/wf3d8086/oldscale.c: t_compshape _seg *shape;\r
+16/wf3d8086/oldscale.c: t_compscale _seg *comptable;\r
+16/wf3d8086/wl_debug.c: spritetype _seg *block;\r
+16/wf3d8086/wl_debug.c:extern word _seg *DigiList;\r
+16/wf3d8086/wl_menu.c: fontstruct _seg *font;\r
+16/wf3d8086/wl_scale.c:t_compscale _seg *scaledirectory[MAXSCALEHEIGHT+1];\r
+16/wf3d8086/wl_scale.c:t_compscale _seg *work;\r
+16/wf3d8086/wl_scale.c: _fmemcpy ((byte _seg *)(*finalspot),(byte _seg *)work,totalsize);\r
+16/wf3d8086/wl_scale.c: t_compshape _seg *shape;\r
+16/wf3d8086/wl_scale.c: t_compscale _seg *comptable;\r
+16/wf3d8086/wl_scale.c: t_compshape _seg *shape;\r
+16/wf3d8086/wl_scale.c: t_compscale _seg *comptable;\r
+16/wf3d8086/wl_text.c: text = (char _seg *)grsegs[artnum];\r
+16/wf3d8086/wl_text.c: text = (char _seg *)layout;\r
+16/wf3d8086/wl_text.c: text = (char _seg *)grsegs[artnum];\r
+16/wf3d8086/wl_text.c: text = (char _seg *)layout;\r
+16/wf3d8086/id_ca.h:extern byte _seg *tinf;\r
+16/wf3d8086/id_ca.h:extern unsigned _seg *mapsegs[MAPPLANES];\r
+16/wf3d8086/id_ca.h:extern maptype _seg *mapheaderseg[NUMMAPS];\r
+16/wf3d8086/id_ca.h:extern byte _seg *audiosegs[NUMSNDCHUNKS];\r
+16/wf3d8086/id_ca.h:extern void _seg *grsegs[NUMCHUNKS];\r
+16/wf3d8086/id_ca.h:extern long _seg *grstarts; // array of offsets in egagraph, -1 for sparse\r
+16/wf3d8086/id_ca.h:extern long _seg *audiostarts; // array of offsets in audio / audiot\r
+16/wf3d8086/id_in.h:extern byte _seg *DemoBuffer;\r
+16/wf3d8086/id_mm.h:typedef void _seg * memptr;\r
+16/wf3d8086/id_vh.h:extern pictabletype _seg *pictable;\r
+16/wf3d8086/id_vh.h:extern pictabletype _seg *picmtable;\r
+16/wf3d8086/id_vh.h:extern spritetabletype _seg *spritetable;\r
+16/wf3d8086/wl_def.h:extern t_compscale _seg *scaledirectory[MAXSCALEHEIGHT+1];\r
+==== 16/wolf3d/WOLFSRC ====
+16/wolf3d/WOLFSRC/CONTIGSC.C:byte _seg *endscalermemory;
+16/wolf3d/WOLFSRC/CONTIGSC.C: endscalermemory = (void _seg *)(seg+ofs/16);
+16/wolf3d/WOLFSRC/CONTIGSC.C: t_compshape _seg *shape;
+16/wolf3d/WOLFSRC/CONTIGSC.C: t_compshape _seg *shape;
+16/wolf3d/WOLFSRC/ID_CA.C:byte _seg *tinf;
+16/wolf3d/WOLFSRC/ID_CA.C:unsigned _seg *mapsegs[MAPPLANES];
+16/wolf3d/WOLFSRC/ID_CA.C:maptype _seg *mapheaderseg[NUMMAPS];
+16/wolf3d/WOLFSRC/ID_CA.C:byte _seg *audiosegs[NUMSNDCHUNKS];
+16/wolf3d/WOLFSRC/ID_CA.C:void _seg *grsegs[NUMCHUNKS];
+16/wolf3d/WOLFSRC/ID_CA.C:long _seg *grstarts; // array of offsets in egagraph, -1 for sparse
+16/wolf3d/WOLFSRC/ID_CA.C:long _seg *audiostarts; // array of offsets in audio / audiot
+16/wolf3d/WOLFSRC/ID_CA.C: grstarts = (long _seg *)FP_SEG(&EGAhead);
+16/wolf3d/WOLFSRC/ID_CA.C: tinf = (byte _seg *)FP_SEG(&maphead);
+16/wolf3d/WOLFSRC/ID_CA.C: pos = ((mapfiletype _seg *)tinf)->headeroffsets[i];
+16/wolf3d/WOLFSRC/ID_CA.C: audiostarts = (long _seg *)FP_SEG(&audiohead);
+16/wolf3d/WOLFSRC/ID_CA.C: ((mapfiletype _seg *)tinf)->RLEWtag);
+16/wolf3d/WOLFSRC/ID_CA.C: ((mapfiletype _seg *)tinf)->RLEWtag);
+16/wolf3d/WOLFSRC/ID_CA.C: source = (byte _seg *)bufferseg+(pos-bufferstart);
+16/wolf3d/WOLFSRC/ID_IN.C: byte _seg *DemoBuffer;
+16/wolf3d/WOLFSRC/ID_PM.C: _seg *PMSegPages;
+16/wolf3d/WOLFSRC/ID_PM.C: void _seg *buf;
+16/wolf3d/WOLFSRC/ID_PM.C: MM_FreePtr(&(void _seg *)PMSegPages);
+16/wolf3d/WOLFSRC/ID_SD.C: word *SoundTable; // Really * _seg *SoundTable, but that don't work
+16/wolf3d/WOLFSRC/ID_SD.C: word _seg *DigiList;
+16/wolf3d/WOLFSRC/ID_VH.C:pictabletype _seg *pictable;
+16/wolf3d/WOLFSRC/ID_VH.C: byte _seg *temp, far *dest, far *srcline;
+16/wolf3d/WOLFSRC/ID_VH.C: , fontstruct _seg *font)
+16/wolf3d/WOLFSRC/ID_VH.C: VWL_MeasureString(string,width,height,(fontstruct _seg *)grsegs[STARTFONT+fontnumber]);
+16/wolf3d/WOLFSRC/ID_VH.C: VWL_MeasureString(string,width,height,(fontstruct _seg *)grsegs[STARTFONTM+fontnumber]);
+16/wolf3d/WOLFSRC/ID_VH.C: src = (byte _seg *)grsegs[STARTTILE8];
+16/wolf3d/WOLFSRC/ID_VH.C: src = (byte _seg *)grsegs[STARTTILE16];
+16/wolf3d/WOLFSRC/ID_VH.C: src = (byte _seg *)grsegs[STARTTILE16+i];
+16/wolf3d/WOLFSRC/OLDSCALE.C:t_compscale _seg *scaledirectory[MAXSCALEHEIGHT+1];
+16/wolf3d/WOLFSRC/OLDSCALE.C:t_compscale _seg *work;
+16/wolf3d/WOLFSRC/OLDSCALE.C: _fmemcpy ((byte _seg *)(*finalspot),(byte _seg *)work,totalsize);
+16/wolf3d/WOLFSRC/OLDSCALE.C: t_compshape _seg *shape;
+16/wolf3d/WOLFSRC/OLDSCALE.C: t_compscale _seg *comptable;
+16/wolf3d/WOLFSRC/OLDSCALE.C: t_compshape _seg *shape;
+16/wolf3d/WOLFSRC/OLDSCALE.C: t_compscale _seg *comptable;
+16/wolf3d/WOLFSRC/WL_DEBUG.C: spritetype _seg *block;
+16/wolf3d/WOLFSRC/WL_DEBUG.C:extern word _seg *DigiList;
+16/wolf3d/WOLFSRC/WL_MENU.C: fontstruct _seg *font;
+16/wolf3d/WOLFSRC/WL_SCALE.C:t_compscale _seg *scaledirectory[MAXSCALEHEIGHT+1];
+16/wolf3d/WOLFSRC/WL_SCALE.C:t_compscale _seg *work;
+16/wolf3d/WOLFSRC/WL_SCALE.C: _fmemcpy ((byte _seg *)(*finalspot),(byte _seg *)work,totalsize);
+16/wolf3d/WOLFSRC/WL_SCALE.C: t_compshape _seg *shape;
+16/wolf3d/WOLFSRC/WL_SCALE.C: t_compscale _seg *comptable;
+16/wolf3d/WOLFSRC/WL_SCALE.C: t_compshape _seg *shape;
+16/wolf3d/WOLFSRC/WL_SCALE.C: t_compscale _seg *comptable;
+16/wolf3d/WOLFSRC/WL_TEXT.C: text = (char _seg *)grsegs[artnum];
+16/wolf3d/WOLFSRC/WL_TEXT.C: text = (char _seg *)layout;
+16/wolf3d/WOLFSRC/WL_TEXT.C: text = (char _seg *)grsegs[artnum];
+16/wolf3d/WOLFSRC/WL_TEXT.C: text = (char _seg *)layout;
+16/wolf3d/WOLFSRC/ID_CA.H:extern byte _seg *tinf;
+16/wolf3d/WOLFSRC/ID_CA.H:extern unsigned _seg *mapsegs[MAPPLANES];
+16/wolf3d/WOLFSRC/ID_CA.H:extern maptype _seg *mapheaderseg[NUMMAPS];
+16/wolf3d/WOLFSRC/ID_CA.H:extern byte _seg *audiosegs[NUMSNDCHUNKS];
+16/wolf3d/WOLFSRC/ID_CA.H:extern void _seg *grsegs[NUMCHUNKS];
+16/wolf3d/WOLFSRC/ID_CA.H:extern long _seg *grstarts; // array of offsets in egagraph, -1 for sparse
+16/wolf3d/WOLFSRC/ID_CA.H:extern long _seg *audiostarts; // array of offsets in audio / audiot
+16/wolf3d/WOLFSRC/ID_IN.H:extern byte _seg *DemoBuffer;
+16/wolf3d/WOLFSRC/ID_MM.H:typedef void _seg * memptr;
+16/wolf3d/WOLFSRC/ID_VH.H:extern pictabletype _seg *pictable;
+16/wolf3d/WOLFSRC/ID_VH.H:extern pictabletype _seg *picmtable;
+16/wolf3d/WOLFSRC/ID_VH.H:extern spritetabletype _seg *spritetable;
+16/wolf3d/WOLFSRC/WL_DEF.H:extern t_compscale _seg *scaledirectory[MAXSCALEHEIGHT+1];
+=============== ./qwolf.sh end ===============
+-------------------------------------------------------------------------------
+ ./qcata.sh start
+-------------------------------------------------------------------------------
+==== 16/Catacomb3D ====
+16/Catacomb3D/C3_DEBUG.C: spritetype _seg *block;\r
+16/Catacomb3D/C3_GAME.C: text = (char _seg *)grsegs[LEVEL1TEXT+mapon];\r
+16/Catacomb3D/C3_GAME.C: src = (byte _seg *)grsegs[STARTTILE8];\r
+16/Catacomb3D/C3_GAME.C: src = (byte _seg *)grsegs[STARTTILE16];\r
+16/Catacomb3D/C3_GAME.C: src = (byte _seg *)grsegs[STARTTILE16+i];\r
+16/Catacomb3D/C3_SCALE.C:t_compscale _seg *scaledirectory[MAXSCALE+1];\r
+16/Catacomb3D/C3_SCALE.C:t_compshape _seg *shapedirectory[NUMSCALEPICS];\r
+16/Catacomb3D/C3_SCALE.C: plane0 = (byte _seg *)grsegs[picnum];\r
+16/Catacomb3D/C3_SCALE.C: t_compscale _seg *work;\r
+16/Catacomb3D/C3_SCALE.C: _fmemcpy ((byte _seg *)(*finalspot),(byte _seg *)work,totalsize);\r
+16/Catacomb3D/C3_SCALE.C:unsigned BuildCompShape (t_compshape _seg **finalspot)\r
+16/Catacomb3D/C3_SCALE.C: t_compshape _seg *work;\r
+16/Catacomb3D/C3_SCALE.C: work = (t_compshape _seg *)(0xa000+(buff+15)/16);\r
+16/Catacomb3D/C3_SCALE.C: _fmemcpy ((byte _seg *)(*finalspot),(byte _seg *)work,totalsize);\r
+16/Catacomb3D/C3_SCALE.C:void ScaleShape (int xcenter, t_compshape _seg *compshape, unsigned scale)\r
+16/Catacomb3D/C3_SCALE.C: t_compscale _seg *comptable;\r
+16/Catacomb3D/C3_WIZ.C: text = (char _seg *)grsegs[LEVEL1TEXT+mapon]+textstarts[number];\r
+16/Catacomb3D/ID_CA.C:byte _seg *tinf;\r
+16/Catacomb3D/ID_CA.C:unsigned _seg *mapsegs[3];\r
+16/Catacomb3D/ID_CA.C:maptype _seg *mapheaderseg[NUMMAPS];\r
+16/Catacomb3D/ID_CA.C:byte _seg *audiosegs[NUMSNDCHUNKS];\r
+16/Catacomb3D/ID_CA.C:void _seg *grsegs[NUMCHUNKS];\r
+16/Catacomb3D/ID_CA.C:long _seg *grstarts; // array of offsets in egagraph, -1 for sparse\r
+16/Catacomb3D/ID_CA.C:long _seg *audiostarts; // array of offsets in audio / audiot\r
+16/Catacomb3D/ID_CA.C: grstarts = (long _seg *)FP_SEG(&EGAhead);\r
+16/Catacomb3D/ID_CA.C: grstarts = (long _seg *)FP_SEG(&CGAhead);\r
+16/Catacomb3D/ID_CA.C: tinf = (byte _seg *)FP_SEG(&maphead);\r
+16/Catacomb3D/ID_CA.C: audiostarts = (long _seg *)FP_SEG(&audiohead);\r
+16/Catacomb3D/ID_CA.C: spritetype _seg *dest;\r
+16/Catacomb3D/ID_CA.C: dest = (spritetype _seg *)grsegs[chunk];\r
+16/Catacomb3D/ID_CA.C: dest = (spritetype _seg *)grsegs[chunk];\r
+16/Catacomb3D/ID_CA.C: pos = ((mapfiletype _seg *)tinf)->headeroffsets[mapnum];\r
+16/Catacomb3D/ID_CA.C: ((mapfiletype _seg *)tinf)->RLEWtag);\r
+16/Catacomb3D/ID_CA.C: ((mapfiletype _seg *)tinf)->RLEWtag);\r
+16/Catacomb3D/ID_CA.C: source = (byte _seg *)bufferseg+(pos-bufferstart);\r
+16/Catacomb3D/ID_IN.C: byte _seg *DemoBuffer;\r
+16/Catacomb3D/ID_IN.C:IN_StartDemoPlayback(byte _seg *buffer,word bufsize)\r
+16/Catacomb3D/ID_RF.C: spritetype _seg *block;\r
+16/Catacomb3D/ID_RF.C: block = (spritetype _seg *)grsegs[spritenumber];\r
+16/Catacomb3D/ID_RF.C: spritetype _seg *block;\r
+16/Catacomb3D/ID_RF.C: block = (spritetype _seg *)grsegs[spritenumber];\r
+16/Catacomb3D/ID_SD.C: word *SoundTable; // Really * _seg *SoundTable, but that don't work\r
+16/Catacomb3D/ID_VW.C:pictabletype _seg *pictable;\r
+16/Catacomb3D/ID_VW.C:pictabletype _seg *picmtable;\r
+16/Catacomb3D/ID_VW.C:spritetabletype _seg *spritetable;\r
+16/Catacomb3D/ID_VW.C: fontstruct _seg *font);\r
+16/Catacomb3D/ID_VW.C: spritetype _seg *block;\r
+16/Catacomb3D/ID_VW.C: block = (spritetype _seg *)grsegs[chunknum];\r
+16/Catacomb3D/ID_VW.C:VWL_MeasureString (char far *string, word *width, word *height, fontstruct _seg *font)\r
+16/Catacomb3D/ID_VW.C: VWL_MeasureString(string,width,height,(fontstruct _seg *)grsegs[STARTFONT+fontnumber]);\r
+16/Catacomb3D/ID_VW.C: VWL_MeasureString(string,width,height,(fontstruct _seg *)grsegs[STARTFONTM+fontnumber]);\r
+16/Catacomb3D/ID_VW.C: spritetype _seg *block;\r
+16/Catacomb3D/ID_VW.C: block = (spritetype _seg *)grsegs[chunknum];\r
+16/Catacomb3D/C3_DEF.H:extern t_compscale _seg *scaledirectory[MAXSCALE+1];\r
+16/Catacomb3D/C3_DEF.H:extern t_compshape _seg *shapedirectory[NUMSCALEPICS];\r
+16/Catacomb3D/C3_DEF.H:void ScaleShape (int xcenter, t_compshape _seg *compshape, unsigned scale);\r
+16/Catacomb3D/C3_DEF.H:unsigned BuildCompShape (t_compshape _seg **finalspot);\r
+16/Catacomb3D/ID_CA.H:extern byte _seg *tinf;\r
+16/Catacomb3D/ID_CA.H:extern unsigned _seg *mapsegs[3];\r
+16/Catacomb3D/ID_CA.H:extern maptype _seg *mapheaderseg[NUMMAPS];\r
+16/Catacomb3D/ID_CA.H:extern byte _seg *audiosegs[NUMSNDCHUNKS];\r
+16/Catacomb3D/ID_CA.H:extern void _seg *grsegs[NUMCHUNKS];\r
+16/Catacomb3D/ID_IN.H:extern byte _seg *DemoBuffer;\r
+16/Catacomb3D/ID_IN.H: IN_StartDemoPlayback(byte _seg *buffer,word bufsize),\r
+16/Catacomb3D/ID_MM.H:typedef void _seg * memptr;\r
+16/Catacomb3D/ID_VW.H:extern pictabletype _seg *pictable;\r
+16/Catacomb3D/ID_VW.H:extern pictabletype _seg *picmtable;\r
+16/Catacomb3D/ID_VW.H:extern spritetabletype _seg *spritetable;\r
+==== 16/CatacombApocalypse ====
+16/CatacombApocalypse/C6_GAME.C: text = (char _seg *)grsegs[LEVEL1TEXT+mapon];\r
+16/CatacombApocalypse/C6_GAME.C: src = (byte _seg *)grsegs[STARTTILE8];\r
+16/CatacombApocalypse/C6_GAME.C: src = (byte _seg *)grsegs[STARTTILE16];\r
+16/CatacombApocalypse/C6_GAME.C: src = (byte _seg *)grsegs[STARTTILE16+i];\r
+16/CatacombApocalypse/C6_SCALE.C:t_compscale _seg *scaledirectory[NUMSCALEPICS];\r
+16/CatacombApocalypse/C6_SCALE.C:t_compshape _seg *shapedirectory[NUMSCALEPICS];\r
+16/CatacombApocalypse/C6_SCALE.C: plane0 = (byte _seg *)grsegs[picnum];\r
+16/CatacombApocalypse/C6_SCALE.C: t_compscale _seg *work;\r
+16/CatacombApocalypse/C6_SCALE.C: _fmemcpy ((byte _seg *)(*finalspot),(byte _seg *)work,totalsize);\r
+16/CatacombApocalypse/C6_SCALE.C:unsigned BuildCompShape (t_compshape _seg **finalspot)\r
+16/CatacombApocalypse/C6_SCALE.C: t_compshape _seg *work;\r
+16/CatacombApocalypse/C6_SCALE.C: work = (t_compshape _seg *)(0xa000+(buff+15)/16);\r
+16/CatacombApocalypse/C6_SCALE.C: _fmemcpy ((byte _seg *)(*finalspot),(byte _seg *)work,totalsize);\r
+16/CatacombApocalypse/C6_SCALE.C:void ScaleShape (int xcenter, t_compshape _seg *compshape, unsigned scale)\r
+16/CatacombApocalypse/C6_SCALE.C: t_compscale _seg *comptable;\r
+16/CatacombApocalypse/C6_WIZ.C: text = (char _seg *)grsegs[LEVEL1TEXT+mapon]+textstarts[number];\r
+16/CatacombApocalypse/C6_WIZ.C: txt = (char _seg *)grsegs[SCROLLTEXT];\r
+16/CatacombApocalypse/C6_WIZ.C: txt = (char _seg *)grsegs[SCROLLTEXT]+ofset;\r
+16/CatacombApocalypse/GELIB.C: fontstruct _seg *font = (fontstruct _seg *)grsegs[STARTFONT];\r
+16/CatacombApocalypse/ID_CA.C:byte _seg *tinf;\r
+16/CatacombApocalypse/ID_CA.C:unsigned _seg *mapsegs[3];\r
+16/CatacombApocalypse/ID_CA.C:maptype _seg *mapheaderseg[NUMMAPS];\r
+16/CatacombApocalypse/ID_CA.C:byte _seg *audiosegs[NUMSNDCHUNKS];\r
+16/CatacombApocalypse/ID_CA.C:void _seg *grsegs[NUMCHUNKS];\r
+16/CatacombApocalypse/ID_CA.C:long _seg *grstarts; // array of offsets in egagraph, -1 for sparse\r
+16/CatacombApocalypse/ID_CA.C:long _seg *audiostarts; // array of offsets in audio / audiot\r
+16/CatacombApocalypse/ID_CA.C: grstarts = (long _seg *)FP_SEG(&EGAhead);\r
+16/CatacombApocalypse/ID_CA.C: grstarts = (long _seg *)FP_SEG(&CGAhead);\r
+16/CatacombApocalypse/ID_CA.C: tinf = (byte _seg *)FP_SEG(&maphead);\r
+16/CatacombApocalypse/ID_CA.C: audiostarts = (long _seg *)FP_SEG(&audiohead);\r
+16/CatacombApocalypse/ID_CA.C: spritetype _seg *dest;\r
+16/CatacombApocalypse/ID_CA.C: dest = (spritetype _seg *)grsegs[chunk];\r
+16/CatacombApocalypse/ID_CA.C: dest = (spritetype _seg *)grsegs[chunk];\r
+16/CatacombApocalypse/ID_CA.C: pos = ((mapfiletype _seg *)tinf)->headeroffsets[mapnum];\r
+16/CatacombApocalypse/ID_CA.C: ((mapfiletype _seg *)tinf)->RLEWtag);\r
+16/CatacombApocalypse/ID_CA.C: ((mapfiletype _seg *)tinf)->RLEWtag);\r
+16/CatacombApocalypse/ID_CA.C: source = (byte _seg *)bufferseg+(pos-bufferstart);\r
+16/CatacombApocalypse/ID_IN.C:// byte _seg *DemoBuffer;\r
+16/CatacombApocalypse/ID_IN.C:IN_StartDemoPlayback(byte _seg *buffer,word bufsize)\r
+16/CatacombApocalypse/ID_RF.C: spritetype _seg *block;\r
+16/CatacombApocalypse/ID_RF.C: block = (spritetype _seg *)grsegs[spritenumber];\r
+16/CatacombApocalypse/ID_RF.C: spritetype _seg *block;\r
+16/CatacombApocalypse/ID_RF.C: block = (spritetype _seg *)grsegs[spritenumber];\r
+16/CatacombApocalypse/ID_SD.C: word *SoundTable; // Really * _seg *SoundTable, but that don't work\r
+16/CatacombApocalypse/ID_VW.C:pictabletype _seg *pictable;\r
+16/CatacombApocalypse/ID_VW.C:pictabletype _seg *picmtable;\r
+16/CatacombApocalypse/ID_VW.C:spritetabletype _seg *spritetable;\r
+16/CatacombApocalypse/ID_VW.C: fontstruct _seg *font);\r
+16/CatacombApocalypse/ID_VW.C: spritetype _seg *block;\r
+16/CatacombApocalypse/ID_VW.C: block = (spritetype _seg *)grsegs[chunknum];\r
+16/CatacombApocalypse/ID_VW.C:VWL_MeasureString (char far *string, word *width, word *height, fontstruct _seg *font)\r
+16/CatacombApocalypse/ID_VW.C: VWL_MeasureString(string,width,height,(fontstruct _seg *)grsegs[STARTFONT+fontnumber]);\r
+16/CatacombApocalypse/ID_VW.C: VWL_MeasureString(string,width,height,(fontstruct _seg *)grsegs[STARTFONTM+fontnumber]);\r
+16/CatacombApocalypse/ID_VW.C: spritetype _seg *block;\r
+16/CatacombApocalypse/ID_VW.C: block = (spritetype _seg *)grsegs[chunknum];\r
+16/CatacombApocalypse/DEF.H:extern t_compscale _seg *scaledirectory[NUMSCALEPICS];\r
+16/CatacombApocalypse/DEF.H:extern t_compshape _seg *shapedirectory[NUMSCALEPICS];\r
+16/CatacombApocalypse/DEF.H:void ScaleShape (int xcenter, t_compshape _seg *compshape, unsigned scale);\r
+16/CatacombApocalypse/DEF.H:unsigned BuildCompShape (t_compshape _seg **finalspot);\r
+16/CatacombApocalypse/ID_CA.H:extern byte _seg *tinf;\r
+16/CatacombApocalypse/ID_CA.H:extern unsigned _seg *mapsegs[3];\r
+16/CatacombApocalypse/ID_CA.H:extern maptype _seg *mapheaderseg[NUMMAPS];\r
+16/CatacombApocalypse/ID_CA.H:extern byte _seg *audiosegs[NUMSNDCHUNKS];\r
+16/CatacombApocalypse/ID_CA.H:extern void _seg *grsegs[NUMCHUNKS];\r
+16/CatacombApocalypse/ID_IN.H:extern byte _seg *DemoBuffer;\r
+16/CatacombApocalypse/ID_IN.H: IN_StartDemoPlayback(byte _seg *buffer,word bufsize),\r
+16/CatacombApocalypse/ID_MM.H:typedef void _seg * memptr;\r
+16/CatacombApocalypse/ID_VW.H:extern pictabletype _seg *pictable;\r
+16/CatacombApocalypse/ID_VW.H:extern pictabletype _seg *picmtable;\r
+16/CatacombApocalypse/ID_VW.H:extern spritetabletype _seg *spritetable;\r
+16/CatacombApocalypse/ID_VW.H:void VWL_MeasureString (char far *string, word *width, word *height, fontstruct _seg *font);\r
+=============== ./qcata.sh end ===============
-grep "$1" src/*.c
-grep "$1" src/*.h
-grep "$1" src/lib/*.c
-grep "$1" src/lib/*.h
+#! /bin/bash
+dir1="src"
+dir2=$dir1"/lib"
+dir3=$dir2"/vgmsnd"
+. ./src/util/qhead.sh $0
+#echo ==== $dir1 ====
+grep "$1" "$dir1"/*.c
+grep "$1" "$dir1"/*.h
+#echo ==== $dir2 ====
+grep "$1" "$dir2"/*.c
+grep "$1" "$dir2"/*.h
+#echo ==== $dir3 ====
+grep "$1" "$dir3"/*.c
+grep "$1" "$dir3"/*.h
+. ./src/util/qfoot.sh $0
--- /dev/null
+#! /bin/bash
+dir1="16/Catacomb3D"
+dir2="16/CatacombApocalypse"
+. ./src/util/qhead.sh $0
+echo ==== $dir1 ====
+grep "$1" "$dir1"/*.C
+grep "$1" "$dir1"/*.H
+echo ==== $dir2 ====
+grep "$1" "$dir2"/*.C
+grep "$1" "$dir2"/*.H
+. ./src/util/qfoot.sh $0
-grep "$1" 16/keen/*.c
-grep "$1" 16/keen/*.h
-grep "$1" 16/keen/lib/*.c
-grep "$1" 16/keen/lib/*.h
+#! /bin/bash
+dir="16/keen"
+. ./src/util/qhead.sh $0
+grep "$1" "$dir"/*.c
+grep "$1" "$dir"/*.h
+grep "$1" "$dir"/lib/*.c
+grep "$1" "$dir"/lib/*.h
+. ./src/util/qfoot.sh $0
-grep "$1" 16/wf3d8086/*.c
-grep "$1" 16/wf3d8086/*.h
-grep "$1" 16/wf3d8086/lib/*.c
-grep "$1" 16/wf3d8086/lib/*.h
+#! /bin/bash
+dir1="16/wf3d8086"
+dir2="16/wolf3d/WOLFSRC"
+. ./src/util/qhead.sh $0
+echo ==== $dir1 ====
+grep "$1" "$dir1"/*.c
+grep "$1" "$dir1"/*.h
+echo ==== $dir2 ====
+grep "$1" "$dir2"/*.C
+grep "$1" "$dir2"/*.H
+. ./src/util/qfoot.sh $0
\r
#define INITTNUM 1\r
\r
-player_t player[MaxPlayers];\r
map_view_t mv[4];\r
\r
map_t map;//junk var\r
if (vrl_lineoffs == NULL) return 1;\r
\r
IN_Startup();\r
- IN_Default(0,&player,ctrl_Keyboard1);\r
- EN_initplayer(&player, 0, &gvar.video);\r
+ IN_Default(0,&gvar.player,ctrl_Keyboard1);\r
+ EN_initPlayer(&gvar.player, 0, &gvar.video);\r
\r
/* setup camera and screen~ */\r
modexHiganbanaPageSetup(&gvar.video);\r
\r
while(!IN_KeyDown(sc_Escape))\r
{\r
- IN_ReadControl(0,&player);\r
+ IN_ReadControl(0,&gvar.player);\r
if(IN_KeyDown(68)){ gvar.kurokku.fpscap=!gvar.kurokku.fpscap; IN_UserInput(1,1); } //f10\r
- PANKEYFUN;\r
+ TAIL_PANKEYFUN;\r
if(IN_KeyDown(sc_Space) || zerostoppause) //space\r
{\r
anim=!anim;\r
gvar.video.page[0].dx=gvar.video.page[0].dy=gvar.video.page[1].dx=gvar.video.page[1].dy=16;\r
mv[0].tx = mv[0].ty = mv[1].tx = mv[1].ty = INITTNUM;\r
VL_ShowPage(&gvar.video.page[gvar.video.sp], 1, 0);\r
- player[0].enti.q = 1; player[0].enti.d = 2;\r
+ gvar.player[0].enti.q = 1; gvar.player[0].enti.d = 2;\r
x=y=0;\r
xdir=ydir=1;\r
} //R\r
- FUNCTIONKEYFUNCTIONS0EXE;\r
+ TAIL_FUNCTIONKEYFUNCTIONS0EXE;\r
\r
if(anim && !noanim)\r
{\r
#include "src/16.h"\r
\r
engi_stat_t engi_stat;\r
-player_t player[MaxPlayers];\r
\r
void\r
main(int argc, char *argv[])\r
modexSavePalFile("data/g.pal", gvar.video.palette);\r
VGAmodeX(1, 1, &gvar);\r
// modexPalBlack(); //so player will not see loadings~\r
- IN_Default(0,&player,ctrl_Joystick);\r
+ IN_Default(0,&gvar.player,ctrl_Joystick);\r
//modexprint(&screen, 32, 32, 1, 2, 0, "a", 1);\r
while(ENGI_EXIT != engi_stat)\r
{\r
- IN_ReadControl(0,&player);\r
+ IN_ReadControl(0,&gvar.player);\r
if(IN_KeyDown(sc_Escape)) engi_stat = ENGI_EXIT;\r
shinku(&gvar);\r
_DEBUGF("Serial debug output printf test %u %u %u\n",1U,2U,3U);\r
main(int argc, char *argv[])\r
{\r
static global_game_variables_t gvar;\r
- player_t player[MaxPlayers];\r
//extern struct inconfig inpu;\r
dbg_testkeyin=0;\r
dbg_testcontrolnoisy=1;\r
start_timer(&gvar);\r
//Startup16(&gvar);\r
IN_Startup();\r
- //IN_Default(0,&player,ctrl_Joystick1);\r
- //IN_SetControlType(0,&player,ctrl_Joystick1);\r
- IN_Default(0,&player,ctrl_Keyboard1);\r
- IN_SetControlType(0,&player,ctrl_Keyboard1);\r
+ //IN_Default(0,&gvar.player,ctrl_Joystick1);\r
+ //IN_SetControlType(0,&gvar.player,ctrl_Joystick1);\r
+ IN_Default(0,&gvar.player,ctrl_Keyboard1);\r
+ IN_SetControlType(0,&gvar.player,ctrl_Keyboard1);\r
\r
- player[0].enti.q=1;\r
- player[0].enti.d=2;\r
- player[0].enti.speed=4;\r
+ gvar.player[0].enti.q=1;\r
+ gvar.player[0].enti.d=2;\r
+ gvar.player[0].enti.speed=4;\r
\r
//0000 nibbletest();\r
//0000 booleantest();\r
- //printf("dbg_testkeyin=%u dbg_testcontrolnoisy=%u dbg_noplayerinpu=%u\nloop if this is not responsive then please KILL or reset machine sorry!!\n", dbg_testkeyin, dbg_testcontrolnoisy, dbg_noplayerinpu);\r
+ //printf("dbg_testkeyin=%u dbg_testcontrolnoisy=%u dbg_nogvar.playerinpu=%u\nloop if this is not responsive then please KILL or reset machine sorry!!\n", dbg_testkeyin, dbg_testcontrolnoisy, dbg_nogvar.playerinpu);\r
while(!IN_KeyDown(sc_Escape))\r
{\r
//0000 shinkutxt(&gvar);\r
- IN_ReadControl(0, &player);\r
- switch(player[0].enti.d)\r
+ IN_ReadControl(0, &gvar.player);\r
+ switch(gvar.player[0].enti.d)\r
{\r
//right movement\r
case 3:\r
- if(player[0].enti.q<=(TILEWH/(player[0].enti.speed)))\r
+ if(gvar.player[0].enti.q<=(TILEWH/(gvar.player[0].enti.speed)))\r
{\r
- player[0].enti.q++;\r
- } else { player[0].enti.q = 1; player[0].enti.d = 2; }\r
+ gvar.player[0].enti.q++;\r
+ } else { gvar.player[0].enti.q = 1; gvar.player[0].enti.d = 2; }\r
break;\r
\r
//left movement\r
case 1:\r
- if(player[0].enti.q<=(TILEWH/(player[0].enti.speed)))\r
+ if(gvar.player[0].enti.q<=(TILEWH/(gvar.player[0].enti.speed)))\r
{\r
- player[0].enti.q++;\r
- } else { player[0].enti.q = 1; player[0].enti.d = 2; }\r
+ gvar.player[0].enti.q++;\r
+ } else { gvar.player[0].enti.q = 1; gvar.player[0].enti.d = 2; }\r
break;\r
\r
//down movement\r
case 4:\r
- if(player[0].enti.q<=(TILEWH/(player[0].enti.speed)))\r
+ if(gvar.player[0].enti.q<=(TILEWH/(gvar.player[0].enti.speed)))\r
{\r
- player[0].enti.q++;\r
- } else { player[0].enti.q = 1; player[0].enti.d = 2; }\r
+ gvar.player[0].enti.q++;\r
+ } else { gvar.player[0].enti.q = 1; gvar.player[0].enti.d = 2; }\r
break;\r
\r
//up movement\r
case 0:\r
- if(player[0].enti.q<=(TILEWH/(player[0].enti.speed)))\r
+ if(gvar.player[0].enti.q<=(TILEWH/(gvar.player[0].enti.speed)))\r
{\r
- player[0].enti.q++;\r
- } else { player[0].enti.q = 1; player[0].enti.d = 2; }\r
+ gvar.player[0].enti.q++;\r
+ } else { gvar.player[0].enti.q = 1; gvar.player[0].enti.d = 2; }\r
break;\r
}\r
//printf("%u\n", IN_KeyDown(sc_Escape));\r
}\r
\r
//init player!\r
-void EN_initplayer(player_t *player, word pn, video_t *video)\r
+void EN_initPlayer(player_t *player, word pn, video_t *video)\r
{\r
EN_initentity(&player[pn].enti, video);\r
player[pn].enti.spri.x = player[0].enti.x-4;\r
// } entity_t;
void EN_initentity(entity_t *enti, video_t *video);
-void EN_initplayer(player_t *player, word pn, video_t *video);
+void EN_initPlayer(player_t *player, word pn, video_t *video);
#endif
#define JoyScaleShift 8\r
#define MaxJoyValue 5000\r
\r
-#define MaxPlayers 2//futre plans for multiple playable charaters and being able to alternate\r
+//#define MaxPlayers 2//future plans for multiple playable charaters and being able to alternate\r
#define MaxKbds 2\r
#define MaxJoys 2\r
#define MaxPads 2\r
#include "src/lib/16_vl.h"\r
#include "src/lib/testpatt.h"\r
\r
-#define FUNCTIONKEYFUNCTIONS \\r
+#define TAIL_FUNCTIONKEYFUNCTIONS \\r
if(IN_KeyDown(88)){ panswitch=!panswitch; IN_UserInput(1,1); } \\r
- FUNCTIONKEYFUNCTIONS0EXE\r
+ TAIL_FUNCTIONKEYFUNCTIONS0EXE\r
\r
-#define FUNCTIONKEYFUNCTIONS0EXE \\r
+#define TAIL_FUNCTIONKEYFUNCTIONS0EXE \\r
if(IN_KeyDown(sc_F4)){ turboXT(12); IN_UserInput(1,1); } \\r
if(IN_KeyDown(87/*sc_F11*/)){ pagedelayrendermap=!pagedelayrendermap; IN_UserInput(1,1); } \\r
if(IN_KeyDown(68/*sc_F10*/)){ gvar.kurokku.fpscap=!gvar.kurokku.fpscap; IN_UserInput(1,1); } \\r
if(IN_KeyDown(sc_T)){ gvar.video.rss=!gvar.video.rss; IN_UserInput(1,1); } \\r
if(IN_KeyDown(sc_P)){ modexpdump(&gvar.video.page[0]); IN_UserInput(1,1); }\r
\r
-#define PANKEYFUN \\r
- PANKEYFUNZC \\r
- FUNCTIONKEYDRAWJUNK\r
+#define TAIL_PANKEYFUN \\r
+ TAIL_PANKEYFUNZC \\r
+ TAIL_FUNCTIONKEYDRAWJUNK\r
\r
-#define PANKEYFUNZC \\r
- ZC_panPageManual(&mv, &player, 0);\r
+#define TAIL_PANKEYFUNZC \\r
+ ZC_panPageManual(&mv, &gvar.player, 0);\r
\r
-#define FUNCTIONKEYSHOWMV \\r
+#define TAIL_FUNCTIONKEYSHOWMV \\r
if(IN_KeyDown(1+1)){ gvar.video.sp=0; ZC_ShowMV(&mv, 0, 0); } \\r
if(IN_KeyDown(2+1)){ gvar.video.sp=1; ZC_ShowMV(&mv, 0, 0); } \\r
if(IN_KeyDown(3+1)){ gvar.video.sp=2; ZC_ShowMV(&mv, 0, 1); } \\r
- if(IN_KeyDown(4+1)){ gvar.video.sp=3; ZC_ShowMV(&mv, 0, 1); } \\r
+ if(IN_KeyDown(4+1)){ gvar.video.sp=3; ZC_ShowMV(&mv, 0, 1); }\r
\r
-#define FUNCTIONKEYDRAWJUNK \\r
- FUNCTIONKEYSHOWMV \\r
- FUNCTIONKEYDRAWJUNKNOMV\r
+#define TAIL_FUNCTIONKEYDRAWJUNK \\r
+ TAIL_FUNCTIONKEYSHOWMV \\r
+ TAIL_FUNCTIONKEYDRAWJUNKNOMV\r
\r
-#define FUNCTIONKEYDRAWJUNKNOMV \\r
+#define TAIL_FUNCTIONKEYDRAWJUNKNOMV \\r
if(IN_KeyDown(sc_A)) modexClearRegion(&gvar.video.page[2], 0, 0, gvar.video.page[2].sw, gvar.video.page[2].sh, 3); \\r
if(IN_KeyDown(sc_S)) modexClearRegion(&gvar.video.page[3], 0, 0, gvar.video.page[3].sw, gvar.video.page[3].sh, 4); \\r
\\r
\r
//from 16_in\r
//==========================================================================\r
+#define MaxPlayers 2//future plans for multiple playable charaters and being able to alternate\r
+\r
typedef byte ScanCode;\r
\r
typedef enum {\r
video_t video; // video settings variable\r
ca_t ca; // ca stuff\r
pm_t pm; // pm stuff\r
- loghandle_t handle; //handles for file logging\r
- kurokku_t kurokku; //clock struct\r
- mminfo_t mm; mminfotype mmi;\r
+ loghandle_t handle; //handles for file logging\r
+ kurokku_t kurokku; //clock struct\r
+ mminfo_t mm; mminfotype mmi; // mm stuff\r
+ player_t player[MaxPlayers]; // player vars\r
} global_game_variables_t;\r
\r
#ifdef __WATCOMC__\r
//===========================================================================\r
//TODO: put player in starting position of assigned spot on map\r
//default player position on the viewable map\r
-void ZC_playerXYpos(int x, int y, player_t *player, map_view_t *pip, nibble pn, boolean defaultsw)\r
+void ZC_PlayerXYpos(int x, int y, player_t *player, map_view_t *pip, nibble pn, boolean defaultsw)\r
{\r
player[pn].enti.tx = x + pip[0].tx;\r
player[pn].enti.ty = y + pip[0].ty;\r
#define SPRITE\r
//#define TILERENDER\r
\r
-#define PLAYERBMPDATAVAR player[pn].data\r
+#define PLAYERBMPDATAVAR gvar.player[pn].data\r
#define PLAYERBMPDATA *PLAYERBMPDATAVAR\r
#define PLAYERBMPDATAPTR PLAYERBMPDATAVAR\r
\r
-#define PCXBMPVAR player[0].data\r
+#define PCXBMPVAR gvar.player[0].data\r
#define PCXBMP *PCXBMPVAR\r
#define PCXBMPPTR PCXBMPVAR\r
\r
#define FULLRCREND\r
#define DRAWCOLNUM mv->page[id].dx\r
#define DRAWROWNUM mv->page[id].dy\r
-//#define DRAWCOLNUM player[plid].enti.q\r
-//#define DRAWROLNUM player[plid].enti.q\r
+//#define DRAWCOLNUM pl[plid].enti.q\r
+//#define DRAWROLNUM pl[plid].enti.q\r
\r
//for null map!\r
#define MAPW 40\r
\r
//===========================================================================//\r
\r
- //if(player[0].enti.hp==0) printf("%d wwww\n", player[0].enti.y+8);\r
- //else printf("\nplayer[0].enti.y: %d\n", player[0].enti.y);\r
+ //if(gvar.player[0].enti.hp==0) printf("%d wwww\n", gvar.player[0].enti.y+8);\r
+ //else printf("\ngvar.player[0].enti.y: %d\n", gvar.player[0].enti.y);\r
//printf("gvar.video.p=%u ", gvar.video.p);\r
-//not used now printf("temporary player sprite 0: http://www.pixiv.net/member_illust.php?mode=medium&illust_id=45556867\n");\r
-//not used now printf("temporary player sprite 1: http://www.pixiv.net/member_illust.php?mode=medium&illust_id=44606385\n");\r
+//not used now printf("temporary gvar.player sprite 0: http://www.pixiv.net/member_illust.php?mode=medium&illust_id=45556867\n");\r
+//not used now printf("temporary gvar.player sprite 1: http://www.pixiv.net/member_illust.php?mode=medium&illust_id=44606385\n");\r
//printf("mv[%u].tx: %d", gvar.video.panp, mv[gvar.video.panp].tx); printf(" mv[%u].ty: %d ", gvar.video.panp, mv[gvar.video.panp].ty);\r
//printf("gvar.kurokku: "); printf("%.0f ", clock()); printf("tiku=%lu ", gvar.kurokku.tiku); printf("t=%.0f ", gvar.kurokku.t); printf("ticktock()=%f ", ticktock(&gvar)); printf("%.0f fps", (double)gvar.kurokku.tiku/ticktock(&gvar));\r
//printf("map.width=%d map.height=%d map.data[0]=%d\n", mv[1].map->width, mv[1].map->height, mv[1].map->layerdata[0][0]);\r
//printf("pageflipflop=%u", pageflipflop);\r
//printf("&global_temp_status_text = %Fp\n", &global_temp_status_text);\r
//printf("middle tile position: %dx", gvar.video.page[0].tilemidposscreenx); printf("%d\n", gvar.video.page[0].tilemidposscreeny);\r
-//printf(" aniframe=%u", player[0].enti.persist_aniframe);\r
+//printf(" aniframe=%u", gvar.player[0].enti.persist_aniframe);\r
//printf("mv[0]txy: %dx%d ", mv[0].tx, mv[0].ty); printf("mv[1]txy: %dx%d", mv[1].tx, mv[1].ty);\r
#define SCROLLEXITMESG printf("page[0]dxy: %dx%d", gvar.video.page[0].dx, gvar.video.page[0].dy);\\r
printf("\n\n");\\r
- printf("player vars:\n");\\r
- printf(" xy: %dx%d", player[0].enti.x, player[0].enti.y); printf(" txy: %dx%d", player[0].enti.tx, player[0].enti.ty); printf(" triggxy: %dx%d", player[0].enti.triggerx, player[0].enti.triggery); printf(" value: %d\n", mv[1].map->layerdata[0].data[(player[0].enti.triggerx-1)+(map.width*(player[0].enti.triggery-1))]);\\r
- printf(" hp: %d", (player[0].enti.hp)); printf(" q: %u", player[0].enti.q); printf(" info.dir: %u", player[0].info.dir); printf(" d: %u", player[0].enti.d); printf(" dire: %u", player[0].enti.dire);\\r
- printf(" pdir: %u\n", player[0].pdir); printf(" delay=%u", player[0].enti.spri.delay);\\r
+ printf("gvar.player vars:\n");\\r
+ printf(" xy: %dx%d", gvar.player[0].enti.x, gvar.player[0].enti.y); printf(" txy: %dx%d", gvar.player[0].enti.tx, gvar.player[0].enti.ty); printf(" triggxy: %dx%d", gvar.player[0].enti.triggerx, gvar.player[0].enti.triggery); printf(" value: %d\n", mv[1].map->layerdata[0].data[(gvar.player[0].enti.triggerx-1)+(map.width*(gvar.player[0].enti.triggery-1))]);\\r
+ printf(" hp: %d", (gvar.player[0].enti.hp)); printf(" q: %u", gvar.player[0].enti.q); printf(" info.dir: %u", gvar.player[0].info.dir); printf(" d: %u", gvar.player[0].enti.d); printf(" dire: %u", gvar.player[0].enti.dire);\\r
+ printf(" pdir: %u\n", gvar.player[0].pdir); printf(" delay=%u", gvar.player[0].enti.spri.delay);\\r
printf("\n\n");\\r
VL_PrintmodexmemInfo(&gvar.video);\\r
\\r
void near mapScrollUp(map_view_t *mv, player_t *player, word id, word plid);\r
void near mapScrollDown(map_view_t *mv, player_t *player, word id, word plid);\r
void ZC_mapScroll(map_view_t *mv, player_t *player, word pn);\r
-void ZC_playerXYpos(int x, int y, player_t *player, map_view_t *pip, nibble pn, boolean defaultsw);\r
+void ZC_PlayerXYpos(int x, int y, player_t *player, map_view_t *pip, nibble pn, boolean defaultsw);\r
sword chkmap(map_t *map, word q);\r
void mapGoTo(map_view_t *mv, int tx, int ty);\r
void ZC_mapinitMV(map_view_t *mv, int tx, int ty);\r
void near mapDrawCol(map_view_t *mv, int tx, int ty, word x, player_t *player, word poopoffset);\r
void mapDrawWRow(map_view_t *mv, int tx, int ty, word y);\r
void mapDrawWCol(map_view_t *mv, int tx, int ty, word x);\r
-inline void near ScrollRight(map_view_t *mv, player_t *player, word id, word plid)\r
+inline void near ScrollRight(map_view_t *mv, player_t *pl, word id, word plid)\r
{\r
/* increment the pixel position and update the page */\r
- mv[id].page->dx += player[plid].enti.speed;\r
+ mv[id].page->dx += pl[plid].enti.speed;\r
\r
/* check to see if this changes the tile */\r
if(mv[id].page->dx >= mv[id].dxThresh )\r
}\r
}\r
\r
-inline void near ScrollLeft(map_view_t *mv, player_t *player, word id, word plid)\r
+inline void near ScrollLeft(map_view_t *mv, player_t *pl, word id, word plid)\r
{\r
/* decrement the pixel position and update the page */\r
- mv[id].page->dx -= player[plid].enti.speed;\r
+ mv[id].page->dx -= pl[plid].enti.speed;\r
\r
/* check to see if this changes the tile */\r
if(mv[id].page->dx == 0)\r
}\r
}\r
\r
-inline void near ScrollUp(map_view_t *mv, player_t *player, word id, word plid)\r
+inline void near ScrollUp(map_view_t *mv, player_t *pl, word id, word plid)\r
{\r
/* decrement the pixel position and update the page */\r
- mv[id].page->dy -= player[plid].enti.speed;\r
+ mv[id].page->dy -= pl[plid].enti.speed;\r
\r
/* check to see if this changes the tile */\r
if(mv[id].page->dy == 0 )\r
}\r
}\r
\r
-inline void near ScrollDown(map_view_t *mv, player_t *player, word id, word plid)\r
+inline void near ScrollDown(map_view_t *mv, player_t *pl, word id, word plid)\r
{\r
/* increment the pixel position and update the page */\r
- mv[id].page->dy += player[plid].enti.speed;\r
+ mv[id].page->dy += pl[plid].enti.speed;\r
\r
/* check to see if this changes the tile */\r
if(mv[id].page->dy >= mv[id].dyThresh )\r
// Move an entity around. Should actually be in 16_entity\r
boolean ZC_walk2(entity_t *ent, map_view_t *map_v);\r
\r
-// Move player around and call map scrolling if required/possible\r
+// Move gvar.player around and call map scrolling if required/possible\r
void walk_player(player_t *player, map_view_t *map_v);\r
\r
//check map edge\r
return false;\r
}\r
\r
-// Scroll map in one direction (assumed from player's movement)\r
+// Scroll map in one direction (assumed from gvar.player's movement)\r
void mapScroll(map_view_t *mv, player_t *player);\r
\r
#endif /*__SCROLL16_H_*/\r
\r
static word far* clockw= (word far*) 0x046C; /* 18.2hz clock */\r
\r
-#define PCXBMPVAR player[0].data\r
+#define PCXBMPVAR gvar.player[0].data\r
#define PCXBMP *PCXBMPVAR\r
#define PCXBMPPTR PCXBMPVAR\r
\r
void main() {\r
static global_game_variables_t gvar;\r
- static player_t player[MaxPlayers];\r
//---- planar_buf_t *p;\r
word start;\r
float t1, t2;\r
void main(int argc, char *argv[])\r
{\r
static global_game_variables_t gvar;\r
- static player_t player[MaxPlayers];\r
if(argv[1]) bakapee = atoi(argv[1]);\r
else bakapee = 1;\r
\r
\r
#endif\r
/* input! */\r
- IN_Default(0, &player,ctrl_Keyboard1);\r
+ IN_Default(0, &gvar.gvar.player,ctrl_Keyboard1);\r
\r
/* save the palette */\r
#ifdef MODEX\r
&gvar.video.palette = modexNewPal();\r
modexPalSave(&gvar.video.palette);\r
modexSavePalFile("data/g.pal", &gvar.video.palette);\r
- modexPalBlack(); //so player will not see loadings~\r
+ modexPalBlack(); //so gvar.player will not see loadings~\r
#endif\r
#endif\r
\r
//TODO: LOAD map data and position the map in the middle of the screen if smaller then screen\r
mapGoTo(&mv, 0, 0);\r
\r
- ZC_playerXYpos(0, 0, &player, &mv, 0, 1);\r
- EN_initplayer(&player, 0, &gvar.video);\r
+ ZC_gvar.playerXYpos(0, 0, &gvar.player, &mv, 0, 1);\r
+ EN_initgvar.player(&gvar.player, 0, &gvar.video);\r
if (gvar.video.sprifilei == -1)\r
{\r
#ifdef FADE\r
}\r
\r
#ifndef SPRITE\r
- modexClearRegion(mv[0].page, player[0].enti.x, player[0].enti.y-TILEWH, 16, 32, 15);\r
+ modexClearRegion(mv[0].page, gvar.player[0].enti.x, gvar.player[0].enti.y-TILEWH, 16, 32, 15);\r
#else\r
- modexDrawSpriteRegion(&gvar.video.page[0], player[0].enti.x, player[0].enti.y-TILEWH, 16, 64, 16, 32, PCXBMPPTR);\r
+ modexDrawSpriteRegion(&gvar.video.page[0], gvar.player[0].enti.x, gvar.player[0].enti.y-TILEWH, 16, 64, 16, 32, PCXBMPPTR);\r
#endif\r
\r
//if(!pageflipflop)\r
modexFadeOn(4, &gvar.video.palette);\r
#endif\r
#endif\r
- while(!IN_KeyDown(sc_Escape) && player[0].enti.hp>0)\r
+ while(!IN_KeyDown(sc_Escape) && gvar.player[0].enti.hp>0)\r
{\r
shinku(&gvar);\r
//top left corner & bottem right corner of map veiw be set as map edge trigger since maps are actually square\r
- //to stop scrolling and have the player position data move to the edge of the screen with respect to the direction\r
- //when player[0].enti.tx or player[0].enti.ty == 0 or player[0].enti.tx == 20 or player[0].enti.ty == 15 then stop because that is edge of map and you do not want to walk of the map\r
+ //to stop scrolling and have the gvar.player position data move to the edge of the screen with respect to the direction\r
+ //when gvar.player[0].enti.tx or gvar.player[0].enti.ty == 0 or gvar.player[0].enti.tx == 20 or gvar.player[0].enti.ty == 15 then stop because that is edge of map and you do not want to walk of the map\r
\r
- //player movement\r
- IN_ReadControl(0, &player);\r
+ //gvar.player movement\r
+ IN_ReadControl(0, &gvar.player);\r
if(!panswitch){\r
- ZC_walk(&mv, &player, 0);\r
+ ZC_walk(&mv, &gvar.player, 0);\r
}else{\r
- PANKEYFUNZC;//panPageManual(&mv, &player, 0);\r
- //printf(" player[0].enti.q: %d", player[0].enti.q); printf(" player[0].d: %d\n", player[0].d);\r
+ PANKEYFUNZC;//panPageManual(&mv, &gvar.player, 0);\r
+ //printf(" gvar.player[0].enti.q: %d", gvar.player[0].enti.q); printf(" gvar.player[0].d: %d\n", gvar.player[0].d);\r
}\r
\r
//the scripting stuff....\r
- //if(((player[0].enti.triggerx == TRIGGX && player[0].enti.triggery == TRIGGY) && IN_KeyDown(0x1C))||(player[0].enti.tx == 5 && player[0].enti.ty == 5))\r
- if(((mv[0].map->layerdata[0].data[(player[0].enti.triggerx-1)+(map.width*(player[0].enti.triggery-1))] == 0) && IN_KeyDown(0x1C))||(player[0].enti.tx == 5 && player[0].enti.ty == 5))\r
+ //if(((gvar.player[0].enti.triggerx == TRIGGX && gvar.player[0].enti.triggery == TRIGGY) && IN_KeyDown(0x1C))||(gvar.player[0].enti.tx == 5 && gvar.player[0].enti.ty == 5))\r
+ if(((mv[0].map->layerdata[0].data[(gvar.player[0].enti.triggerx-1)+(map.width*(gvar.player[0].enti.triggery-1))] == 0) && IN_KeyDown(0x1C))||(gvar.player[0].enti.tx == 5 && gvar.player[0].enti.ty == 5))\r
{\r
short i;\r
for(i=800; i>=400; i--)\r
}\r
nosound();\r
}\r
- if(player[0].enti.q == (TILEWH/(player[0].enti.speed))+1 && player[0].info.dir != 2 && (player[0].enti.triggerx == 5 && player[0].enti.triggery == 5)){ player[0].enti.hp--; }\r
+ if(gvar.player[0].enti.q == (TILEWH/(gvar.player[0].enti.speed))+1 && gvar.player[0].info.dir != 2 && (gvar.player[0].enti.triggerx == 5 && gvar.player[0].enti.triggery == 5)){ gvar.player[0].enti.hp--; }\r
//debugging binds!\r
#ifdef MODEX\r
#ifdef FADE\r
\r
FUNCTIONKEYFUNCTIONS\r
FUNCTIONKEYDRAWJUNK\r
- if(IN_KeyDown(sc_L)){ modexClearRegion(&gvar.video.page[0], player[0].enti.x, player[0].enti.y, 16, 16, 1); }\r
+ if(IN_KeyDown(sc_L)){ modexClearRegion(&gvar.video.page[0], gvar.player[0].enti.x, gvar.player[0].enti.y, 16, 16, 1); }\r
\r
//9\r
#ifdef FADE\r
#endif\r
if(IN_KeyDown(sc_R)){ modexPalOverscan(rand()%56); } //r\r
\r
- if((player[0].enti.q==1) && !(player[0].enti.x%TILEWH==0 && player[0].enti.y%TILEWH==0)) break; //incase things go out of sync!\r
+ if((gvar.player[0].enti.q==1) && !(gvar.player[0].enti.x%TILEWH==0 && gvar.player[0].enti.y%TILEWH==0)) break; //incase things go out of sync!\r
}\r
\r
/* fade back to text mode */\r
{\r
static word paloffset=0;\r
static global_game_variables_t gvar;\r
- static player_t player[MaxPlayers];\r
\r
map_t map;\r
map_view_t mv[4];\r
//====modexPalBlack();\r
\r
//IN_Startup();\r
- IN_Default(0,&player,ctrl_Keyboard1);\r
- EN_initplayer(&player, 0, &gvar.video);\r
+ IN_Default(0,&gvar.player,ctrl_Keyboard1);\r
+ EN_initPlayer(&gvar.player, 0, &gvar.video);\r
\r
VGAmodeX(1, 1, &gvar);\r
modexPalBlack();\r
startclk = *clockw;\r
while(!IN_KeyDown(sc_Escape))\r
{\r
- IN_ReadControl(0,&player);\r
- ZC_panPageManual(&mv, &player, 0);\r
+ IN_ReadControl(0,&gvar.player);\r
+ ZC_panPageManual(&mv, &gvar.player, 0);\r
//[gvar.video.sp]\r
//ZC_MVSync(&mv);\r
\r
// modexClearRegion(&gvar.video.page[1], 48, 48, gvar.video.page[1].sw-64, gvar.video.page[1].sh-64, 128);\r
// }\r
//}\r
- PANKEYFUN;\r
+ TAIL_PANKEYFUN;\r
if(IN_KeyDown(12)) modexClearRegion(&gvar.video.page[0], (gvar.video.page[0].width/2)-4, (gvar.video.page[0].height/2)-16, 24, 32, 15);\r
if(IN_KeyDown(13)) modexClearRegion(&gvar.video.page[1], (gvar.video.page[1].width/2)-4, (gvar.video.page[1].height/2)-16, 24, 32, 15);\r
/*==== if(IN_KeyDown(7)){\r
printf("Project 16 test.exe. This is just a test file!\n");\r
printf("version %s\n", VERSION);\r
VL_PrintmodexmemInfo(&gvar.video);\r
- printf("tx=%d ", mv[gvar.video.sp].tx); printf("ty=%d ", mv[gvar.video.sp].ty); printf("player.d=%d\n", player[0].enti.d);\r
+ printf("tx=%d ", mv[gvar.video.sp].tx); printf("ty=%d ", mv[gvar.video.sp].ty); printf("gvar.player.d=%d\n", gvar.player[0].enti.d);\r
printf("\n====\n");\r
printf("0 paloffset= %d\n", paloffset/3);\r
printf("====\n\n");\r
--- /dev/null
+#!/bin/bash
+echo ===============" "$1 end" "===============
--- /dev/null
+#!/bin/bash
+echo -------------------------------------------------------------------------------
+echo " "$1 start
+echo -------------------------------------------------------------------------------
void\r
main(int argc, char *argv[])\r
{\r
- //++++global_game_variables_t gvar;\r
+// static global_game_variables_t gvar;\r
VGM_FILE pee[9];\r
- player_t player[MaxPlayers];\r
char *bakapee;\r
\r
bakapee = malloc(64);\r
if(argv[1]) bakapee = argv[1];\r
else bakapee = "data/adlib.vgm";\r
printf("%x\n", OpenVGMFile(bakapee, &pee[0]));\r
- //IN_Startup(); IN_Default(0,&player,ctrl_Keyboard1);\r
+// IN_Startup(); IN_Default(0,&gvar.player,ctrl_Keyboard1);\r
InitEngine();\r
PlayMusic(&pee[0]);\r
- //while(!IN_KeyDown(sc_Escape))\r
+// while(!IN_KeyDown(sc_Escape))\r
while(!kbhit())\r
{\r
- IN_ReadControl(0,&player);\r
+// IN_ReadControl(0,&gvar.player);\r
UpdateSoundEngine();\r
}\r
StopMusic();\r
// gvar.video.palette[w]=rand();\r
break;\r
}\r
- FUNCTIONKEYDRAWJUNKNOMV\r
+ TAIL_FUNCTIONKEYDRAWJUNKNOMV\r
if(IN_KeyDown(sc_F7)){ VL_ShowPage(&gvar.video.page[0], 1, 1); IN_UserInput(1,1); }\r
if(IN_KeyDown(sc_F6)){ VL_ShowPage(&gvar.video.page[0], 1, 0); IN_UserInput(1,1); }\r
if(IN_KeyDown(25)){ modexpdump(&gvar.video.page[0]); IN_UserInput(1,1); } //p\r
void main(int argc, char *argv[])\r
{\r
static global_game_variables_t gvar;\r
- static player_t player[MaxPlayers];\r
char *bakapee1,*bakapee1p;\r
// sword bakapee;\r
// if(argv[1]) bakapee = atoi(argv[1]);\r
\r
// OK, this one takes hellova time and needs to be done in farmalloc or MM_...\r
//IN CA i think you use CAL_SetupGrFile but i do think we should work together on this part --sparky4\r
- //player[0].enti.spri = malloc(sizeof(struct sprite));\r
- player[0].enti.spri.spritesheet = malloc(sizeof(struct vrs_container));\r
+ //gvar.player[0].enti.spri = malloc(sizeof(struct sprite));\r
+ gvar.player[0].enti.spri.spritesheet = malloc(sizeof(struct vrs_container));\r
\r
// create the map\r
// fprintf(stderr, "testing map load~ ");\r
// fprintf(stderr, "yay map loaded~~\n");\r
\r
// data\r
- VRS_LoadVRS(bakapee1, &player[0].enti, &gvar);\r
+ VRS_LoadVRS(bakapee1, &gvar.player[0].enti, &gvar);\r
\r
// input!\r
- IN_Default(0, &player,ctrl_Keyboard1);\r
+ IN_Default(0, &gvar.player,ctrl_Keyboard1);\r
\r
// save the palette\r
#ifdef FADE\r
#ifdef FADE\r
modexPalSave(&gvar.video.palette);\r
modexSavePalFile("data/g.pal", &gvar.video.palette);\r
- modexPalBlack(); //so player will not see loadings~\r
+ modexPalBlack(); //so gvar.player will not see loadings~\r
#endif\r
\r
// setup camera and screen~\r
//TODO: LOAD map data and position the map in the middle of the screen if smaller then screen\r
mapGoTo(&mv, 0, 0);\r
\r
- ZC_playerXYpos(0, 0, &player, &mv, 0, 1);\r
- EN_initplayer(&player, 0, &gvar.video);\r
- //print_anim_ids(player[0].enti.spri);\r
+ ZC_PlayerXYpos(0, 0, &gvar.player, &mv, 0, 1);\r
+ EN_initPlayer(&gvar.player, 0, &gvar.video);\r
+ //print_anim_ids(gvar.player[0].enti.spri);\r
if (gvar.video.sprifilei == -1)\r
{\r
#ifdef FADE\r
#ifdef FADE\r
modexFadeOn(4, &gvar.video.palette);\r
#endif\r
- while(!IN_KeyDown(sc_Escape) && player[0].enti.hp>0)\r
+ while(!IN_KeyDown(sc_Escape) && gvar.player[0].enti.hp>0)\r
{\r
gvar.video.page[0].tlx=mv[0].tx*TILEWH;\r
gvar.video.page[0].tly=mv[0].ty*TILEWH;\r
shinku(&gvar);\r
//top left corner & bottem right corner of map veiw be set as map edge trigger since maps are actually square\r
- //to stop scrolling and have the player position data move to the edge of the screen with respect to the direction\r
- //when player[0].tx or player[0].ty == 0 or player[0].tx == 20 or player[0].ty == 15 then stop because that is edge of map and you do not want to walk of the map\r
+ //to stop scrolling and have the gvar.player position data move to the edge of the screen with respect to the direction\r
+ //when gvar.player[0].tx or gvar.player[0].ty == 0 or gvar.player[0].tx == 20 or gvar.player[0].ty == 15 then stop because that is edge of map and you do not want to walk of the map\r
\r
- //player movement\r
- IN_ReadControl(0, &player);\r
+ //gvar.player movement\r
+ IN_ReadControl(0, &gvar.player);\r
if(!panswitch){\r
- //ZC_walk2(player[0].ent, mv);\r
- ZC_walk(&mv, &player, 0);\r
+ //ZC_walk2(gvar.player[0].ent, mv);\r
+ ZC_walk(&mv, &gvar.player, 0);\r
}else{\r
- PANKEYFUNZC;\r
- //printf(" player[0].enti.q: %d", player[0].enti.q); printf(" player[0].d: %d\n", player[0].d);\r
+ TAIL_PANKEYFUNZC;\r
+ //printf(" gvar.player[0].enti.q: %d", gvar.player[0].enti.q); printf(" gvar.player[0].d: %d\n", gvar.player[0].d);\r
}\r
\r
//the scripting stuff....\r
- //if(((player[0].enti.triggerx == TRIGGX && player[0].enti.triggery == TRIGGY) && IN_KeyDown(0x1C))||(player[0].enti.tx == 5 && player[0].enti.ty == 5))\r
- if(((mv[0].map->layerdata[0].data[(player[0].enti.triggerx-1)+(map.width*(player[0].enti.triggery-1))] == 0) && IN_KeyDown(0x1C))||(player[0].enti.tx == 5 && player[0].enti.ty == 5))\r
+ //if(((gvar.player[0].enti.triggerx == TRIGGX && gvar.player[0].enti.triggery == TRIGGY) && IN_KeyDown(0x1C))||(gvar.player[0].enti.tx == 5 && gvar.player[0].enti.ty == 5))\r
+ if(((mv[0].map->layerdata[0].data[(gvar.player[0].enti.triggerx-1)+(map.width*(gvar.player[0].enti.triggery-1))] == 0) && IN_KeyDown(0x1C))||(gvar.player[0].enti.tx == 5 && gvar.player[0].enti.ty == 5))\r
{\r
short i;\r
for(i=800; i>=400; i--)\r
}\r
nosound();\r
}\r
- if(player[0].enti.q == (TILEWH/(player[0].enti.speed))+1 && player[0].info.dir != 2 && (player[0].enti.triggerx == 5 && player[0].enti.triggery == 5)){ player[0].enti.hp--; }\r
+ if(gvar.player[0].enti.q == (TILEWH/(gvar.player[0].enti.speed))+1 && gvar.player[0].info.dir != 2 && (gvar.player[0].enti.triggerx == 5 && gvar.player[0].enti.triggery == 5)){ gvar.player[0].enti.hp--; }\r
//debugging binds!\r
\r
if(IN_KeyDown(24)){ modexPalUpdate0(&gvar.video.palette); /*paloffset=0;*/ modexpdump(mv[0].page); IN_UserInput(1,1); } //o\r
if(IN_KeyDown(22)){ modexPalUpdate0(&gvar.video.palette); } //u\r
\r
- FUNCTIONKEYFUNCTIONS\r
- FUNCTIONKEYDRAWJUNK\r
- if(IN_KeyDown(sc_L)){ modexClearRegion(&gvar.video.page[0], player[0].enti.x, player[0].enti.y, 16, 16, 1); }\r
+ TAIL_FUNCTIONKEYFUNCTIONS\r
+ TAIL_FUNCTIONKEYDRAWJUNK\r
+ if(IN_KeyDown(sc_L)){ modexClearRegion(&gvar.video.page[0], gvar.player[0].enti.x, gvar.player[0].enti.y, 16, 16, 1); }\r
if(IN_KeyDown(sc_J) || IN_KeyDown(sc_K))\r
{\r
if(IN_KeyDown(sc_J))\r
{\r
bakapee1=FILENAME_1;\r
bakapee1p=FILENAME_1P;\r
- player[0].enti.overdraww=0;\r
+ gvar.player[0].enti.overdraww=0;\r
}\r
if(IN_KeyDown(sc_K))\r
{\r
bakapee1=FILENAME_2;\r
bakapee1p=FILENAME_2P;\r
- player[0].enti.overdraww=2;\r
+ gvar.player[0].enti.overdraww=2;\r
}\r
- //read_vrs(&gvar, bakapee1, player[0].enti.spri->spritesheet);\r
- VRS_ReadVRS(bakapee1, &player[0].enti, &gvar);\r
+ //read_vrs(&gvar, bakapee1, gvar.player[0].enti.spri->spritesheet);\r
+ VRS_ReadVRS(bakapee1, &gvar.player[0].enti, &gvar);\r
VL_LoadPalFile(bakapee1p, &gvar.video.palette);\r
}//JK\r
#ifdef FADE\r
#endif\r
if(IN_KeyDown(sc_R)){ modexPalOverscan(rand()%56); } //r\r
\r
- if((player[0].enti.q==1) && !(player[0].enti.x%TILEWH==0 && player[0].enti.y%TILEWH==0)) Quit(&gvar, "PLAYER OFF THE RAILS!");//break; //incase things go out of sync!\r
+ if((gvar.player[0].enti.q==1) && !(gvar.player[0].enti.x%TILEWH==0 && gvar.player[0].enti.y%TILEWH==0)) Quit(&gvar, "PLAYER OFF THE RAILS!");//break; //incase things go out of sync!\r
}\r
\r
/* fade back to text mode */\r