Commit graph

2451 commits

Author SHA1 Message Date
Gwilym Kuiper 14cd1e52c4 Make the screen visible when enabling a tiled mode 2022-03-28 21:53:54 +01:00
Gwilym Kuiper d055cbd59c Don't need to enable objects in tiled background any more 2022-03-28 21:43:53 +01:00
Gwilym Kuiper 93e14ec961 Extract out a struct for tile with reference count 2022-03-28 21:34:31 +01:00
Gwilym Kuiper d15f582aba Simplify type 2022-03-28 21:27:40 +01:00
Gwilym Kuiper 003c0d7e1a Update the games to use the new method 2022-03-28 21:21:06 +01:00
Gwilym Kuiper 16ea04d012 Remove tile set ref in agb 2022-03-28 20:53:05 +01:00
Gwilym Kuiper c43581620f
Merge pull request #202 from gwilymk/animated-tiles
Add super simple animated tiles
2022-03-27 21:55:49 +01:00
Gwilym Kuiper 9e8318cdf9 Rearrange methods to make a bit more sense 2022-03-27 21:38:12 +01:00
Gwilym Kuiper c1cbb442a1 Also use the new method in add_tile 2022-03-27 21:37:49 +01:00
Gwilym Kuiper 4b8f41140e Extract method for copying a tile to location 2022-03-27 21:37:14 +01:00
Gwilym Kuiper d2dceeb656 Add super simple animated tiles 2022-03-27 21:32:37 +01:00
Gwilym Kuiper c623d8b708
Merge pull request #201 from gwilymk/speed-up-hashmap-massively
Remove the division on every insert operation
2022-03-24 19:01:17 +00:00
Gwilym Kuiper 15e441b087 Remove the division on every insert operation 2022-03-24 18:31:18 +00:00
Gwilym Kuiper 7ad52a2974 Use agb's random rather than own implementation 2022-03-23 22:08:53 +00:00
Gwilym Kuiper a57043604d Add some tests for the rng 2022-03-23 22:05:41 +00:00
Gwilym Kuiper 3c52f6940b Add new_with_seed method 2022-03-23 21:53:09 +00:00
Gwilym Kuiper 610722a1bf Extract the random number generator 2022-03-23 21:52:37 +00:00
Gwilym Kuiper 9752377a15 Move the random number generator to a crate level thing 2022-03-23 21:46:59 +00:00
Gwilym Kuiper 1982df727c
Merge pull request #200 from gwilymk/small-fixes-to-match-rust-api-guidelines
Small fixes to match rust api guidelines
2022-03-23 21:44:01 +00:00
Gwilym Kuiper 8af673501d cargo fix in hat chooses wizard 2022-03-23 20:56:05 +00:00
Gwilym Kuiper c136a3669e Fix warnings in purple night 2022-03-23 20:46:17 +00:00
Gwilym Kuiper ca57b61525 Remove fere_affine_matricies for now 2022-03-23 20:44:28 +00:00
Gwilym Kuiper 1f053c987a Fix warnings in chicken.rs 2022-03-23 20:43:38 +00:00
Gwilym Kuiper b44b42de1d Remove unused num_tiles method 2022-03-23 20:42:51 +00:00
Gwilym Kuiper 13de08dce7 cargo fix 2022-03-23 20:42:31 +00:00
Gwilym Kuiper 631bbed5c7 Rename get_data_end to data_end 2022-03-23 20:42:01 +00:00
Gwilym Kuiper 81853c6c99 Rename get_colour to colour 2022-03-23 20:41:24 +00:00
Gwilym Kuiper 123e8caaa4 Remove unused get_palette method 2022-03-23 20:40:15 +00:00
Gwilym Kuiper 77eba9b637 Remove get_ prefix in program_counter_before_interrupt 2022-03-23 20:39:41 +00:00
Gwilym Kuiper f1fd5859f3 Rename a few methods in object.rs to remove get_ prefix 2022-03-23 20:37:59 +00:00
Gwilym Kuiper 1f28499efb Rename get_as_bits to remove get_ prefix 2022-03-23 20:37:00 +00:00
Gwilym Kuiper 9ba455ca35 Remove the unused arena module 2022-03-23 20:35:58 +00:00
Gwilym Kuiper 3e34509049 Rename get_object to object 2022-03-23 20:34:55 +00:00
Gwilym Kuiper 5791d033ef Rename get_sprite and get_animation_sprite to remove get_ prefix 2022-03-23 20:32:29 +00:00
Gwilym Kuiper 35c7c48f73 Rename get_write_buffer -> write_buffer 2022-03-23 20:26:43 +00:00
Gwilym Kuiper b91f129636 Remove get_ methods for tiled 2022-03-23 20:26:18 +00:00
Gwilym Kuiper 8427bb5595 Remove get_ from timer functions 2022-03-23 20:24:22 +00:00
Gwilym Kuiper c698f858bb Rename get_distance to distance 2022-03-23 20:22:58 +00:00
Gwilym Kuiper 84b7317380 Rename get_location to location 2022-03-23 20:22:37 +00:00
Gwilym Kuiper 48ddda9ae9 Rename get_channel to channel 2022-03-23 20:21:54 +00:00
Corwin 518f73c01e
Merge pull request #189 from corwinkuiper/perfectly-poor-profiler
Problematic poor person's profiler
2022-03-22 22:26:29 +00:00
Corwin adffcc6773 add comment on profiler 2022-03-22 22:08:59 +00:00
Corwin ac9826c4d7 move profiler to be a function 2022-03-22 09:39:03 +00:00
Gwilym Kuiper 2ea8ec6eac
Merge pull request #199 from gwilymk/small-improvements-while-working-on-bad-apple-demo
Small improvements while working on bad apple demo
2022-03-21 23:56:35 +00:00
Gwilym Kuiper 1c33c8544e Seems range inclusive doesn't optimise very well... 2022-03-21 23:16:02 +00:00
Gwilym Kuiper 451868723f Add dealloc_no_normalise 2022-03-21 23:01:38 +00:00
Gwilym Kuiper e6d47afa31 Use a hash map rather than an array in vram manager 2022-03-21 22:58:16 +00:00
Gwilym Kuiper 9170acb1a8 Update agb to handle the new agb-image-converter output 2022-03-21 22:57:17 +00:00
Gwilym Kuiper d4a12277eb Generate a bytestring for the image converter rather than the array 2022-03-21 22:41:11 +00:00
Corwin 4bec0d073f The poor profiler 2022-03-21 22:34:15 +00:00