Skip to content

Commit

Permalink
Merge pull request #28 from tong/update-projects
Browse files Browse the repository at this point in the history
Update projects
  • Loading branch information
luboslenco committed Aug 5, 2021
2 parents 1718809 + 90fbd93 commit dcc2bc2
Show file tree
Hide file tree
Showing 360 changed files with 514 additions and 232 deletions.
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
*/*.blend?
*/Sources/Main.hx
*/Sources/arm/node/*
*/khafile.js
*.pyc
*.DS_Store
khafile.js
node_update_failure.*
_themes.json
.vscode/
config.arm
_themes.json
_*/
1 change: 0 additions & 1 deletion _/README.md

This file was deleted.

Binary file removed _/material_examples/tessellation.blend
Binary file not shown.
Binary file removed _/vr_dino/dino.blend
Binary file not shown.
File renamed without changes.
Binary file added _material_tesselation/material_tessellation.blend
Binary file not shown.
Binary file added _vr_dino/vr_dino.blend
Binary file not shown.
Binary file removed animation/animation.blend
Binary file not shown.
1 change: 1 addition & 0 deletions animation_actions/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Press keyboard `1`, `2`, `3` to change the animation action
Binary file removed animation_actions/actions.blend
Binary file not shown.
Binary file added animation_actions/animation_actions.blend
Binary file not shown.
1 change: 1 addition & 0 deletions animation_blend/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hold keyboard `W`, `S` to blend between animations
Binary file removed animation_blend/animation.blend
Binary file not shown.
Binary file added animation_blend/animation_blend.blend
Binary file not shown.
3 changes: 3 additions & 0 deletions animation_bonechild/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Hand object is parented to armature bone
- Sword is parented to Hand object
- Press `X` to swap weapons
Binary file removed animation_bonechild/animation.blend
Binary file not shown.
Binary file added animation_bonechild/animation_bonechild.blend
Binary file not shown.
2 changes: 2 additions & 0 deletions animation_instanced/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Use instancing for fast rendering of linked object duplicates.
https://github.com/armory3d/armory/wiki/instancing
Binary file removed animation_instanced/animation.blend
Binary file not shown.
Binary file added animation_instanced/animation_instanced.blend
Binary file not shown.
2 changes: 1 addition & 1 deletion animation_movebone/Sources/arm/MoveBoneFK.hx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class MoveBoneFK extends iron.Trait {
m.setFrom(w);
m.translate(10, 0, Math.sin(iron.system.Time.time()) * 50);
iw.getInverse(w);
m.multmat2(iw);
m.multmat(iw);
});
});
}
Expand Down
Binary file added animation_movebone/animation_movebone.blend
Binary file not shown.
Binary file removed animation_movebone/movebone.blend
Binary file not shown.
Binary file added animation_timeline/animation_timeline.blend
Binary file not shown.
Binary file added animation_uv/animation_uv.blend
Binary file not shown.
Binary file removed animation_uv/uvanim.blend
Binary file not shown.
Binary file removed billboard/billboard.blend
Binary file not shown.
2 changes: 2 additions & 0 deletions call_hx/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Check console.
https://github.com/armory3d/armory/wiki/js
2 changes: 1 addition & 1 deletion call_hx/Sources/arm/EvalJS.hx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class EvalJS {
public function new() {
// Evaluate bundled JS, usually you would embed JS into .html file instead
iron.data.Data.getBlob("my_plugin.js", function(blob:kha.Blob) {
untyped __js__("(1, eval)({0})", blob.toString());
js.Syntax.code("(1, eval)({0})", blob.toString());
});
}
}
Binary file modified call_hx/call_hx.blend
Binary file not shown.
2 changes: 2 additions & 0 deletions call_js/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Check console.
https://github.com/armory3d/armory/wiki/js
9 changes: 4 additions & 5 deletions call_js/Sources/arm/CallJS.hx
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,20 @@ class CallJS extends iron.Trait {

public function new() {
super();

var mouse = Input.getMouse();
notifyOnUpdate(function() {

// Check mouse button
var mouse = Input.getMouse();
if (!mouse.started()) return;

// Pick object at mouse coords
var rb = PhysicsWorld.active.pickClosest(mouse.x, mouse.y);

// Check if picked object is our Cube
if (rb != null && rb.object.name == 'Cube') {

// Raw JS calls
untyped __js__('document.title = "Cube clicked!"');
untyped __js__('console.log("Testing..");');
js.Syntax.code('document.title = "Cube clicked!"');
js.Syntax.code('console.log("Testing..");');
}
});
}
Expand Down
Binary file modified call_js/call_js.blend
Binary file not shown.
1 change: 1 addition & 0 deletions debug_draw/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Open DebugConsole to enable/disable debug drawing
Binary file added debug_draw/debug_draw.blend
Binary file not shown.
Binary file removed debug_draw/draw.blend
Binary file not shown.
Binary file added dev_logicnode/dev_logicnode.blend
Binary file not shown.
Binary file removed dev_logicnode/logicnode.blend
Binary file not shown.
1 change: 1 addition & 0 deletions ease/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://armory3d.org/api/iron/system/Ease.html
42 changes: 42 additions & 0 deletions ease/Sources/arm/TweenTest.hx
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
package arm;

import iron.system.Tween;
#if arm_debug
import armory.trait.internal.DebugDraw;
#end

class TweenTest extends iron.Trait {

@prop var ease : Int = 0;

public function new() {

super();

#if arm_debug
//DebugDraw.notifyOnRender( draw -> draw.bounds( object.transform) );
#end

notifyOnInit(tweenUp);
}

function tweenUp() {
doTween( 15, tweenDown );
}

function tweenDown() {
doTween( -15, tweenUp );
}

function doTween( z : Float, onDone : Void->Void ) {
Tween.to({
target: object.transform.loc,
props: { z: z },
duration: 2.0,
delay: 0.5,
tick: object.transform.buildMatrix,
ease: ease,
done: onDone
});
}
}
Binary file added ease/ease.blend
Binary file not shown.
1 change: 1 addition & 0 deletions file_read/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Loads a json file from the `Bundled/` directory.
6 changes: 3 additions & 3 deletions file_read/Sources/arm/ReadFile.hx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package arm;

import iron.Scene;
import iron.data.Data;
import armory.trait.internal.CanvasScript;
import iron.data.Data;
import iron.Scene;

class ReadFile extends iron.Trait {
public function new() {
Expand All @@ -11,7 +11,7 @@ class ReadFile extends iron.Trait {
notifyOnInit(function() {

// Relative or absolute path to file
// In this case we load the file placed in the "Bundled/" folder
// In this case we load the file placed in the "Bundled/" directory
var file = "my_file.json";

// Load the file asynchronously
Expand Down
Binary file removed file_read/file.blend
Binary file not shown.
Binary file added file_read/file_read.blend
Binary file not shown.
1 change: 1 addition & 0 deletions file_storage/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://armory3d.org/api/kha/Storage.html
File renamed without changes.
1 change: 1 addition & 0 deletions file_write/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://github.com/armory3d/armory/wiki/reference#write-json
Binary file removed file_write/file.blend
Binary file not shown.
Binary file added file_write/file_write.blend
Binary file not shown.
Binary file removed game_bowling/bowling.blend
Binary file not shown.
Binary file added game_bowling/game_bowling.blend
Binary file not shown.
Binary file removed game_endlessrun/endless.blend
Binary file not shown.
Binary file added game_endlessrun/game_endless.blend
Binary file not shown.
2 changes: 1 addition & 1 deletion graphics_settings/Bundled/canvas/MyCanvas.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"name":"untitled","x":0,"y":0,"width":1280,"height":720,"elements":[{"id":2,"type":6,"name":"SSR","event":"","x":40,"y":290,"width":150,"height":44,"rotation":0,"text":"SSR","asset":"","color":-1,"anchor":0,"parent":null,"children":[],"visible":true},{"id":3,"type":6,"name":"SSAO","event":"","x":40,"y":340,"width":150,"height":44,"rotation":0,"text":"SSAO","asset":"","color":-1,"anchor":0,"parent":null,"children":[],"visible":true},{"id":4,"type":6,"name":"Fullscreen","event":"","x":40,"y":90,"width":191,"height":44,"rotation":0,"text":"Fullscreen","asset":"","color":-1,"anchor":0,"parent":null,"children":[],"visible":true},{"id":6,"type":6,"name":"Bloom","event":"","x":40,"y":240,"width":150,"height":44,"rotation":0,"text":"Bloom","asset":"","color":-1,"anchor":0,"parent":null,"children":[],"visible":true},{"id":7,"type":6,"name":"MotionBlur","event":"","x":40,"y":190,"width":177,"height":44,"rotation":0,"text":"Motion Blur","asset":"","color":-1,"anchor":0,"parent":null,"children":[],"visible":true},{"id":8,"type":8,"name":"Shadows","event":"","x":40,"y":140,"width":150,"height":44,"rotation":0,"text":"High;Medium;Low","asset":"","color":-1,"anchor":0,"parent":null,"children":[],"visible":true},{"id":9,"type":10,"name":"ViewDistance","event":"","x":40,"y":390,"width":250,"height":44,"rotation":0,"text":"View Distance","asset":"","color":-1,"anchor":0,"parent":null,"children":[],"visible":true},{"id":10,"type":10,"name":"FoV","event":"","x":40,"y":440,"width":250,"height":44,"rotation":0,"text":"FoV","asset":"","color":-1,"anchor":0,"parent":null,"children":[],"visible":true},{"id":11,"type":0,"name":"Title","event":"","x":20,"y":20,"width":377,"height":44,"rotation":0,"text":"Graphics Settings","asset":"","color":-1,"anchor":0,"parent":null,"children":[],"visible":true},{"id":12,"type":0,"name":"ShadowsTitle","event":"","x":180,"y":140,"width":184,"height":28,"rotation":0,"text":"Shadows","asset":"","color":-6381922,"anchor":0,"parent":null,"children":[],"visible":true},{"id":13,"type":2,"name":"Apply","event":"apply_settings","x":40,"y":490,"width":150,"height":44,"rotation":0,"text":"Apply","asset":"","color":-1,"anchor":0,"parent":null,"children":[],"visible":true}],"assets":[]}
{"name":"untitled","x":0,"y":0,"width":1280,"height":720,"elements":[{"id":2,"type":6,"name":"SSR","event":"","x":40,"y":300,"width":150,"height":34,"rotation":0,"text":"SSR","asset":"","color":-1,"anchor":0,"parent":null,"children":[],"visible":true},{"id":3,"type":6,"name":"SSAO","event":"","x":40,"y":340,"width":150,"height":44,"rotation":0,"text":"SSAO","asset":"","color":-1,"anchor":0,"parent":null,"children":[],"visible":true},{"id":4,"type":6,"name":"Fullscreen","event":"","x":40,"y":90,"width":191,"height":24,"rotation":0,"text":"Fullscreen","asset":"","color":-1,"anchor":0,"parent":null,"children":[],"visible":true},{"id":6,"type":6,"name":"Bloom","event":"","x":40,"y":240,"width":150,"height":44,"rotation":0,"text":"Bloom","asset":"","color":-1,"anchor":0,"parent":null,"children":[],"visible":true},{"id":7,"type":6,"name":"MotionBlur","event":"","x":40,"y":190,"width":177,"height":44,"rotation":0,"text":"Motion Blur","asset":"","color":-1,"anchor":0,"parent":null,"children":[],"visible":true},{"id":8,"type":8,"name":"Shadows","event":"","x":40,"y":160,"width":80,"height":20,"rotation":0,"text":"High;Medium;Low","asset":"","color":-1,"anchor":0,"parent":null,"children":[],"visible":true},{"id":9,"type":10,"name":"ViewDistance","event":"","x":40,"y":390,"width":250,"height":44,"rotation":0,"text":"View Distance","asset":"","color":-1,"anchor":0,"parent":null,"children":[],"visible":true},{"id":10,"type":10,"name":"FoV","event":"","x":40,"y":440,"width":250,"height":40,"rotation":0,"text":"FoV","asset":"","color":-1,"anchor":0,"parent":null,"children":[],"visible":true},{"id":11,"type":0,"name":"Title","event":"","x":20,"y":20,"width":260,"height":32,"rotation":0,"text":"Graphics Settings","asset":"","color":-1,"anchor":0,"parent":null,"children":[],"visible":true},{"id":12,"type":0,"name":"ShadowsTitle","event":"","x":180,"y":140,"width":184,"height":20,"rotation":0,"text":"Shadows","asset":"","color":-6381922,"anchor":0,"parent":null,"children":[],"visible":true},{"id":13,"type":2,"name":"Apply","event":"apply_settings","x":40,"y":480,"width":80,"height":30,"rotation":0,"text":"Apply","asset":"","color":-1,"anchor":0,"parent":null,"children":[],"visible":true}],"assets":[],"theme":"Default Light"}
4 changes: 2 additions & 2 deletions graphics_settings/Bundled/config.arm
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
"rp_ssgi": true,
"rp_ssr": true,
"rp_supersample": 1.0,
"window_h": 720,
"window_h": 540,
"window_maximizable": false,
"window_minimizable": true,
"window_mode": 0,
"window_msaa": 1,
"window_resizable": false,
"window_scale": 1.0,
"window_vsync": true,
"window_w": 1280
"window_w": 960
}
1 change: 1 addition & 0 deletions graphics_settings/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://armory3d.org/api/armory/data/Config.html
Binary file added graphics_settings/graphics_settings.blend
Binary file not shown.
Binary file removed graphics_settings/settings.blend
Binary file not shown.
2 changes: 2 additions & 0 deletions input_mouselock/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Click to lock mouse, press ESC to unlock mouse.
https://armory3d.org/api/iron/system/Mouse.html
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
package arm;

import iron.math.Vec4;
import iron.system.Input;

class LockTrait extends iron.Trait {

public function new() {

super();

notifyOnUpdate(function() {
var mouse = iron.system.Input.getMouse();
var kb = iron.system.Input.getKeyboard();
var mouse = Input.getMouse();
var kb = Input.getKeyboard();

notifyOnUpdate(() -> {
if (mouse.started("left")) {
mouse.lock();
}
else if (kb.started("escape")) {
} else if (kb.started("escape")) {
mouse.unlock();
}

var cube = iron.Scene.active.getChild("Cube");
if (cube != null) {
cube.transform.rotate(Vec4.zAxis(), mouse.movementX * 0.002);
Expand Down
Binary file added input_mouselock/input_mouselock.blend
Binary file not shown.
File renamed without changes.
Binary file added input_multitouch/input_multitouch.blend
Binary file not shown.
File renamed without changes.
Binary file added input_sensor/input_sensor.blend
Binary file not shown.
6 changes: 6 additions & 0 deletions instancing/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#### Enable instancing

- Select object and set `Properties - Object - Armory Props - Instanced Children` property
- Create linked duplicates and parent them to object being instanced

https://github.com/armory3d/armory/wiki/instancing
Binary file removed instancing/inst.blend
Binary file not shown.
Binary file added instancing/instancing.blend
Binary file not shown.
Binary file removed light_area/area.blend
Binary file not shown.
Binary file added light_area/light_area.blend
Binary file not shown.
Binary file removed light_ies/ies.blend
Binary file not shown.
Binary file added light_ies/light_ies.blend
Binary file not shown.
Binary file removed light_probes/reflection_cubemap.blend
Binary file not shown.
Binary file removed light_probes/reflection_plane.blend
Binary file not shown.
Binary file added light_probes_cubemap/light_probes_cubemap.blend
Binary file not shown.
Binary file added light_probes_plane/light_probes_plane.blend
Binary file not shown.
1 change: 1 addition & 0 deletions light_volumetric/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://github.com/armory3d/armory/wiki/screen-effects#volumetric-fog
Binary file added light_volumetric/light_volumetric.blend
Binary file not shown.
Binary file removed light_volumetric/volumetric.blend
Binary file not shown.
1 change: 1 addition & 0 deletions linked_proxy/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://github.com/armory3d/armory/wiki/multiuser#linked-proxy
Binary file modified linked_proxy/linked_proxy.blend
Binary file not shown.
Binary file modified load_screen/load_screen.blend
Binary file not shown.
1 change: 1 addition & 0 deletions lod/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
LOD (level of detail) can be decreased as the model moves away from the viewer.
Binary file modified lod/lod.blend
Binary file not shown.
Binary file added logic_break/logic_break.blend
Binary file not shown.
3 changes: 3 additions & 0 deletions logic_callgroup/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Keyboard `C` NodeTreeA calls NodeTreeB, NodeTreeB sets current time to global object property
- Keyboard `V` NodeTreeA prints value of global object property
- Check console output
Binary file added logic_callgroup/logic_callgroup.blend
Binary file not shown.
Binary file added logic_camera_pan/logic_camera_pan.blend
Binary file not shown.
Binary file added logic_camera_zoom/logic_camera_zoom.blend
Binary file not shown.
Binary file modified logic_canvas/logic_canvas.blend
Binary file not shown.
File renamed without changes.
19 changes: 19 additions & 0 deletions logic_event_fromhaxe/Sources/arm/SendEvent.hx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package arm;

import armory.system.Event;

class SendEvent extends iron.Trait {

public function new() {

super();

var mouse = iron.system.Input.getMouse();

notifyOnUpdate(function() {
if (mouse.started("left")) {
Event.send("my_event");
}
});
}
}
Binary file not shown.
Binary file added logic_event_global/logic_event_global.blend
Binary file not shown.
File renamed without changes.
Binary file added logic_event_object/logic_event_object.blend
Binary file not shown.
Binary file removed logic_events/from_haxe.blend
Binary file not shown.
Binary file removed logic_events/global_event.blend
Binary file not shown.
Binary file removed logic_events/object_event.blend
Binary file not shown.
Binary file removed logic_examples/LoadUrl.blend
Binary file not shown.
Binary file removed logic_examples/break.blend
Binary file not shown.
Binary file removed logic_examples/callgroup.blend
Binary file not shown.
Binary file removed logic_examples/camera_pan.blend
Binary file not shown.
Binary file removed logic_examples/camera_zoom.blend
Binary file not shown.
Binary file removed logic_examples/get_contacts.blend
Binary file not shown.
Binary file removed logic_examples/hello_world.blend
Binary file not shown.
Binary file removed logic_examples/keyboard.blend
Binary file not shown.
Binary file removed logic_examples/linked_variable.blend
Binary file not shown.
Binary file removed logic_examples/logic_scenetree.blend
Binary file not shown.
Binary file removed logic_examples/object_rotate.blend
Binary file not shown.
Binary file removed logic_examples/object_scale.blend
Binary file not shown.
Binary file removed logic_examples/object_translate.blend
Binary file not shown.
Binary file removed logic_examples/pause_trait.blend
Binary file not shown.
Binary file removed logic_examples/scenes.blend
Binary file not shown.
Binary file removed logic_examples/script.blend
Binary file not shown.
Binary file removed logic_examples/set_property.blend
Binary file not shown.
Binary file removed logic_examples/toy_car.blend
Binary file not shown.
Binary file removed logic_examples/transform.blend
Binary file not shown.
Binary file removed logic_examples/triggers.blend
Binary file not shown.
Binary file removed logic_examples/watch_variable.blend
Binary file not shown.
112 changes: 112 additions & 0 deletions logic_gamepad/Sources/arm/VirtualGamepad.hx
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
package arm;

import iron.Trait;
import iron.math.Vec2;
import iron.system.Input;

using kha.graphics2.GraphicsExtension;

@:access(iron.system.Gamepad)
class VirtualGamepad extends Trait {

@prop public var gamepad : Int = 0;
@prop public var radius : Int = 100;
@prop public var offset : Int = 45;
@prop public var sizeRatio : Float = 2.2;

public var colorA : kha.Color = 0xff888888;
public var colorB : kha.Color = 0xffcf2b43;

var leftPadX = 0;
var leftPadY = 0;
var rightPadX = 0;
var rightPadY = 0;
var leftStickX = 0;
var leftStickY = 0;
var rightStickX = 0;
var rightStickY = 0;
// var leftStickXLast = 0;
// var leftStickYLast = 0;
// var rightStickXLast = 0;
// var rightStickYLast = 0;
var leftLocked = false;
var rightLocked = false;
var gamepad_ : Gamepad;

public function new() {
super();
notifyOnInit(function() {
gamepad_ = Input.getGamepad( gamepad );
notifyOnUpdate(update);
notifyOnRender2D(render2D);
});
}

function update() {

var r = radius;
var o = offset;

leftPadX = r + o;
rightPadX = iron.App.w() - r - o;
leftPadY = rightPadY = iron.App.h() - r - o;

final mouse = Input.getMouse();
if (mouse.started() ) {
leftLocked = Vec2.distancef(mouse.x, mouse.y, leftPadX, leftPadY) <= r;
} else if (mouse.released()) {
leftLocked = false;
}
if (leftLocked) {
leftStickX = Std.int(mouse.x - leftPadX);
leftStickY = Std.int(mouse.y - leftPadY);
if (Math.sqrt(leftStickX * leftStickX + leftStickY * leftStickY) > r) {
leftStickX = Std.int(r * (leftStickX / Math.sqrt(leftStickX * leftStickX + leftStickY * leftStickY)));
leftStickY = Std.int(r * (leftStickY / Math.sqrt(leftStickX * leftStickX + leftStickY * leftStickY)));
}
} else {
leftStickX = leftStickY = 0;
}

if (mouse.started() ) {
rightLocked = Vec2.distancef(mouse.x, mouse.y, rightPadX, rightPadY) <= r;
} else if (mouse.released()) {
rightLocked = false;
}
if (rightLocked) {
rightStickX = Std.int(mouse.x - rightPadX);
rightStickY = Std.int(mouse.y - rightPadY);
if (Math.sqrt(rightStickX * rightStickX + rightStickY * rightStickY) > r) {
rightStickX = Std.int(r * (rightStickX / Math.sqrt(rightStickX * rightStickX + rightStickY * rightStickY)));
rightStickY = Std.int(r * (rightStickY / Math.sqrt(rightStickX * rightStickX + rightStickY * rightStickY)));
}
}
else {
rightStickX = rightStickY = 0;
}

gamepad_.axisListener(0, leftStickX / r);
gamepad_.axisListener(1, leftStickY / r);
gamepad_.axisListener(2, rightStickY / r);
gamepad_.axisListener(3, rightStickX / r);

// leftStickXLast = leftStickX;
// leftStickYLast = leftStickY;
// rightStickXLast = rightStickX;
// rightStickYLast = rightStickY;
}

function render2D(g: kha.graphics2.Graphics) {

var r = radius;
var r2 = Std.int(r / sizeRatio);

g.color = colorA;
g.fillCircle(leftPadX, leftPadY, r);
g.fillCircle(rightPadX, rightPadY, r);

g.color = colorB;
g.fillCircle(leftPadX + leftStickX, leftPadY + leftStickY, r2);
g.fillCircle(rightPadX + rightStickX, rightPadY + rightStickY, r2);
}
}
Binary file added logic_gamepad/logic_gamepad.blend
Binary file not shown.
Binary file removed logic_gate/gate.blend
Binary file not shown.
Binary file added logic_gate/logic_gate.blend
Binary file not shown.
Binary file added logic_get_contacts/logic_get_contacts.blend
Binary file not shown.
Binary file added logic_hello_world/logic_hello_world.blend
Binary file not shown.
Binary file added logic_keyboard/logic_keyboard.blend
Binary file not shown.
Binary file added logic_linked_variable/logic_linked_variable.blend
Binary file not shown.
Binary file added logic_loadurl/logic_loadurl.blend
Binary file not shown.
Binary file added logic_mouselock/logic_mouselock.blend
Binary file not shown.
1 change: 1 addition & 0 deletions logic_object_rotate/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Press keyboard A, D to rotate object
Binary file added logic_object_rotate/logic_object_rotate.blend
Binary file not shown.
1 change: 1 addition & 0 deletions logic_object_scale/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Press keyboard `` `` to scale object
Binary file added logic_object_scale/logic_object_scale.blend
Binary file not shown.
1 change: 1 addition & 0 deletions logic_object_translate/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Keyboard `WASD` to translate object
Binary file not shown.
3 changes: 3 additions & 0 deletions logic_pause_trait/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#### Keyboard
- `1` to pause trait
- `2` to resume trait
Binary file added logic_pause_trait/logic_pause_trait.blend
Binary file not shown.
Binary file added logic_pong/logic_pong.blend
Binary file not shown.
Binary file removed logic_pong/pong.blend
Binary file not shown.
3 changes: 3 additions & 0 deletions logic_scenes/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#### Keyboard
- `1` to drop all objects from other scene into current
- `2` to remove current scene and switch to Scene3
Binary file added logic_scenes/logic_scenes.blend
Binary file not shown.
1 change: 1 addition & 0 deletions logic_scenetree/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Check console
Binary file added logic_scenetree/logic_scenetree.blend
Binary file not shown.
Binary file added logic_script/logic_script.blend
Binary file not shown.
1 change: 1 addition & 0 deletions logic_set_property/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Press 1, 2 or 3
Binary file added logic_set_property/logic_set_property.blend
Binary file not shown.
Binary file added logic_transform/logic_transform.blend
Binary file not shown.
Binary file not shown.
Binary file added material_batch/material_batch.blend
Binary file not shown.
File renamed without changes
Binary file added material_billboard/material_billboard.blend
Binary file not shown.
Binary file added material_bump/brick_bump.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
File renamed without changes
Binary file added material_decal/material_decal.blend
Binary file not shown.
1 change: 1 addition & 0 deletions material_displace/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://github.com/armory3d/armory/wiki/materials#displacement
File renamed without changes
File renamed without changes
Binary file added material_displace/material_displace.blend
Binary file not shown.
Binary file removed material_examples/batch.blend
Binary file not shown.
Binary file removed material_examples/decal.blend
Binary file not shown.
Binary file removed material_examples/displace.blend
Binary file not shown.
Binary file removed material_examples/normalmap.blend
Binary file not shown.
Binary file removed material_examples/shadeless.blend
Binary file not shown.
Binary file removed material_examples/sss.blend
Binary file not shown.
Binary file removed material_movie/movie.blend
Binary file not shown.
File renamed without changes.
Binary file added material_normalmap/material_normalmap.blend
Binary file not shown.
1 change: 1 addition & 0 deletions material_params/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://github.com/armory3d/armory/wiki/materials#material-parameters
Binary file added material_params/material_params.blend
Binary file not shown.
Binary file removed material_params/params.blend
Binary file not shown.
Binary file added material_shadeless/material_shadeless.blend
Binary file not shown.
Loading

0 comments on commit dcc2bc2

Please sign in to comment.