Commit Graph

39 Commits

Author SHA1 Message Date
KikooDX ab7fa16727 fix: remove duplicate 'src/main.c' instance in meson.build 2021-05-23 12:50:03 +02:00
KikooDX 53132075b8 replace cmake with meson & use C99 instead of C89
This commit also takes care of all the warnings that didn't appear
with CMake. I decided to switch to C99 cause my code clearly wasn't
C89 compliant.
2021-05-04 22:32:37 +02:00
KikooDX 5727f19fb9 feature: window resizing (#1) 2021-04-17 17:22:41 +02:00
KikooDX dc7161c81b include/conf.h: use less specific values 2021-04-10 11:46:02 +02:00
KikooDX 023ff12cb9 Feature: middle click in editor to pick a tile
Updated the README in consequence.
2021-04-10 11:42:22 +02:00
KikooDX c5a202a6f6 fix: variable array length in C90, code wouldn't compile 2021-03-28 00:25:52 +01:00
KikooDX 8f53ecbdc7 Tile first config option (-tile-first) 2021-03-27 19:15:08 +01:00
KikooDX a66aaf9bdc Flags for background color configuration 2021-03-27 18:38:48 +01:00
KikooDX 5d556f5f21 config: background color options for editor and picker 2021-03-27 16:45:49 +01:00
KikooDX de64f2a56a fix: level rendering was broken with rectangle tilesets 2021-03-27 15:49:29 +01:00
KikooDX b88e37fadf Level creation flag & cleanup and improved README 2021-03-27 14:02:08 +01:00
KikooDX a3e60cc082 editing_area/level.c: Specify char signes 2021-03-27 10:57:26 +01:00
KikooDX 0dc7fb3914 Fix very bad casting mistake & dummy verbose mode 2021-03-26 23:25:23 +01:00
KikooDX dcd4afc520 fix: level drawing was broken 2021-03-26 18:54:25 +01:00
KikooDX 42b166b783 README update 2021-03-26 15:55:02 +01:00
KikooDX c170d1e01b Cleaner value checking for integer command line options 2021-03-26 15:54:43 +01:00
KikooDX a6f4d5a97a Add remaining arguments and accept signed integers. 2021-03-26 15:02:10 +01:00
KikooDX baff9fe66d Add four launch flags: editor-width/height & tile-width/height
Details will be added to README soon
2021-03-26 14:39:26 +01:00
KikooDX 7f0b593498 Replace compile time determined options with a struct
This will allow to change these values at launch, or even runtime.
2021-03-26 13:54:38 +01:00
KikooDX 22d55942a8 Get arguments with getopt 2021-03-26 01:33:39 +01:00
KikooDX d97f609245 Formatting + renamed typedef tile_t->Tile 2021-03-25 17:06:18 +01:00
KikooDX 80c6531492 editing_area/main.c: restructured panic exit 2021-03-25 16:58:35 +01:00
KikooDX db77c25935 Better error handling, no zombie process on failure. 2021-03-25 13:44:05 +01:00
KikooDX db95b9c72e Update README with usage instructions 2021-03-25 11:41:19 +01:00
KikooDX b433b09f75 Level edition, tile picking and misc.
This is the first usable version of the project!
2021-03-25 11:40:46 +01:00
KikooDX 29f8bf2578 Don't force TCC as a compiler
Update README in consequence.
2021-03-25 01:28:36 +01:00
KikooDX 8fee3bcf26 Mouse update code, place and erase tile 2021-03-25 01:23:17 +01:00
KikooDX 28f40ac97e EDITOR_SCALE + mouse cursor 2021-03-25 00:24:04 +01:00
KikooDX f5863dc820 Tile picker visual progress + changes to conf.h
Also modified some other files to take into account
these modifications.
2021-03-24 19:01:28 +01:00
KikooDX 5f661484e7 Shared data between processes
The two windows are now connected!
2021-03-24 12:42:10 +01:00
KikooDX 400e9d91f7 Tile picker progress
Create window, display tileset.k
2021-03-24 01:28:41 +01:00
KikooDX b487caeae3 Fork and separation of tile picker and level editor. 2021-03-23 23:23:43 +01:00
KikooDX 5d3b1bfd01 Level drawing and new arguments + README update 2021-03-23 19:06:05 +01:00
KikooDX 246287b466 Forking KBLE C -> SLE
Will be a simple editor with mouse control only.
2021-03-23 17:26:42 +01:00
KikooDX 779b4e94f0 Make the types less confusing. Remove debug printf. 2021-03-21 14:06:29 +01:00
KikooDX 84a8594f48 Use pointers instead of bitshift tricks. 2021-03-20 19:03:26 +01:00
KikooDX c559481af9 Build with raylib of ncurses. Not sure about this.
This seems like a big overhead. I think I will focus on one target and
keep the possibility to work on another later.
2021-03-18 23:03:46 +01:00
KikooDX 933ee23bd3 Level read and write. 2021-03-18 19:19:39 +01:00
KikooDX f83c9fd8d4 KBLE C rewrite initiated. 2021-03-18 17:38:39 +01:00