- you need to define what the "robot" or "player" can do. left, right, jump, crouch vs up,dow,left,right.attack, spinup. spindown, flameon, flameoff
- Then separate activities into "controller" and "movement"
- I think this is helpful in case NPCs or opponets need to be able to fight.
- Then it's critical to use "layers" but not the "sortable" layers. For barries, ground, robots, hazards
- I think the animations and sprite layers should be sortable layers based on default.
- But that's a guess.
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
#include <Arduino.h> | |
#include <TFT_eSPI.h> | |
#include <Wire.h> | |
#define TOUCH_MODULES_CST_SELF | |
#include <TouchLib.h> | |
#define PIN_IIC_SDA 18 | |
#define PIN_IIC_SCL 17 | |
#define PIN_TOUCH_RES 16 | |
#define PIN_POWER_ON 15 |
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
/* | |
Blink | |
Turns on an LED on for one second, then off for one second, repeatedly. | |
Most Arduinos have an on-board LED you can control. On the Uno and | |
Leonardo, it is attached to digital pin 13. If you're unsure what | |
pin the on-board LED is connected to on your Arduino model, check | |
the documentation at http://www.arduino.cc | |
This example code is in the public domain. |
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
#quick rough out of multi camera image capture | |
import cv2 | |
import numpy as np | |
from datetime import datetime | |
import time | |
import argparse | |
# construct the argument parser and parse the arguments |
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
Keyboard layout | |
https://config.qmk.fm/#/clueboard/2x1800/2019/LAYOUT | |
Keyboard Visual Layout | |
http://www.keyboard-layout-editor.com/#/ | |
Hand Wired Keyboards | |
https://medium.com/cracked-the-code/a-complete-guide-to-building-a-hand-wired-keyboard-9d8c9cc7b041 | |
PCB for keyboards |
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
# import the opencv library | |
import cv2 | |
import numpy as np | |
import matplotlib | |
from matplotlib import colors | |
from matplotlib import pyplot as plt | |
print(cv2.__version__) | |
vid = cv2.VideoCapture(1) |
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
# https://www.codingforentrepreneurs.com/blog/opencv-python-web-camera-quick-test/ | |
# https://stackoverflow.com/questions/41406547/how-to-detect-a-full-black-color-image-in-opencv-python | |
# Getting a USB error, | |
import numpy as np | |
import cv2 | |
font = cv2.FONT_HERSHEY_SIMPLEX | |
NUM_CAMS = 2 |
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
/* | |
* Click drop, or click and drop cones to follow. | |
* | |
*/ | |
class Cone { | |
constructor(x, y) { | |
this.pos = createVector(x, y); | |
this.touched = false; | |
this.radius = 12; |
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
cat requirements.txt | perl -pe 's/([<=>]+)/:$1/g' | xargs -n 1 -I {} echo "poetry add '{}'" |
NewerOlder