Code Samples

Code I have written to do ~things~ for Lift

 
 

overview

As the main VR developer for Lift, I had worked primarily by myself with supplemental help from another colleague for 2 years, until we finally brought on some help (for the sake of the project and my sanity). One of the main things I am proud of is my JSON Parser that translates JSON to game data that we use to load all scenarios in the game, such as patrons, accessories they may be holding or wearing, their spawn and destination floor, and what possible conversations can follow them depending on memory data. (I also made a visualizer for that tool which you can see here)

All of this code is hosted individually on a baby GitHub repo here.

Links to specific classes:

JSONParser.cs (note: currently in overhaul for serialization optimization)

Scenario.cs

Patron.cs

Item.cs


JSON PARSER (under construction)

There are a couple of custom classes that need to be serialized so that we can see them:

  • Scenario Node

    • List<Patrons>

      • Patron

      • Items

    • List<NextScenario>

      • NextScenario


Scenario.cs

There are a couple of custom classes that need to be serialized so that we can see them:

  • Conversation Node

    • List<Patrons>

      • Patron

        • Items

    • List<NextNodes>

      • NextNodes


Patron.Cs

  • Patron

    • Patron Name (ex: Boss, Server, Tourist, etc.)

    • FSM Name (ex: Boss1.1)

    • Items worn on Patron load (items can also be loaded later in scenario play through)


Item.Cs

  • Item

    • Item name (ex: hat, mustache)

    • Load location enum (ex: Left hand, Right hand, face, head)