Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

I have never made games into a qr code.

A topic by Steve Sajeev created Apr 15, 2021 Views: 267 Replies: 8
Viewing posts 1 to 2

My question is. Imagine, I made a game and these are the files I have

  • Index.html - Normal boilerplate with a canvas element with prop id = 'canvas'
  • style.css - Basic styling
  • app.js - Full game's brain

How will I put this into a QR code.

Host

You need to do it step by step.

  1. Incorporate the CSS file into the HTML file
  2. Use javascript commands to build the HTML file, for example you should use "document.createElement("canvas");" to make a canvas element.

Then how do you test or run the game without index.html?

Host

include a index.html file with the submission, that contains only a command that runs the js code

Nevermind. Do wheateader you want, as long as the entire js code fits and it's encoded into a qr code.

Hi, I made the game and its file size is just 2.0kb. But I couldnt convert it into a QR code, most web qr makers are crashing (Or my network is slow) shall I upload only the game files.

Index.htm - contains only script tag linking game.js

game.js      - Main game code, 2.00kb

Host

yes, you can do anything as long as the js code can be encoded into a qr code.

OK

Whaat! I just didnt submit the game on time. WHY IS THIS TO ME!!!!

Host

I'll make a second jam, and you'll upload it during the second jam