SI 2018 - Poisonous Plants

As an introduction to programming, this group from the 2018 Summer Honors Institute @ LIU developed an educational game that demonstrates their passion for and awareness of the environment.

Love what you see?

Check out their code on Scratch and GitHub.

// 0: Init State
// 1: Game State
// 2: Game-over State

int gameState = 0; // start at init state
PImage start; // storage of the start image
int round = 1; // Game should start at round 1
// Plant images vars
Plants plants; 
PImage one, two, three;
int posOne, posTwo, posThree;
// Win boolean
boolean win = false;

// During setup, some of the variables are initialized
void setup() {
  size(1024, 768);
  //fullScreen();
  start = loadImage("start.jpg");
  plants = new Plants();
  
... //see all source code on GitHub

© 2020. Some rights reserved.