Vs 1.1


## Patch Notes:
## Initial set up.
## Set up the main display.

## Set up the base TitleScreen.
## Implemented Pet Resource.
## Implemented HUD layout and button interactions.
## Set up UI player display.
## Set up the player Camera.
## Set up the main BGM loop. Currently set to Egg Theme.

## **Code Structure \[ Documentation \]:**

# **Class:   WorldBackground**

### **Inherits:   TextureRect \<   Control \<   CanvasItem \<   Node \<   Object**

Node that holds a \[texture\]: PNG. This is the background image used to display the environment in which the v-pet lives. Currently set to stretch to screen size.

# **Class:   SceneManager**

### **Inherits:   Node \<   Object**

Root node observer. Will handle all scene transitions.

#### **Properties**

1. WorldManagerworld\_manager\[default: \<unknown\>\]

**Property Descriptions**

1. WorldManagerworld\_manager \[default: \<unknown\>\]

    World Observer \- Will receive all children's signals.

#

# **Class:   PetResource**

### **Inherits:   Resource \<   RefCounted \<   Object**

  There is currently no description for this class.

## Properties

1. Float: happiness \[default: 1.0\]  

2. Float: hunger \[default: 1.0\]  

3. Float: hygiene \[default: 1.0\]  

4. CompressedTexture2D \- sprite

Property Descriptions

##### **● float: happiness \[default: 1.0\]**

#####

##### Variable holding happiness value,  0 \= empty, 1 \= full.

#####

#####

##### **● float: hunger \[default: 1.0\]**

#####

##### Variable holding hunger value, 0 \= empty, 1 \= full.

#####

#####

##### **● float: hygiene \[default: 1.0\]**

#####

##### Variable holding hygine value, 0 \= empty, 1 \= full.

#####

##### **● CompressedTexture2Dsprite**

#####

##### Variable holding sprite

# **Class:   BaseBody**

### **Inherits:   CharacterBody2D \<   PhysicsBody2D \<   CollisionObject2D \<   Node2D \<   CanvasItem \<   Node \<   Object**

 Base body class that all Movable Entities: Mobs inherit.

## Properties

Int: growth\_speed \[default: 1\]  

PetResource: pet\_resource

## Methods

Void: \_push\_happiness()

Void: update\_globals\_from\_pet(pet: PetResource)

## Property Descriptions

● int: growth\_speed \[default: 1\]

VA variable determines the rate at which the patient grows.

● PetResourcepet\_resource

Custom resource holding: happiness, hunger, hygiene, sprite

## Method Descriptions

● void \_push\_happiness()

private function that sends happiness to Globals.

● void update\_globals\_from\_pet(pet: PetResource)

Sets up functions and variables to distribute resources across

Files

1.2.zip Play in browser
2 days ago

Leave a comment

Log in with itch.io to leave a comment.