Skip to content

Commit

Permalink
Removed old assets and trademarks from images
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcelo Lv Cabral committed Sep 8, 2019
1 parent 4931e1c commit 2f27c2a
Show file tree
Hide file tree
Showing 16 changed files with 7 additions and 174 deletions.
Binary file removed app/assets/3ballset.png
Binary file not shown.
Binary file removed app/assets/4ballset.png
Binary file not shown.
Binary file removed app/assets/5ballset.png
Binary file not shown.
Binary file removed app/assets/6ballset.png
Binary file not shown.
Binary file removed app/assets/8ballset.png
Binary file not shown.
65 changes: 0 additions & 65 deletions app/assets/bitmapset.xml

This file was deleted.

2 changes: 1 addition & 1 deletion app/css/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ body {

#channelInfo{
position: absolute;
left: 340px;
left: 320px;
top: 560px;
color: white;
z-index: 30;
Expand Down
Binary file removed app/images/AmigaBoingBall.png
Binary file not shown.
Binary file removed app/images/BallShadow.png
Binary file not shown.
Binary file added app/images/brightscript-tv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/images/roku-logo.png
Binary file not shown.
Binary file removed app/images/roku-tv.png
Binary file not shown.
Binary file removed app/images/sprite.png
Binary file not shown.
40 changes: 5 additions & 35 deletions app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,12 @@ fileSelector.onchange = function() {
var file = this.files[0];
var reader = new FileReader();
reader.onload = function(progressEvent) {
paths = [];
imgs = [];
txts = [];
source.push(this.result);
loadAssets(file.name);
paths.push({ url: "source/" + file.name, id: 0, type: "source" });
runChannel();
};
source = [];
if (brsWorker != undefined) {
Expand Down Expand Up @@ -259,38 +263,6 @@ function openChannelZip(f) {
);
}

function loadAssets(fileName) {
var loader = new Worker("app/loader.js");
var files = [];
files.push({ path: "images/sprite.png", type: "image/png" });
files.push({ path: "images/roku-logo.png", type: "image/png" });
files.push({ path: "images/AmigaBoingBall.png", type: "image/png" });
files.push({ path: "images/BallShadow.png", type: "image/png" });
files.push({ path: "assets/3ballset.png", type: "image/png" });
files.push({ path: "assets/4ballset.png", type: "image/png" });
files.push({ path: "assets/5ballset.png", type: "image/png" });
files.push({ path: "assets/6ballset.png", type: "image/png" });
files.push({ path: "assets/8ballset.png", type: "image/png" });
files.push({ path: "assets/bitmapset.xml", type: "text/xml" });
loader.onmessage = function(e) {
paths = [];
imgs = [];
txts = [];
e.data.forEach(file => {
paths.push(file.path);
if (file.bmp) {
imgs.push(file.bmp);
} else {
txts.push(file.txt);
}
});
loader.terminate();
paths.push({ url: "source/" + fileName, id: 0, type: "source" });
runChannel();
};
loader.postMessage({ assets: files });
}

function runChannel() {
ctx.fillStyle = "rgba(0, 0, 0, 1)";
ctx.fillRect(0, 0, display.width, display.height);
Expand Down Expand Up @@ -326,9 +298,7 @@ function drawCanvas() {
ctx.drawImage(bufferCanvas, 0, 0, screenSize.width, screenSize.height);
dirty = false;
}
//requestAnimationFrame(drawCanvas);
}
//requestAnimationFrame(drawCanvas);

function keyDownHandler(event) {
if (event.keyCode == 8) {
Expand Down
72 changes: 0 additions & 72 deletions app/loader.js

This file was deleted.

2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<hr>
</h2>
<div style="position: relative; left: 0px; top: 0px">
<img class="img" src="app/images/roku-tv.png" width="1252" height="650"/>
<img class="img" src="app/images/brightscript-tv.png" width="1252" height="650"/>
<canvas id="display" width="854px" height="480px"></canvas>
<a href="#" onclick="loadZip('channels/Prince-of-Persia-Roku-015.zip')">
<img id="channel1" src="app/images/prince-of-persia-icon.png" title="Open Prince of Persia game channel"/>
Expand Down

0 comments on commit 2f27c2a

Please sign in to comment.