TODO: Write a project description
TODO: Describe the installation process
## --> rotating circle from characters | |
# --> from http://stackoverflow.com/questions/10470139/creating-rotating-circle-using-characters-in-shell-script | |
while sleep 1; do | |
i=$((++i%4 + 2)); | |
printf '\b|/-\' | cut -b 1,$i | tr -d '\n'; | |
done |
React.js Introduction For People Who Know Just Enough jQuery To Get By | |
http://reactfordesigners.com/labs/reactjs-introduction-for-people-who-know-just-enough-jquery-to-get-by/ |
E.g. Talend extracts | |
source [/dev/sda3] [mounted on /]: /home/usr/talend_extracts | |
destination [/dev/sdc1] [mounted on /app]: /app/archive/talend/extracts | |
$pwd | |
/app/archive/talend/extracts | |
$sudo cp -afvr . /app/archive/talend/extracts |
# To revert to a commit further back than the most recent commit | |
-------- | |
git reset 56e05fced #resets index to former commit; replace '56e05fced' with your commit code | |
git reset --soft HEAD@{1} #moves pointer back to previous HEAD | |
git commit -m "Revert to 56e05fced" | |
git reset --hard #updates working copy to reflect the new commit |
extends Area2D | |
export var speed = 400 | |
var screensize | |
var velocity = Vector2() | |
func _ready(): | |
extends KinematicBody2D | |
onready var sprite = get_node("sprite") | |
const UP = Vector2(0, -1) | |
const GRAVITY = 20 | |
const ACCELARATION = 50 | |
const MAX_SPEED = 400 | |
const JUMP_HEIGHT = -500 | |
const FRICTION = 0.1 |
To get that ParallaxBackground working: | |
1. Create a ParallaxBackground node. (It doesn't need to be a child of the Camera2D node, but making it a child of the Camera2D node won't break it either) | |
2. Create a ParallaxLayer node as a child of the ParallaxBackground. | |
3. Add your sprite as a child of the ParallaxLayer node and make sure Centered is off. | |
4. Go back to the ParallaxLayer node. | |
5. Under Motion, set Mirroring to the size of your sprite (in the case of the Sky sprite, 640x640). | |
6. Under Motion, fiddle with the Scale setting. This is how fast that ParallaxLayer will move in relation to the camera. I found (0.1, 0.1) to be a good starting point for something like a sky. | |
7. Run your game, and you should have a background that infinitely loops and also has a parallax effect. |
# Ref : https://www.reddit.com/r/godot/comments/7bi5uf/generating_a_scene_tree_dynamically/ | |
# Create a root Node and name is DynamicNodeGraph | |
extends Node | |
var RootNode | |
var SomeGraphEdit | |
var SomePopupMenu | |
var SomePopupMenuVisible = false | |
var RMBPressed = false |
# Create 2 scenes 0.tscn and 1.tscn | |
# Add a Node and call it main | |
# Add script as below to main | |
extends Node | |
var scenes = [0,1] | |
func _ready(): | |
# randomize() |