Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
A jam submission

Order Up!!!View game page

Made for LCD jam
Submitted by lgeoinc — 4 hours, 25 minutes before the deadline

Play (click it twice)

Order Up!!!'s itch.io page

Results

CriteriaRankScore*Raw Score
Gameplay#112.1252.125
Graphics#122.0002.000
Winner#141.6251.625
Sound#141.3751.375

Ranked from 8 ratings. Score is adjusted from raw score by the median number of ratings per game in the jam.

Source Code
<html>
<canvas id="gamecanvas" width="260" height="162"> </canvas>
<script>
var Butt1 = "#999999";
var Butt2 = "#999999";
var welcome = 1;
var wonp = 1;
var lostp = 1;
var canvas = document.getElementById("gamecanvas");
var ccontext = canvas.getContext("2d");
var fps = 10;
var stage = 1;
var try1 = 2;
var try2 = 2;
var try3 = 2;
var try4 = 2;
var order1 = Rnd(1,3);
var order2 = Rnd(1,3);
var order3 = Rnd(1,3);
var order4 = Rnd(1,3);
var succ1;
var succ2;
var succ3;
var succ4;
var suck;

var pic = new Image();
pic.src = "https://img.itch.zone/aW1hZ2UvMjU0NTM0LzEyMTkyNDEucG5n/250x600/DES%2Bpb.png";
pic.addEventListener("load", function(){ccontext.drawImage(pic,0,0)}, true);

var pic2 = new Image();
pic2.src = "https://img.itch.zone/aW1hZ2UvMjU0NTM0LzEyMTkyNDIucG5n/250x600/XXNSLA.png";
pic2.addEventListener("load", function(){ccontext.drawImage(pic2,0,0)}, true);

var ball = new Image();
ball.src = "https://img.itch.zone/aW1hZ2UvMjU0NTM0LzEyMTkyNDMucG5n/250x600/sSiPtU.png";
ball.addEventListener("load", function(){ccontext.drawImage(ball,0,0)}, true);

var ball2 = new Image();
ball2.src = "https://img.itch.zone/aW1hZ2UvMjU0NTM0LzEyMTkyNDQucG5n/250x600/6ZRZGi.png";
ball2.addEventListener("load", function(){ccontext.drawImage(ball2,0,0)}, true);

window.addEventListener("keyup", checkKeyPress, false);
function checkKeyPress(key) {
if (key.keyCode == "65") {
welcome = 10;
revive();
}
if (key.keyCode == "68" && stage != 5) {
stage = stage + 1;
Butt2 = "#666666";
}
if (key.keyCode == "68" && stage == 5) {
Butt2 = "#666666";
endgame();
}



if (key.keyCode == "83" && stage == 1) {
try1 = 1;
Butt1 = "#666666";
}
if (key.keyCode == "83" && stage == 2) {
try2 = 1;
Butt1 = "#666666";
}
if (key.keyCode == "83" && stage == 3) {
try3 = 1;
Butt1 = "#666666";
}
if (key.keyCode == "83" && stage == 4) {
try4 = 1;
Butt1 = "#666666";
}
}

function rebutt() {
Butt1 = "#999999";
Butt2 = "#999999";
}

function endgame(){
if(suck == 4){
wonp = 2;
}else{
lostp = 2;
}
}

function won(){
crect(50,10,160,144,"#e5e5e5");
txt("You Won!",90,60,"white", "20px arial")
txt("Press A button",90,80,"white", "12px arial")
txt("to continue playing",80,95,"white", "12px arial")
}
function lost(){
crect(50,10,160,144,"#e5e5e5");
txt("You Lost!",90,60,"white", "20px arial")
txt("Press A button",90,80,"white", "12px arial")
txt("to continue playing",80,95,"white", "12px arial")
}

window.onload = function() {
setInterval(welcomecheck,1000/300);
setInterval(rebutt,1000/3);
}

function welcomecheck() {
if(welcome == 1){
render();
welcomes();
}else{
render();
}
}

function welcomes(){
crect(50,10,160,144,"#e5e5e5");
txt("Welcome!",90,60,"white", "20px arial")
txt("play with D and S buttons",60,80,"white", "12px arial")
txt("Press A to start game",70,95,"white", "12px arial")
txt("EnjoY!",100,120,"white", "20px arial")
}

function revive(){
Butt1 = "#999999";
Butt2 = "#999999";
wonp = 1;
lostp = 1;
fps = 10;
stage = 1;
try1 = 2;
try2 = 2;
try3 = 2;
try4 = 2;
order1 = Rnd(1,3);
order2 = Rnd(1,3);
order3 = Rnd(1,3);
order4 = Rnd(1,3);
}

function render(){
suck = succ1 + succ2 + succ3 + succ4;
succ1 = order1/try1;
succ2 = order2/try2;
succ3 = order3/try3;
succ4 = order4/try4;
crect(0,0,260,163,"#323232");
crect(3,10,50,144,"red");
crect(210,10,47,144,"red");
button1(25,50,15)
txt("S",17,60,"black", "25px arial")
button2(235,95,15)
txt("D",227,105,"black", "25px arial")
crect(47,7,166,150,"#323232");
crect(50,10,160,144,"#e5e5e5");
crect(65,10,15,50,"#999999");
crect(60,60,25,10,"#7f7f7f");
crect(95,10,15,50,"#999999");
crect(90,60,25,10,"#7f7f7f");
crect(125,10,15,50,"#999999");
crect(120,60,25,10,"#7f7f7f");
crect(155,10,15,50,"#999999");
crect(150,60,25,10,"#7f7f7f");
crect(50,104,135,6,"#666666");


//orderbar

crect(50,129,160,25,"#999999");
if(order1 == 1){
ccontext.drawImage(ball2,125,132,20,20);
}else{
ccontext.drawImage(ball,125,132,20,20);
}


if(order2 == 1){
ccontext.drawImage(ball2,145,132,20,20);
}else{
ccontext.drawImage(ball,145,132,20,20);
}


if(order3 == 1){
ccontext.drawImage(ball2,165,132,20,20);
}else{
ccontext.drawImage(ball,165,132,20,20);
}


if(order4 == 1){
ccontext.drawImage(ball2,185,132,20,20);
}else{
ccontext.drawImage(ball,185,132,20,20);
}
txt("Order:",60,148,"white", "20px arial")


//well

if(stage == 1){
ccontext.drawImage(pic,60,90,25,25);
console.log(succ1);
}else{
ccontext.drawImage(pic2,60,90,25,25);
}
if(stage == 2){
ccontext.drawImage(pic,90,90,25,25);
console.log(succ1);
}else{
ccontext.drawImage(pic2,90,90,25,25);
}
if(stage == 3){
ccontext.drawImage(pic,120,90,25,25);
console.log(succ2);
}else{
ccontext.drawImage(pic2,120,90,25,25);
}
if(stage == 4){
ccontext.drawImage(pic,150,90,25,25);
console.log(succ3);
}else{
ccontext.drawImage(pic2,150,90,25,25);
}
if(wonp == 2){ won();}
if(lostp == 2){ lost();}
}

//Engine
function crect(Xpos,Ypos,width,height,color) {
ccontext.fillStyle = color;
ccontext.fillRect(Xpos,Ypos,width,height);
}
function Rnd(min, max) {
return Math.floor(Math.random() * (max - min) ) + min;
}
function button1(Xpos,Ypos,diameter,) {
ccontext.beginPath();
ccontext.arc(Xpos,Ypos,diameter,0,2*Math.PI);
ccontext.fillStyle = Butt1;
ccontext.fill();

}
function button2(Xpos,Ypos,diameter,) {
ccontext.beginPath();
ccontext.arc(Xpos,Ypos,diameter,0,2*Math.PI);
ccontext.fillStyle = Butt2;
ccontext.fill();

}
function txt(text,x,y,color,size){
ccontext.font = size;
ccontext.fillStyle = color;
ccontext.fillText(text, x, y);
}
</script>
</html>

Leave a comment

Log in with itch.io to leave a comment.

Comments

HostSubmitted

Solid entry, but to make it into a finished game, it would need at least a time limit and a continuous gameloop. Otherwise it works good as a Handheld Electronic Game, or better: a Gameboy emulation of it.

DeveloperSubmitted(+1)

Thx man. I will rebuild it and make it better next weekend.

Submitted(+1)

I solved it, but I have no idea how ^^

Submitted(+1)

You broke the Internet with that (click it twice) :)

DeveloperSubmitted(+1)

My playtesters reported that non of the buttons worked.  :) so I made sure everyone would click game twice