Commit graph

1767 commits

Author SHA1 Message Date
Gwilym Kuiper
d94d9dbcf3 Print number of cycles for background initialisation 2022-03-05 19:25:09 +00:00
Gwilym Kuiper
08aeb56f1e Update background and foreground independentently 2022-03-05 19:25:06 +00:00
Gwilym Kuiper
3941117aa7 Switch to rustc-hash 2022-03-05 19:24:28 +00:00
Gwilym Kuiper
06901b3543 Move post-work to pre-work 2022-03-05 19:23:53 +00:00
Gwilym Kuiper
530b71e0df Copy slightly too much 2022-03-05 19:23:53 +00:00
Gwilym Kuiper
a365c14917 Small fixes 2022-03-05 19:23:53 +00:00
Gwilym Kuiper
3a795fea8f Handle moving up to 10 tiles at once 2022-03-05 19:23:53 +00:00
Gwilym Kuiper
610be70b92 Correctly set the initial offset value in init() 2022-03-05 19:23:53 +00:00
Gwilym Kuiper
a998ae31a4 Correctly use the map width and not the display width 2022-03-05 19:23:53 +00:00
Gwilym Kuiper
ebf21f4add Avoid pointless copies 2022-03-05 19:23:53 +00:00
Gwilym Kuiper
aad5399240 Get the priorities correct (and start at level 8) 2022-03-05 19:23:53 +00:00
Gwilym Kuiper
66a61e33e6 More correctly special case tile 0 2022-03-05 19:23:53 +00:00
Gwilym Kuiper
666867e933 Track the generation along with the tile data 2022-03-05 19:23:53 +00:00
Gwilym Kuiper
7d870163c3 Hide backgrounds after each level 2022-03-05 19:23:53 +00:00
Gwilym Kuiper
f655e08665 At least it compiles... 2022-03-05 19:23:53 +00:00
Gwilym Kuiper
5197f5b37d Move uses to the top and allow default features 2022-03-05 19:23:53 +00:00
Gwilym Kuiper
10c97f48d8 Introduce the MapLoan to infinite scrolled map 2022-03-05 19:23:53 +00:00
Gwilym Kuiper
2c8fce40d3 Store the used backgrounds in a bit array 2022-03-05 19:23:53 +00:00
Gwilym Kuiper
2d99d017fc Stop printing the cloud positions 2022-03-05 19:23:53 +00:00
Gwilym Kuiper
cd05fee360 Use a concrete type for the TileReference 2022-03-05 19:23:53 +00:00
Gwilym Kuiper
5793d6b6ab Introduce methods for increasing and decreasing the reference 2022-03-05 19:23:53 +00:00
Gwilym Kuiper
2a04ebd884 Rename TileReference to VRamState 2022-03-05 19:23:53 +00:00
Gwilym Kuiper
5533c9c052 Fix reuse issue 2022-03-05 19:23:53 +00:00
Gwilym Kuiper
a2c6c6a70c Make the tile references clearer 2022-03-05 19:23:53 +00:00
Gwilym Kuiper
bf10d9a5ff Try copying the correct amount 2022-03-05 19:23:53 +00:00
Gwilym Kuiper
7f0d7757c5 Really trying hard to get this working 2022-03-05 19:23:53 +00:00
Gwilym Kuiper
f785d65057 Something that seems like it is close to working 2022-03-05 19:23:50 +00:00
Gwilym Kuiper
472875edac Update the wave example 2022-03-05 19:21:54 +00:00
Gwilym Kuiper
38e57489a3 Rework the settings a little to allow for raw tile ids 2022-03-05 19:21:54 +00:00
Gwilym Kuiper
cf72a9331a Add API for setting tile data from just a number 2022-03-05 19:21:54 +00:00
Gwilym Kuiper
1286a58511 Ensure that we don't copy twice 2022-03-05 19:21:54 +00:00
Gwilym Kuiper
0081d1c6ee Update the chicken example 2022-03-05 19:21:54 +00:00
Gwilym Kuiper
06c988e952 Fix the test logo and the example 2022-03-05 19:21:54 +00:00
Gwilym Kuiper
8fcb9e607d Special case the first element in references 2022-03-05 19:21:54 +00:00
Gwilym Kuiper
bdeaf346cd Remove the old tile before creating the new one 2022-03-05 19:21:54 +00:00
Gwilym Kuiper
2044cbf379 Generation makes more sense to be a u16 for better data storage 2022-03-05 19:21:54 +00:00
Gwilym Kuiper
0ebd2c2e40 transparent is probably more correct 2022-03-05 19:21:54 +00:00
Gwilym Kuiper
1562e63bee Marker is a better name for this probably 2022-03-05 19:21:54 +00:00
Gwilym Kuiper
7c3725497c Add method to hide background 2022-03-05 19:21:54 +00:00
Gwilym Kuiper
93d82f309e Test logo now displays 2022-03-05 19:21:54 +00:00
Gwilym Kuiper
b2c16f754b Add some room to breathe 2022-03-05 19:21:54 +00:00
Gwilym Kuiper
effaac3885 hopefully enough to actually maybe display something? 2022-03-05 19:21:54 +00:00
Gwilym Kuiper
5ea6eb0f1d Complete re-do of tile storage management in backgrounds 2022-03-05 19:21:54 +00:00
Gwilym Kuiper
e77a1c26a3
Merge pull request #177 from gwilymk/strategic-inlines
Strategic inlines
2022-03-05 19:06:10 +00:00
Gwilym Kuiper
6690538781 Some inlines in SoundChannel which weren't being inlined for some reason 2022-03-05 18:51:17 +00:00
Gwilym Kuiper
8010b2661a Add inlines for basic functions in fixnum which weren't being inlined 2022-03-05 18:42:40 +00:00
Gwilym Kuiper
60977b7d2d
Merge pull request #176 from gwilymk/fix-clippy-lints-in-hat-chooses-wizard
Fix clippy lints for hat-chooses-wizard
2022-03-05 18:37:33 +00:00
Gwilym Kuiper
106ad5fed5 Fix clippy lints for hat-chooses-wizard 2022-03-05 18:25:28 +00:00
Gwilym Kuiper
48f89edc8c
Merge pull request #174 from gwilymk/fix-clippy-warnings-in-purple-night
Fix clippy warnings in purple night
2022-03-05 18:12:47 +00:00
Gwilym Kuiper
3a36e15b4c
Merge pull request #175 from agbrs/renovate/actions-checkout-3.x
Update actions/checkout action to v3
2022-03-01 22:04:05 +00:00