Skip to content

Commit f628ca9

Browse files
authored
Merge pull request #1 from WorldQL/building-blocks
Building blocks
2 parents ff157c8 + 4ce02c7 commit f628ca9

18 files changed

Lines changed: 1075 additions & 172 deletions
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"label": "Building Blocks / Assets",
3+
"position": 1,
4+
"link": {
5+
"type": "generated-index",
6+
"description": "Building blocks that can be imported into your Dreamlab projects"
7+
}
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
# Bullet System
3+
4+
5+
6+
## How to use
7+
8+
After importing the project

docs/building-blocks/enemy.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
# Enemy
3+
4+
This importable building block is a basic enemy which chases the nearest player. The enemy uses the [Health](./health.mdx) behavior and if the player has one it will damage it.
5+
6+
## How to use
7+
8+
After importing this building block, simply drag the enemy into your project and hit play.

docs/building-blocks/health.mdx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
# Health and Health Bars
3+
4+
5+
## How to use
6+
7+
After importing the building block, simply attach the Health behavior to any entity and it will get a health bar!
8+
9+
Health has the following methods:
10+
11+
- `damage(number)` - Damages the unit, dealing damage to shield first
12+
- `setHealth(number)` - Set the health value
13+
- `setShield(number)` - Set the shield value
14+
- `showHealthbar()` - Show the health bar
15+
- `hideHealthbar()` - Hide the health bar

docs/building-blocks/hud.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
# Heads-up Display
File renamed without changes.

0 commit comments

Comments
 (0)