├── Background.pde ├── Player.pde ├── README.md ├── data ├── octabbi_movingt.gif └── octabbit.png ├── octabbit_rpg.pde └── octabbit_screenshot.png /Background.pde: -------------------------------------------------------------------------------- 1 | class Background { 2 | 3 | Background() { 4 | 5 | } 6 | 7 | void display() { 8 | background(146, 234, 111); 9 | 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /Player.pde: -------------------------------------------------------------------------------- 1 | class Player { 2 | PImage octabbit; 3 | float x; 4 | float y; 5 | float speed; 6 | 7 | Player() { 8 | octabbit = loadImage("octabbi_movingt.gif"); 9 | x = width/2; 10 | y = height/2; 11 | speed = 3; 12 | } 13 | 14 | void display() { 15 | image(octabbit, x, y, 128, 128); 16 | } 17 | 18 | void move() { 19 | if (keyPressed) { 20 | if (key == 'd' || key == 'D') { 21 | x += speed; 22 | } 23 | if (key == 'a' || key == 'A') { 24 | x -= speed; 25 | } 26 | if (key == 's' || key == 'S') { 27 | y += speed; 28 | } 29 | if (key == 'w' || key == 'W') { 30 | y -= speed; 31 | } 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # octabbit-rpg 2 | Octabbit will be an RPG game, featuring a rabbit with octopus-like tentacles. 3 | 4 | 5 | -------------------------------------------------------------------------------- /data/octabbi_movingt.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelkolesidis/octabbit-rpg/8eeb99c3d85a161909aa801851ecc28a55a0e206/data/octabbi_movingt.gif -------------------------------------------------------------------------------- /data/octabbit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelkolesidis/octabbit-rpg/8eeb99c3d85a161909aa801851ecc28a55a0e206/data/octabbit.png -------------------------------------------------------------------------------- /octabbit_rpg.pde: -------------------------------------------------------------------------------- 1 | Player player; 2 | Background background; 3 | 4 | void setup() { 5 | size(800, 600); 6 | player = new Player(); 7 | background = new Background(); 8 | noSmooth(); 9 | } 10 | 11 | void draw() { 12 | background.display(); 13 | player.display(); 14 | player.move(); 15 | } 16 | -------------------------------------------------------------------------------- /octabbit_screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelkolesidis/octabbit-rpg/8eeb99c3d85a161909aa801851ecc28a55a0e206/octabbit_screenshot.png --------------------------------------------------------------------------------