1
0
Fork 0

Add an alternative button for jumping

This commit is contained in:
Julien Dessaux 2022-10-04 23:03:27 +02:00
parent d43dbfea61
commit e4b1d7f947
Signed by: adyxax
GPG key ID: F92E51B86E07177E

View file

@ -61,7 +61,7 @@ pub const Brother = struct {
self.y += self.vy * utils.frequency;
if (self.y > 160)
self.y = 160;
} else if (gamepad.pressed.up) {
} else if (gamepad.pressed.up or gamepad.pressed.x) {
self.vy = -200;
self.y += self.vy * utils.frequency;
}