Commit Graph

57 Commits

Author SHA1 Message Date
KikooDX 165d605eec Parameter buffer (#6) 2021-03-13 00:40:31 +01:00
KikooDX b36001e209 Adaptive window size.
Updated README.md.
2021-02-28 01:45:54 +01:00
KikooDX bd9cbf44a3 Configurable default window size ; default is "intelligent". 2021-02-27 16:56:22 +01:00
KikooDX f412956c83 Backup project on read and exit (#3)
Can be turned off in `src/conf.zig`.
2021-02-27 00:46:28 +01:00
KikooDX 4eefad9062 Add default scaling level to config, set to 32 by default.
Was 16 before.
2021-02-27 00:32:25 +01:00
KikooDX a3a4483a44 Unselection modes for mouse and keyboard (#2) 2021-02-26 13:22:28 +01:00
KikooDX 4fb7d33645 Add configuration option for default grid size. 2021-02-26 11:33:19 +01:00
KikooDX 9a0bbb8e95 Mouse behavior for graphical tablet (#1) 2021-02-26 10:30:22 +01:00
KikooDX eec14bc99c Input system more DRY, add Tab (`\t`) support. 2021-02-26 01:03:41 +01:00
KikooDX 25335e94a6 Allow user to configure keybindings. 2021-02-25 23:31:23 +01:00
KikooDX 75351eb8b5 src/conf.zig can now be used to configure color theme.
Related things were improved.
2021-02-25 22:58:39 +01:00
KikooDX a0528de619 Repetition/parameter system, implemented and integrated. 2021-02-25 17:13:12 +01:00
KikooDX 8cc9aeb129 Add build manifest. 2021-02-25 10:16:43 +01:00
KikooDX 3c084730b2 Command line argument ; take path to open and/or save to.
+ README.md update
2021-02-24 23:54:24 +01:00
KikooDX 0f318e509e Add versioning byte. Remove bloat goal from README.md
I don't want to ever use this, but if someone want to add weird stuff
to this format I think it's for the best to do this.
2021-02-24 18:14:38 +01:00
KikooDX 5abd8cbff3 Bindings for saving/loading (read/write)! 2021-02-24 15:48:32 +01:00
KikooDX f24b6340a2 Two ways level loading/saving works perfectly! Very nice :D 2021-02-24 15:22:59 +01:00
KikooDX 572c94f78f Level loading functionnal. 2021-02-24 12:20:38 +01:00
KikooDX 6d732d65b1 Sample file should now be correct, added check in level loading. 2021-02-24 10:52:54 +01:00
KikooDX 98bfeb385b Open file in relative or absolute path. Delete useless conf code. 2021-02-24 09:30:48 +01:00
KikooDX 63ebdee01f Framing out level loading and specify KBLE file format 2021-02-23 11:44:51 +01:00
KikooDX b5972abd1c Back of 'config' sourcing implemented, look at TODO in src/main.zig 2021-02-04 00:55:57 +01:00
KikooDX 935623ce77 0.7.1 compatibility fix. 2021-02-02 18:38:47 +01:00
KikooDX 989502edf9 Cleaned up code, implemented rectangle selection. 2021-02-02 14:49:50 +01:00
KikooDX 20c4d8ca1a Modes. Normal and insert modes implemented. 2021-02-02 14:21:12 +01:00
KikooDX 47a05d56f1 Custom colors, initialize level with void. 2021-02-01 12:50:11 +01:00
KikooDX 68817ce969 Rectangle preview and mouse cursor. 2021-02-01 11:16:44 +01:00
KikooDX 8cdc788a4e Improved mouse controls. 2021-02-01 10:37:58 +01:00
KikooDX 170409c014 Out of bounds cursor safety + update README.md with mouse controls 2021-02-01 00:40:43 +01:00
KikooDX 8fc2e3fefb Mouse support. Yes, I hate myself for this one. 2021-02-01 00:30:28 +01:00
KikooDX 1ebed24110 Create conf.zig, verb.zig ; clean up stuff and add replace verb + move... but don't 2021-01-31 00:09:08 +01:00
KikooDX f14c60c630 Legendary delete inserted 2021-01-30 16:49:40 +01:00
KikooDX 11d6ebef3c Mighty zoom is back (scale system) 2021-01-30 16:43:55 +01:00
KikooDX 3361e859ed Actions are no longer hardcoded, dynamic bindings base. 2021-01-30 16:13:06 +01:00
KikooDX e54660228a Decent colorscheme. 2021-01-29 19:10:14 +01:00
KikooDX 16e3620fad Add default bindings to README.md + reset zoom is now bounded to `=` 2021-01-29 18:32:52 +01:00
KikooDX dca275fb03 Stupidity fix. 2021-01-29 18:06:41 +01:00
KikooDX 6cd12f6333 Add MIT license notice at the top of source files. 2021-01-29 12:32:38 +01:00
KikooDX bd5943afe8 Update movement tests. 2021-01-29 12:32:19 +01:00
KikooDX 178d6e53df First action (delete) for testing, misc improvements here and there. 2021-01-28 17:06:03 +01:00
KikooDX 1750fe8cd0 Better movement code, 8 directions. 2021-01-28 16:52:49 +01:00
KikooDX 0519e630d8 Meh zoom implementation. 2021-01-28 16:12:41 +01:00
KikooDX 0b52b35238 Big commit, selection structure and code. 2021-01-28 13:46:02 +01:00
KikooDX c4125520ea Cursor is now u8. 2021-01-27 19:26:12 +01:00
KikooDX 497f1239e6 Base for left and right movement code. 2021-01-27 17:23:45 +01:00
KikooDX ab597a39ca Update README.md with informations and build instructions. 2021-01-27 15:41:23 +01:00
KikooDX 23fac64415 Add input buffer. 2021-01-27 14:12:44 +01:00
KikooDX 900586d374 Fix integer overflow, add selection buffer. 2021-01-27 12:06:33 +01:00
KikooDX cf65e74492 Use a more appropriate allocator for level buffer.
Switched from General Purpous to Arena allocator.
2021-01-26 23:38:41 +01:00
KikooDX d07a3cd145 Update Vec2 tests to work with unsigned integers starting from 8-bit size. 2021-01-26 23:32:26 +01:00