Leon

Battleship

This project I leaned more into javascript. I made a battleship game with a computer api. The first guesses are random until the computer gets a hit. When it dose the computer pickes a random digit in the list [1, -1, 10, -10] and adds the picked number onto the latest guess. +-10 is one step in the y-axis and +- 1 is one step on the x-axis. It repeats this process until the entire ship is found. also the ships never spawnes next to each other.

Penguin PVP

This is A multiplayer Online PvP game I made using the Phaser V3 library. It works by sending all the needed information over a node server that then uses the information to regularly update the enemies action, as animation, striking and location. To run the code you'll have to first run the server-side.js inside a terminal and then launch the Clients code. If you want to play online you need to open IS on port 3000.