SCRN-VRC / KungFu-Chat

Shader based arcade game for VRChat

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

KungFu Chat

Overview

Shader based arcade game for VRChat

How the Game State Works

A 8x8 Custom Render Texture (CRT) with a feedback loop governs the interactions between players, zombies, and the boss. It also manages the states such as idle, attack, or knocked down that results from such interactions.

How the Game Renderer Works

Originially, I had everything inside a single CRT with the depth sorting done by a radix sort. However the performance was poor on the Quest, so I took up Merlin's advice to seperate the sprites into individual quads and composite it with a camera. The Quest performant version is the one setup for in this project.

Requirements

  1. VRCSDK

Setup

  1. Download the .zip or the Unity package in Release
  2. Install the VRCSDK
  3. Import the KungFu Chat Unity package
  4. Either open the Scene or place down the prefab in the Editor

  1. Setup the VRC Layers

  1. Put the KungFu Layers GameOject in the Default layer, but I recommend making a specific layer just for the game

  1. Make sure the Culling Mask of the KungFu Layers Camera is in the same layer

Building for the Quest

  1. Follow the same steps as above and convert to the Android build

  1. Set the Max Size for char-sprites.png, boss-sprites.png, zombie-sprites and UI.png located in Assets > Shader Games > KungFu Chat > Textures to 4096
  2. Set the Format of the same files to RGBA Compressed ASTC 6x6
  3. Set the resolution of KungFu Quest.renderTexture located in Assets > Shader Games > KungFu Chat > Quest Compatible to 128x128

Thanks to Merlin, Scruffy, Xiexe, and 1001 for helping.

About

Shader based arcade game for VRChat

License:MIT License


Languages

Language:GLSL 61.9%Language:ShaderLab 26.5%Language:HLSL 11.7%