At 6/14/21 10:28 PM, littleMAHER1 wrote:
so it's working?
I haven't actually coded any gameplay, but after a lot of hours sat staring blankly at compiler errors wondering why I even bothered, I've linked the Wiimote to the game.
I had to figure out how to write custom C++ to access the Wiimote and then link that into HaxeFlixel, which wasn't exactly infeasible, but a.) I have no experience with C++ and b.) There's not a lot of documentation on the process. The second part wouldn't be an issue for someone more qualified than me because it's actually relatively straightforward, but I have pea brain and no experience with C++ (and more importantly, the compiler), so I basically went from the shallow end of the pool to the shark infested ocean.
Hopefully actually implementing it in the gameplay will be easier, but now that I've said that I've effectively jinxed myself. I realized that the accelerometer values swing to the extremes when you flick the remote, so that might have to be how I detect that. My only concern is that it might take too long to calculate that a swing has occured so it won't be precise enough.