Gwilym Kuiper
|
1bb05560cb
|
Make it so that multiplication doesn't overflow so easily
|
2021-06-06 00:25:45 +01:00 |
|
Gwilym Kuiper
|
026dad0773
|
Change base can change between convertable integer types too
|
2021-06-06 00:25:29 +01:00 |
|
Gwilym Kuiper
|
0b41e9e917
|
Sweep works backwards
|
2021-06-05 22:53:51 +01:00 |
|
Corwin
|
aa10a893f4
|
Merge pull request #54 from corwinkuiper/object-hidden-by-default
Object hidden by default
|
2021-06-05 22:42:20 +01:00 |
|
Corwin Kuiper
|
be963611ce
|
affine starts at position 9
|
2021-06-05 22:41:34 +01:00 |
|
Corwin Kuiper
|
4cc7650ddc
|
objects are hidden by default
no need to do it twice
|
2021-06-05 22:14:47 +01:00 |
|
Corwin Kuiper
|
eb352085f1
|
have objects be hidden by default
|
2021-06-05 22:14:08 +01:00 |
|
Gwilym Kuiper
|
3357a4b69d
|
Put brackets around nine / forty to ensure that we don't divide where we don't have to
|
2021-06-05 21:58:32 +01:00 |
|
Gwilym Kuiper
|
aa39b2b6ad
|
Make to_raw take self by value rather than reference
|
2021-06-05 21:49:36 +01:00 |
|
Gwilym Kuiper
|
54e28f5dd4
|
Add a Number type for i32
|
2021-06-05 21:47:04 +01:00 |
|
Gwilym Kuiper
|
174517fbb1
|
Fix tests
|
2021-06-05 21:47:04 +01:00 |
|
Gwilym Kuiper
|
508f33facd
|
Add support for all the integer widths
|
2021-06-05 21:47:03 +01:00 |
|
Gwilym Kuiper
|
de47dbc5dd
|
Make number generic on i32
|
2021-06-05 21:30:02 +01:00 |
|
Corwin
|
ec87adceb2
|
Merge pull request #52 from corwinkuiper/number-trig
implement trig functions
|
2021-06-05 21:10:38 +01:00 |
|
Corwin Kuiper
|
9176e668a1
|
implement trig functions
|
2021-06-05 21:06:21 +01:00 |
|
Corwin
|
1807b0adc6
|
Merge pull request #51 from corwinkuiper/fix-affine
fix index for affine matrix
|
2021-06-05 20:55:12 +01:00 |
|
Corwin Kuiper
|
36903a0a65
|
fix index for affine matrix
|
2021-06-05 20:48:02 +01:00 |
|
Gwilym Kuiper
|
46562e275c
|
Update test for new interface
|
2021-06-05 20:31:04 +01:00 |
|
Gwilym Kuiper
|
6ab644cf71
|
Mark affine matrix input as C and packed
|
2021-06-05 20:29:16 +01:00 |
|
Gwilym Kuiper
|
e7edaa1a27
|
Accept more sensible arguments in affine_matrix
|
2021-06-05 20:29:12 +01:00 |
|
Gwilym Kuiper
|
ceb1b97df8
|
Use image-converter 0.2.0
|
2021-06-05 18:13:03 +01:00 |
|
Corwin Kuiper
|
93b0b757bd
|
make all const functions
|
2021-06-05 17:53:07 +01:00 |
|
Corwin Kuiper
|
e55ef4d152
|
add from and to raw
|
2021-06-05 17:40:41 +01:00 |
|
Gwilym Kuiper
|
363a16ce33
|
Add implementation of rem_euclid stolen from f32's implementation and add a test
|
2021-06-05 17:27:00 +01:00 |
|
Gwilym Kuiper
|
cdaef51d76
|
Add tests for %
|
2021-06-05 17:23:43 +01:00 |
|
Gwilym Kuiper
|
56cf16def4
|
Fix int() method to return as-if this was a float
|
2021-06-05 17:23:28 +01:00 |
|
Gwilym Kuiper
|
8b1ad400a7
|
Include fix length in debug string
|
2021-06-05 17:23:06 +01:00 |
|
Gwilym Kuiper
|
8b2dfdffc1
|
Add proper implementation of debug for Num
|
2021-06-05 17:22:23 +01:00 |
|
Gwilym Kuiper
|
e78c9abcec
|
Add basic definition of rem and remassign
|
2021-06-05 16:53:07 +01:00 |
|
Gwilym Kuiper
|
34981ea3dd
|
Make change_base function public
|
2021-06-05 16:35:58 +01:00 |
|
Gwilym Kuiper
|
fe0e9f8196
|
Add the ability to change the base of a fixnum
|
2021-06-05 16:34:31 +01:00 |
|
Corwin Kuiper
|
18e017ae73
|
expose number module
|
2021-06-05 16:15:43 +01:00 |
|
Corwin Kuiper
|
ec161d9161
|
fix chicken example
|
2021-06-05 16:14:48 +01:00 |
|
Corwin Kuiper
|
a39363b6ae
|
add similar treatment to sprite palettes as background palettes
|
2021-06-05 16:14:41 +01:00 |
|
Corwin
|
a3874e7140
|
Merge pull request #41 from gwilymk/improve-fixnum
Improve fixnum
|
2021-06-05 16:08:46 +01:00 |
|
Gwilym Kuiper
|
0099dfa688
|
Get implementation of AddAssign correct
|
2021-06-05 15:58:56 +01:00 |
|
Gwilym Kuiper
|
0b8eda336d
|
Use better trait bounds for numbers
|
2021-06-05 15:54:50 +01:00 |
|
Gwilym Kuiper
|
1b5a6421fd
|
Add some more division tests
|
2021-06-05 15:46:33 +01:00 |
|
Gwilym Kuiper
|
8b2f3f14bb
|
Use more precise implementations
|
2021-06-05 15:46:13 +01:00 |
|
Corwin Kuiper
|
2a9788d26f
|
remove lifetime specifier
|
2021-06-05 14:41:39 +01:00 |
|
Corwin Kuiper
|
eea0e6d3b3
|
fix chicken example
|
2021-06-05 00:27:13 +01:00 |
|
Corwin Kuiper
|
3b9231ef6e
|
fix coordinates
|
2021-06-05 00:26:10 +01:00 |
|
Corwin Kuiper
|
225d0aca9f
|
set 1d mapping
|
2021-06-05 00:16:44 +01:00 |
|
Corwin Kuiper
|
1d8ac652f1
|
fix sprite size ordering
|
2021-06-05 00:16:31 +01:00 |
|
Corwin Kuiper
|
b1ff352623
|
use lifetimes to prevent affine matrix dropping
|
2021-06-04 22:39:10 +01:00 |
|
Corwin Kuiper
|
33738c0f93
|
add test for affine matrix getting
|
2021-06-04 22:29:27 +01:00 |
|
Corwin Kuiper
|
8867c5c9f1
|
satisfy linter
|
2021-06-04 19:43:09 +01:00 |
|
Corwin Kuiper
|
1c779e3c31
|
fix example
|
2021-06-04 19:37:45 +01:00 |
|
Corwin Kuiper
|
95407e11f6
|
add test and fix implementation
|
2021-06-04 19:37:41 +01:00 |
|
Corwin Kuiper
|
72662cff5a
|
update documentation
|
2021-06-04 19:29:21 +01:00 |
|