top of page

Vaporum

Project Overview

Network System

I used TCP to connect server and client. By using a buffer of char, I could send message from server to client or from client to server. I put most of the logic processed by the local machine, and the only buffer is the keyboard and mouse input of two players. To get the buffer send from the other player, I used CallbackFunction to fire events to parse when the server/client get a string.

Using Netsystem to Play Vaporum

Code for Netsystem (TCP)

Hex Grid

Select Hex Grid

Code for Generating Hex Grid

Code to Check Raycast vs Hex Grid

Tank Movement

I used BFS to get the area that each tank can move, and DFS to find the nearest path. When moving to the target point, I used CatmullRom Spline to make turning smoother.

Tank Movement in Vaporum

Code for Using Spline during Movement

Screenshots

  • LinkedIn
  • YouTube

© 2025 by Jiabin Portfolio. All rights reserved.

bottom of page