COND_BIT + fix transparent tree layer + asymptitic turn

This commit is contained in:
Arceveti committed 2021-09-27 18:03:06 -07:00
1 parent 87cdbc8ceb
commit 56fa02ec87
25 files changed
+68 -151

No files matched your search

+1
View File
@@ -66,6 +66,7 @@
// 1 is similar to vanilla, but prevents Mario from moving in the wrong direction, and allows finer control with the analog stick.
// 2 is similar to mode 1, but a bit further from vanilla, and allows instant turnaround if Mario is moving slower than a certain threshold.
// 3 is instant turning to the intended direction regardless of speed and angle.
// 4 is an expeimental asymptotic turn.
#define GROUND_TURN_MODE 0
// Improved hanging:
// - Doesn't require holding down the A button
+1
View File
@@ -10,6 +10,7 @@
#define BIT(i) (1 << (i))
#define BITMASK(size) ((BIT(size)) - 1)
#define COND_BIT(cond, dst, flag) { (dst) &= ~(flag); if (cond) (dst) |= (flag); }
struct Config
{