This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends CharacterBody2D | |
@export var SPEED: float = 50.0 | |
var _move_joy = Vector2.ZERO | |
func _ready(): | |
Input.mouse_mode = Input.MOUSE_MODE_HIDDEN | |
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends Node | |
class_name MovementComponent | |
var updated_node: KinematicBody2D | |
var speed := 38 | |
var acceleration := 0.1 | |
var deceleration := 0.25 | |
var move_input := Vector2.ZERO | |
var last_move_input := Vector2.ZERO | |
var facing_direction := Vector2.UP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends KinematicBody2D | |
var speed = 500 | |
var velocity := Vector2.ZERO | |
var input_vector := Vector2.ZERO | |
var current_line: Line2D | |
func _process(delta): | |
update_move(delta) | |
update_line(delta) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let wait = ms => new Promise((r, j)=>setTimeout(r, ms)); | |
await wait(2000); // sleep for 2 seconds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Framewerk</title> | |
<link rel="stylesheet/less" type="text/css" href="src/framewerk.less" /> | |
</head> | |
<body> | |
<script src="node_modules/less/dist/less.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ slap file.txt --logger.level silly | |
Fatal TypeError: Object #<Object> has no method 'isFunction' | |
at WriteStream._write (fs.js:1675:17) | |
at doWrite (_stream_writable.js:223:10) | |
at writeOrBuffer (_stream_writable.js:213:5) | |
at WriteStream.Writable.write (_stream_writable.js:180:11) | |
at [object Object].File._write (/usr/local/lib/node_modules/slap/node_modules/slap-util/node_modules/winston/lib/winston/transports/file.js:199:18) | |
at [object Object].File.log (/usr/local/lib/node_modules/slap/node_modules/slap-util/node_modules/winston/lib/winston/transports/file.js:171:10) | |
at emit (/usr/local/lib/node_modules/slap/node_modules/slap-util/node_modules/winston/lib/winston/logger.js:186:17) | |
at /usr/local/lib/node_modules/slap/node_modules/slap-util/node_modules/winston/node_modules/async/lib/async.js:157:13 |