This commit is contained in:
Makussu 2023-09-28 23:38:04 +02:00
commit af58958e83
5 changed files with 1942 additions and 0 deletions

View File

@ -0,0 +1 @@
/nix/store/w1db6kd959lj74biy3mhhs7qfafr8srs-nix-shell-env

File diff suppressed because it is too large Load Diff

1
.envrc Normal file
View File

@ -0,0 +1 @@
use nix

42
program.pde Normal file
View File

@ -0,0 +1,42 @@
int x;
int y;
void setup(){
size(800,800);
rectMode(CENTER);
}
void draw(){
rect(x, y, 50, 50);
}
void keyPressed()
{
if (key == CODED)
{
if (keyCode == LEFT)
{
//if (directionX>0) {
x--;
//}
}
else if (keyCode == RIGHT)
{
//if (directionX<0) {
x++;
//}
}
else if (keyCode == UP)
{
//if (directionY<0) {
y--;
//}
}
else if (keyCode == DOWN)
{
//if (directionY<0) {
y++;
//}
}
}
}

13
shell.nix Normal file
View File

@ -0,0 +1,13 @@
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
mkShell {
buildInputs = [
pkgs.processing
];
shellHook = ''
export PROCESSING_PATH=${pkgs.processing}/bin/processing-java
export PROCESSING_APPLICATION_DIR=${pkgs.processing}/share/processing/processing
'';
}