Overview
Comment: | Implement pattern strings and some other commands, an da few more corrections, in the (LevelTable) block implementation. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
b629fea66f46354f57484854f90ce7a1 |
User & Date: | user on 2021-12-30 21:49:06 |
Other Links: | manifest | tags |
Context
2021-12-30
| ||
23:44 | More explanation of how the results of calculations are used for the level table. check-in: 30d372f39a user: user tags: trunk | |
21:49 | Implement pattern strings and some other commands, an da few more corrections, in the (LevelTable) block implementation. check-in: b629fea66f user: user tags: trunk | |
2021-12-29
| ||
00:29 | Implement all of the rest of the (LevelTable) block and its displaying and processing, except the string matching, which will be implemented later. check-in: d24dfda327 user: user tags: trunk | |
Changes
Modified TODO from [be82d4c6e3] to [e85d57e738].
︙ | |||
13 14 15 16 17 18 19 | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | - | * Returning a class from COLLIDE/COLLIDEBY to transform * Coordinate input (may be suitable for some kind of games) * Possibility to define auto-generation levels mode * Editor * Mouse dragging * Level index editor * Table of contents for levels (partially implemented) |
︙ |
Modified class.doc from [6d0262fd53] to [94e8d147ec].
︙ | |||
2641 2642 2643 2644 2645 2646 2647 | 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 | - + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | Bitwise: band bor bxor bnot lsh rsh ,rsh Logical: land lor lxor lnot Compare: eq ne lt ,lt gt ,gt le ,le ge ,ge |
Modified function.c from [89407dfd1e] to [c810f6f9c4].
︙ | |||
1209 1210 1211 1212 1213 1214 1215 | 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 | + + + + + + + + + + + + + - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | typedef struct { Value misc1,misc2,misc3; Uint8 x,y,dir,bizarro; Uint16 class; } ObjInfo; static const unsigned char*ll_find(const unsigned char*p,Uint8 c) { int j; for(j=0;*p;p++) { if(j) { if(*p=='\\') j=0; } else { if(*p==c) return p; if(*p==14 || *p==30) j=1; if(*p==31 && p[1]) p++; } } return 0; } |
︙ | |||
1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 | 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 | + + | case OP_CLASS: if(!ob) goto bad; stack[sp++]=CVALUE(ob->class); break; case OP_COLLISIONLAYERS: if(!ob) goto bad; stack[sp++]=NVALUE(classes[ob->class]->collisionLayers); break; case OP_DELTA: ArithOp2(t1.u>t2.u?t1.u-t2.u:t2.u-t1.u); break; case OP_DENSITY: if(!ob) goto bad; stack[sp++]=NVALUE(classes[ob->class]->density); break; case OP_DIR: if(!ob) goto bad; stack[sp++]=NVALUE(ob->dir); break; case OP_DIV: ArithDivOp2(t1.u/t2.u); break; case OP_DIV_C: ArithDivOp2(t1.s/t2.s); break; case OP_DROP: if(sp) --sp; break; case OP_DUP: if(!sp) goto bad; stack[sp]=stack[sp-1]; sp++; break; case OP_EQ: OtherOp2(NVALUE((t1.u==t2.u && t1.t==t2.t)?1:0)); break; case OP_GE: ArithOp2(t1.u>=t2.u?1:0); break; case OP_GE_C: ArithOp2(t1.s>=t2.s?1:0); break; case OP_GOTO: ptr=ll_code[ptr]; break; case OP_GT: ArithOp2(t1.u>t2.u?1:0); break; case OP_GT_C: ArithOp2(t1.s>t2.s?1:0); break; case OP_IF: |
︙ | |||
1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 | 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 | + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | case OP_MOD: ArithDivOp2(t1.u%t2.u); break; case OP_MOD_C: ArithDivOp2(t1.s%t2.s); break; case OP_MUL: ArithOp2(t1.u*t2.u); break; case OP_MUL_C: ArithOp2(t1.s*t2.s); break; case OP_NE: OtherOp2(NVALUE((t1.u==t2.u && t1.t==t2.t)?0:1)); break; case OP_NEG: ArithOp1(-t1.s); break; case OP_PLAYER: if(!ob) goto bad; stack[sp++]=NVALUE(classes[ob->class]->cflags&CF_PLAYER?1:0); break; case OP_QC: OtherOp1(NVALUE(t1.t==TY_CLASS?1:0)); break; case OP_QM: OtherOp1(NVALUE(t1.t==TY_MESSAGE?1:0)); break; case OP_QN: OtherOp1(NVALUE(t1.t==TY_NUMBER?1:0)); break; case OP_RET: return sp; case OP_RSH: ArithOp2(t2.u&~31?0:t1.u>>t2.u); break; case OP_RSH_C: ArithOp2(t2.u&~31?(t1.s<0?-1:0):t1.s>>t2.u); break; case OP_STRING: |
︙ | |||
1415 1416 1417 1418 1419 1420 1421 | 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 | - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + | } } // Data column values for(i=0;i<ll_ndata;i++) { j=level_table_exec(ll_data[i].ptr,lvl,sz,0,stack,agg); if(j<=0 || stack->t==TY_MARK) { sqlite3_bind_null(st,i+8); |
︙ |
Modified game.c from [7219595d81] to [2c724763e6].
︙ | |||
727 728 729 730 731 732 733 | 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 | - - + + | int i; const char*p; sqlite3_int64 v; if(t==SQLITE_NULL) return; if(dc->flag&1) w=255; if(t==SQLITE_BLOB || t==SQLITE_TEXT) { blob: |
︙ |