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
// # SÅDAN LAVER DU EN SIMPEL HALE PÅ ET OBJECT I PROCESSING | |
// | |
// Bemærk der er mange måder at lave ting på og dette er blot en af mange | |
// Tjek evt. https://processing.org/tutorials/arrays/ for mere info. | |
// | |
// | |
// Lad os antage du gerne vil lave en bold med en hale bagefter. | |
// Du starter med at definer en 'class' kaldet Ball (eller hvad du ønsker den skal hedde) | |
class Ball { | |
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
class Humanoid extends GameObject { | |
public HealthController healthCtrl; | |
public Animator animator; | |
Humanoid(PVector _position, PVector _size, | |
float _maxHealth, AnimationState[] animationStates) { | |
// Execute GameObject constructor | |
super(_position, _size); |
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
// A reference to the ball | |
Ball ball; | |
// ball radius | |
float ballRadius = 25; | |
// ball movement speed | |
PVector ballSpeedRange = new PVector(3, 7); | |
// the ball's stroke color | |
color ballStrokeColor = color(255); | |
// ball fill colors |
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
// each 'step' we want to draw a rect | |
// this is therefore also used for the rects' length and height | |
float stepX = 50; | |
float stepY = 50; | |
// the color of the rect we draw everytime the user click | |
color clickedRectColor = color(255, 0, 0); | |
// the max rgb value for rects drawed inside setup() | |
int rbgValueMax = 255; |
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
# 1. Open a terminal. | |
# 2. Enter "heroku run rake letsencrypt_plugin --app <APP NAME>" | |
# 3. You will see the following output in the terminal. | |
# I, [2017-02-21T22:16:46.751310 #4] INFO -- : Trying to register at Let's Encrypt service... | |
# I, [2017-02-21T22:16:46.751387 #4] INFO -- : Loading private key... | |
# I, [2017-02-21T22:16:47.071975 #4] INFO -- : Acme::Client::Error::Malformed - Registration key is already in use | |
# I, [2017-02-21T22:16:47.072063 #4] INFO -- : Already registered. | |
# I, [2017-02-21T22:16:47.072101 #4] INFO -- : Sending authorization request for: example.com... | |
# I, [2017-02-21T22:16:47.211549 #4] INFO -- : Storing challenge information... |
NewerOlder