Skip to content
No description, website, or topics provided.
C#
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Images
Scripts
README.md

README.md

INK'D

This was my Second year group project, the majority of the code base was created by myself and another programmer, with some bits being added by the designers animator and artists.

My main roles for this project were;
• Movement system
• Persistant data
• Hazard creation
• Ragdoll physics

Below are some UML diagrams and pseudo code I created to help me plan the persistent data functionality.

UML Use Case for persistent data

UML Class Diagram for persistent data

LevelData class pseudo code

  class LevelData
    LevelData leveldata
    int numberOfLevels
    List<Level> myLevels

    OnStart(){
      if levelData == null
      {
        levelData = this
        ReadList()
      }else{
        Destroy(this)
      }
    }
    SaveList(){
      ConnectToFile('save.dat')
      Serialize(myLevels)
      CloseConnection()
    }
    ReadList(){
      if save.dat exists
      {
        myLevels = Deserialize("save.dat")
      }else{
        PopulateList()
      }
    }
    PopulateList(){
      for numberOfLevels
      {
        myLevels.Add(newLevel)
      }
      UnlockFirstLevel()
      SaveList()
    }
You can’t perform that action at this time.