Commit Graph

108 Commits (3fcd7e0942f23f2151bd58b561b6d66239838c03)

Author SHA1 Message Date
Louis Pearson 3fcd7e0942 Flesh out world data format, make parseLevel fn 2022-08-05 21:55:07 -06:00
Louis Pearson 9655abc120 Fix is_door 2022-08-05 19:47:33 -06:00
Louis Pearson c137c88cef Plan world data structure 2022-08-05 19:11:36 -06:00
Louis Pearson 4c51c52d05 Remove the other sources of off-by-one 2022-08-05 18:34:08 -06:00
Louis Pearson d81c1f5ab1 Use world for isSolid in map
For some reason, I made all my map tile constants have to be shifted by
one. It's very annoying.
2022-08-05 17:53:27 -06:00
Louis Pearson c4663deb1f Put tile constants in one place 2022-08-05 17:48:55 -06:00
Louis Pearson d2d25b4e56 Add doors back in 2022-08-05 16:58:57 -06:00
Louis Pearson cce79b4d90 Uncomment door code
Still doesn't work because I decided to do doors differently. My next
step is to make the door entities add and remove tiles
2022-08-05 16:42:24 -06:00
Louis Pearson 3c0f4580b5 Fix bug where some tiles were not showing up
Turns out I was shifting a u7 thinking it was u8, and this caused the
high bit to be chopped off of some values. I also made the high bit
indicate the type instead of the low bit.
2022-08-05 15:23:22 -06:00
Louis Pearson 83bd4d9aec Attempt to solve invisible rocks
They are on the map, but the wrong tile is getting selected
2022-08-05 00:18:22 -06:00
Louis Pearson 638440f619 Fix switch toggling 2022-08-04 22:32:20 -06:00
Louis Pearson e8ebe43de6 Partially fix circuits and wires 2022-08-04 22:16:33 -06:00
Louis Pearson dd26d1f093 Iron out wrinkles with one way platforms 2022-08-04 20:48:27 -06:00
Louis Pearson 8ad6d20fbd Initial implementation of one way platforms 2022-08-04 20:39:28 -06:00
Louis Pearson d799830ad9 Get the game running again 2022-08-04 19:02:11 -06:00
Louis Pearson 280d73ae59 Game is compiling 2022-08-04 17:56:32 -06:00
Louis Pearson 84b5e4cb41 Begin converting game.zig to use ldtk data 2022-08-04 17:18:34 -06:00
Louis Pearson b5ca48e1b3 Render one-way platforms 2022-08-04 14:48:29 -06:00
Louis Pearson 8d3f69af03 Rearrange tiles, add one way platform tiles
- Update autotile to work based off of offset
- Update wired.ldtk to use new tiles
- Regenerate tiles.zig
- Remove hard-coded autotiles
2022-08-04 14:41:15 -06:00
Louis Pearson 0c79bfe575 Simplify world types 2022-08-04 13:11:20 -06:00
Louis Pearson 8c7a6b096f Remove bounded array 2022-08-04 12:11:29 -06:00
Louis Pearson d27051e526 Add AutoTileset kinds 2022-08-04 09:39:54 -06:00
Louis Pearson 60c6a5df8d Auto-tile circuits 2022-08-04 03:17:23 -06:00
Louis Pearson f88d689404 Update generated tiles 2022-08-04 03:17:03 -06:00
Louis Pearson 41b0846713 Fix debris 2022-08-04 02:22:34 -06:00
Louis Pearson 21f8ae7087 Succesfully load autotiles 2022-08-04 01:59:32 -06:00
Louis Pearson f944f754b1 Write world data on build 2022-08-03 23:50:50 -06:00
Louis Pearson 2aa246f1bd Define world data types 2022-08-03 22:06:17 -06:00
Louis Pearson 2296695c0d Update ldtk map 2022-08-03 22:05:50 -06:00
Louis Pearson aa7a1988ba Begin implementing LDtk import 2022-08-03 18:31:44 -06:00
Louis Pearson d2e663c09e Update zig-ldtk to fixed version 2022-08-03 16:39:09 -06:00
Louis Pearson 61a6fc9905 Add ldtk file 2022-08-03 16:23:59 -06:00
Louis Pearson 9b235a036b Add zig-ldtk 2022-08-03 16:23:15 -06:00
Louis Pearson eb85aa0b0a Add libresprite and ldtk 2022-08-03 15:12:03 -06:00
Louis Pearson b17c7d98dd Add tiled to flake 2022-08-01 23:37:25 -06:00
Louis Pearson 8a09451e61 Remove unneeded code in build script 2022-08-01 22:44:04 -06:00
Louis Pearson 9a93657b4b Create changelog
So I can keep track of what's changed
2022-08-01 17:29:23 -06:00
Louis Pearson 29870c61b5 Refine bundle/push scripts, remove death 2022-08-01 16:41:06 -06:00
Louis Pearson 05bc57f74e Update build, add nix flake 2022-08-01 11:44:28 -06:00
Louis Pearson 77c92ff0aa Remove IndexOutOfBounds 2022-04-23 12:43:18 -06:00
Louis Pearson 569a0f22f8 Implement death
Levels will need to be redesigned now.
2022-02-09 00:33:09 -07:00
Louis Pearson c3227bbd46 Remove catch unreachable 2022-02-09 00:19:33 -07:00
Louis Pearson 56746b0041 Allow interaction with plug centered on player 2022-02-02 00:06:36 -07:00
Louis Pearson ae34313849 Begin splitting game.zig 2022-02-01 01:08:31 -07:00
Louis Pearson d0d47d850d Add menu 2022-02-01 00:44:51 -07:00
Louis Pearson 50060dfa33 Save on room change 2022-02-01 00:10:51 -07:00
Louis Pearson 105d7d3395 Add opt build step 2022-02-01 00:02:18 -07:00
Louis Pearson b1b25753a3 Get saving working better 2022-01-31 00:31:02 -07:00
Louis Pearson 6d83dd0535 Use 16 bit integers to store position in save 2022-01-30 22:47:43 -07:00
Louis Pearson ff042d9737 Small changes to saving 2022-01-30 21:51:11 -07:00