sentence.Live

Coding Fisticuffs

sentence.Live is a two-player fighting game developed in my junior year Intro to Computer Science course in high school. The game was made on code.org. The site uses Blockly, a library created for users to code in JavaScript using block-based programming. However, we were discouraged from using the blocks when coding, and instead told to type it out instead.

For the game, the two players share one keyboard for input, with one player using WASD to move and V and B to attack, while the other player uses the arrow keys to move and L and K to attack. The menu and character select screen use mouse input.

Brawling with Myself

For this project, I did the programming, character design, and art. Though the final result is a bit messier than I would like, this project taught me a lot. I learned how to accept different forms of input in JavaScript, specifically keyboard and mouse commands. I also had to take account of collisions so that the characters didn’t fall through the floor and so that the hits were reflected in their health bar. In addition, I had to develop the physics mechanics for the characters’ movement. Placeholder art was used as I focused on making sure that all of the code worked first. I had intended to replace it with cleaner art after I finished making the main mechanics of the game, but I sadly ran out of time to create and implement it into the game. With that, I learned a valuable lesson on time management that I utilize in my other projects going forward.

The game can be played and the code can be viewed here.