Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Commit

Permalink
Build 2
Browse files Browse the repository at this point in the history
  • Loading branch information
luboslenco committed Mar 15, 2017
1 parent 544bca6 commit 6d8fe53
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
Binary file added Bundled/ui_persp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions Sources/arm/DrawUI.hx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package arm;

class DrawUI extends armory.Trait {
public function new() {
super();

notifyOnInit(function() {

kha.Assets.loadImage("ui_persp", function(image:kha.Image) {
notifyOnRender2D(function(g:kha.graphics2.Graphics) {
var x = 40;
var y = armory.App.h() - image.height - 40;
g.drawImage(image, x, y);
});
});
});
}
}
2 changes: 1 addition & 1 deletion Sources/arm/FirstPersonController.hx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class FirstPersonController extends CameraController {
if (!body.ready) return;

// Move head
head.transform.loc.z = 0.1 + Math.sin(armory.system.Time.time()) / 50.0;
head.transform.loc.z = 0.1;// + Math.sin(armory.system.Time.time()) / 50.0;
head.transform.dirty = true;

// Move
Expand Down
Binary file modified armorbench.blend
Binary file not shown.

0 comments on commit 6d8fe53

Please sign in to comment.