start
This commit is contained in:
commit
af58958e83
1
.direnv/nix-profile-pre526521.970a59bd19ef
Symbolic link
1
.direnv/nix-profile-pre526521.970a59bd19ef
Symbolic link
@ -0,0 +1 @@
|
||||
/nix/store/w1db6kd959lj74biy3mhhs7qfafr8srs-nix-shell-env
|
||||
1885
.direnv/nix-profile-pre526521.970a59bd19ef.rc
Normal file
1885
.direnv/nix-profile-pre526521.970a59bd19ef.rc
Normal file
File diff suppressed because it is too large
Load Diff
42
program.pde
Normal file
42
program.pde
Normal 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
13
shell.nix
Normal 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
|
||||
'';
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user