Commit graph

1043 commits

Author SHA1 Message Date
Corwin
89107f7a4e correct (and much better) docs 2022-10-09 16:59:58 +01:00
Corwin
ed1e8bcbdc use new affine stuff in map 2022-10-09 16:59:49 +01:00
Corwin
c69fdd7bec switch to using fixed point numbers in gba representation 2022-10-09 11:41:31 +01:00
Corwin
dcdf678126 completely remove scalar mul 2022-10-09 11:31:54 +01:00
Corwin
002d409db8 this is not valid because we don't track the lower right entry
for rotation and translation this remains as 1, but it should change for scaling
2022-10-09 00:56:34 +01:00
Corwin
963fbc8c23 should be a multiply 2022-10-09 00:53:48 +01:00
Corwin
b43408e6e1 reimplement default 2022-10-09 00:50:41 +01:00
Corwin
3497f7a720 switch to using new affine matrix 2022-10-09 00:42:14 +01:00
Corwin
d2f5a5333a Merge remote-tracking branch 'upstream/master' into object-controller2 2022-10-09 00:19:44 +01:00
Corwin
dead6652eb fix lint 2022-10-08 23:46:54 +01:00
Corwin
96401c2833 implement multiplication by scalar 2022-10-08 23:44:22 +01:00
Corwin
9ed5ee2295 change name of function to match the name of the transformation 2022-10-08 23:41:41 +01:00
Corwin
c33f99aaea add comment on what the matrix represents 2022-10-08 23:39:19 +01:00
Corwin
6927f84597 deny undocumented 2022-10-08 23:39:19 +01:00
Corwin
c09c0b77f4 add docs 2022-10-08 23:39:19 +01:00
Corwin
5e8a50159e implement try from 2022-10-08 23:39:19 +01:00
Corwin
d83f0ea710 from rotation accept generic fixnum 2022-10-08 23:39:19 +01:00
Corwin
99f01caea4 some fun affine matrix functions! 2022-10-08 23:39:19 +01:00
Corwin
f17084d4f6 Merge remote-tracking branch 'upstream/master' into object-controller2 2022-10-08 23:36:59 +01:00
Gwilym Kuiper
f921da930a Fix doc comment 2022-10-08 23:15:54 +01:00
Gwilym Kuiper
a09be56319 Fix example 2022-10-08 23:08:04 +01:00
Gwilym Kuiper
f5f73e89f5
Merge branch 'master' into affine 2022-10-08 23:03:42 +01:00
Gwilym Kuiper
1e759dbeca Move the palettes to a single constant rather than being repeated 2022-10-08 23:02:54 +01:00
Gwilym Kuiper
9bddbdba1c Seal the TiledMap trait 2022-10-08 22:40:20 +01:00
Gwilym Kuiper
5c578df227 transparent colour definition isn't really needed here 2022-10-08 22:34:54 +01:00
Gwilym Kuiper
7d43903ee0
Merge pull request #323 from gwilymk/remove-frequency-features
Remove frequency features
2022-10-08 22:24:07 +01:00
Gwilym Kuiper
cc66b65847 Update the docs 2022-10-08 21:39:48 +01:00
Gwilym Kuiper
870478353c Use the correct buffer sizes 2022-10-08 21:20:13 +01:00
Gwilym Kuiper
c0821c9229 Ensure packed(4) 2022-10-08 17:14:58 +01:00
Gwilym Kuiper
fe2e480f28 Remove pointless casts 2022-10-08 17:13:25 +01:00
Gwilym Kuiper
faed7b456f Avoid double transforming 2022-10-08 17:12:50 +01:00
Gwilym Kuiper
e63e830a9c Merge remote-tracking branch 'origin/master' into affine 2022-10-08 17:05:00 +01:00
Gwilym Kuiper
c5f6e10889 Update all toml files to the new transparent requirement 2022-10-08 16:59:40 +01:00
Corwin
c90e8de893 clippy autofix 2022-10-08 11:34:43 +01:00
Gwilym Kuiper
c6d961cd8d Almost works 2022-10-02 21:18:29 +01:00
Gwilym Kuiper
2ffc68c5c1 Start making the frequency field dynamic rather than a feature flag 2022-10-02 21:14:01 +01:00
Corwin
5e0795ae14 add garbage collection using hashmap retain 2022-10-02 20:05:13 +01:00
Corwin
7143621407 use unsafe around creating new static sprites, no guarentee that it does it correctly though 2022-10-02 19:34:38 +01:00
Corwin
b7448d714e remove unused arena 2022-10-02 19:34:38 +01:00
Corwin
5d541631ae add dynamic sprite support 2022-10-02 19:34:38 +01:00
Corwin
1acf7142da switch to using rust Rc 2022-10-02 19:34:38 +01:00
Corwin
5d21f720a5 add arena library 2022-10-02 19:34:38 +01:00
Corwin
88e1635fb1 unify types 2022-10-02 19:34:38 +01:00
Corwin
781e1efc6f satisfy linter 2022-10-02 19:34:38 +01:00
Corwin
758f9849c3 track the lifetime of the static object controller 2022-10-02 19:34:38 +01:00
Gwilym Kuiper
4bf3e0d597 Add tests for size_hint and ensure .iter() returns a better iterator 2022-10-02 19:10:50 +01:00
Gwilym Kuiper
78554862c8 Move the tests to a better location 2022-10-02 19:05:29 +01:00
Gwilym Kuiper
a44b8a4013 Add comment explaining the continue statement 2022-10-02 19:00:59 +01:00
Gwilym Kuiper
c658b6afe5 Add implementation of retain to HashMap 2022-10-02 18:55:21 +01:00
Gwilym Kuiper
2d23f0a36c Implement size_hint for the hashmap iterators 2022-10-02 18:44:48 +01:00