Skip to content

Game created for ENCE260 at the University of Canterbury for a group project with one other member. It is a 2-player game, to be played on the UCFK4 - a University issued MCU.

Notifications You must be signed in to change notification settings

Stephen-Hockey/embedded_systems_assignment2023

Repository files navigation

BASEBALL BASH

A game coded in the C programming language

Authors:

  • Stephen Hockey
  • Xinwei Wang

How to play:

  • Once your pair of UCFK4s have compiled and downloaded the program, you should be greeted with scrolling text, "PUSH TO BAT". Before you do anything else, you should know that the orientation that the FunKits should held is portrait, with the two players opposite each other, and the power source pointing away from you. Go ahead and choose which of the two players will be batting first by having one of you PUSH the navswitch in.
  • The batter should see two pixels, and the pitcher should see just one. Both players can move east and west during this phase of the game using the navswitch LEFT and RIGHT inputs. The pitcher, however, is choosing a lane to pitch down. Once they PUSH in the navswitch again they will see a power meter oscillating up and down. The pitcher should try and time their next navswitch PUSH to maximise how strong their pitch is.
  • Immediately, the ball will be pitched and the batter must be in the correct lane, and push up (the NORTH button) on their navswitch at the right time, to successfully swing at the ball.
  • If you do manage to hit it, run around the bases, making sure to actually run over them, and in the right order (anticlockwise) as fast as you can with the navswitch, before the pitcher fields your ball. Once they do, you will be batting again.
  • After three strikes, the players swap roles, and whoever ran around the most bases by the end is the winner! (In the case of a tie, the winner is the person who started batting)
  • To play again, simply push in the navswitch on both FunKits, and you are back to the start!
  • Try and play mind games with your partner. You could look away from eachothers screens for an extra challenge as well.
  • Have fun!

About

Game created for ENCE260 at the University of Canterbury for a group project with one other member. It is a 2-player game, to be played on the UCFK4 - a University issued MCU.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published