Skip to content

Commit

Permalink
update build
Browse files Browse the repository at this point in the history
  • Loading branch information
01010111 committed Dec 5, 2023
1 parent eb4d6f9 commit 5d544ab
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 5 deletions.
21 changes: 19 additions & 2 deletions demo/html5/bin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Flixel Depth is a fun 3D _hack_ for making orthogonally 3D looking games using haxeflixel. It does so primarily by offsetting sprites according to the camera's current angle and scaling the primary game window down. This is _NOT_ real 3D, you will still be making a _2D_ game, so expect a lot of edge cases!

[github](https://github.com/01010111/flixel-depth)
Check it out or contribute: [github](https://github.com/01010111/flixel-depth)

---

Expand Down Expand Up @@ -115,4 +115,21 @@ stack_sprite.angle_offsets[4] = 90;

## BillboardText

While not a DepthSprite (thank you OOP), Billboard Text is a handy text class that uses FlxText and a similar drawing method to BillboardSprite to display text at a normal scale and angle.
While not a DepthSprite (thank you OOP), Billboard Text is a handy text class that uses FlxText and a similar drawing method to BillboardSprite to display text at a normal scale and angle.

---

## Things to note

- Sorting is mostly handled by x/y position, and z position is taken into account so you can have objects on top of one another, but it's definitely not perfect - remember, _all the 3D is fake_!
- If something looks a little bit off, try setting the offset of depth sprite to the center of the sprite. Same goes for the origin of billboard sprites and text!

---

## Use flixel-depth

To use flixel-depth in your own projects, you can install it via haxelib:

```
haxelib git flixel-depth https://github.com/01010111/flixel-depth.git
```
4 changes: 2 additions & 2 deletions demo/html5/bin/flixel-depth-demo.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion demo/html5/haxe/ApplicationMain.hx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class ApplicationMain
ManifestResources.init(config);
#end

app.meta["build"] = "11";
app.meta["build"] = "14";
app.meta["company"] = "01010111";
app.meta["file"] = "flixel-depth-demo";
app.meta["name"] = "flixel-depth-demo";
Expand Down

0 comments on commit 5d544ab

Please sign in to comment.