opening TIC-80 sources

This commit is contained in:
BADIM-PC\Vadim
2017-09-26 09:59:34 +03:00
parent b003d8f56f
commit e502b89a1d
325 changed files with 186092 additions and 11 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
lib/arm/libSDL2.a Normal file

Binary file not shown.

BIN
lib/arm/libgif.a Normal file

Binary file not shown.

BIN
lib/arm/liblua.a Normal file

Binary file not shown.

BIN
lib/emscripten/libgif.a Normal file

Binary file not shown.

BIN
lib/emscripten/liblua.a Normal file

Binary file not shown.

BIN
lib/emscripten/libz.a Normal file

Binary file not shown.

37
lib/emscripten/prejs.js Normal file
View File

@@ -0,0 +1,37 @@
window.addEventListener("keydown", function(e)
{
if((e.ctrlKey && [82].indexOf(e.keyCode) > -1) || ([8, 27, 33, 34, 35, 36, 37, 38, 39, 40, 122, 58, 59, 60, 61, 62].indexOf(e.keyCode) > -1)) e.preventDefault();
}, false);
Module.saveAs = Module.saveAs||function(e){"use strict";if(typeof e==="undefined"||typeof navigator!=="undefined"&&/MSIE [1-9]\./.test(navigator.userAgent)){return}var t=e.document,n=function(){return e.URL||e.webkitURL||e},r=t.createElementNS("http://www.w3.org/1999/xhtml","a"),o="download"in r,i=function(e){var t=new MouseEvent("click");e.dispatchEvent(t)},a=/constructor/i.test(e.HTMLElement),f=/CriOS\/[\d]+/.test(navigator.userAgent),u=function(t){(e.setImmediate||e.setTimeout)(function(){throw t},0)},d="application/octet-stream",s=1e3*40,c=function(e){var t=function(){if(typeof e==="string"){n().revokeObjectURL(e)}else{e.remove()}};setTimeout(t,s)},l=function(e,t,n){t=[].concat(t);var r=t.length;while(r--){var o=e["on"+t[r]];if(typeof o==="function"){try{o.call(e,n||e)}catch(i){u(i)}}}},p=function(e){if(/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)){return new Blob([String.fromCharCode(65279),e],{type:e.type})}return e},v=function(t,u,s){if(!s){t=p(t)}var v=this,w=t.type,m=w===d,y,h=function(){l(v,"writestart progress write writeend".split(" "))},S=function(){if((f||m&&a)&&e.FileReader){var r=new FileReader;r.onloadend=function(){var t=f?r.result:r.result.replace(/^data:[^;]*;/,"data:attachment/file;");var n=e.open(t,"_blank");if(!n)e.location.href=t;t=undefined;v.readyState=v.DONE;h()};r.readAsDataURL(t);v.readyState=v.INIT;return}if(!y){y=n().createObjectURL(t)}if(m){e.location.href=y}else{var o=e.open(y,"_blank");if(!o){e.location.href=y}}v.readyState=v.DONE;h();c(y)};v.readyState=v.INIT;if(o){y=n().createObjectURL(t);setTimeout(function(){r.href=y;r.download=u;i(r);h();c(y);v.readyState=v.DONE});return}S()},w=v.prototype,m=function(e,t,n){return new v(e,t||e.name||"download",n)};if(typeof navigator!=="undefined"&&navigator.msSaveOrOpenBlob){return function(e,t,n){t=t||e.name||"download";if(!n){e=p(e)}return navigator.msSaveOrOpenBlob(e,t)}}w.abort=function(){};w.readyState=w.INIT=0;w.WRITING=1;w.DONE=2;w.error=w.onwritestart=w.onprogress=w.onwrite=w.onabort=w.onerror=w.onwriteend=null;return m}(typeof self!=="undefined"&&self||typeof window!=="undefined"&&window||this.content);if(typeof module!=="undefined"&&module.exports){module.exports.saveAs=saveAs}else if(typeof define!=="undefined"&&define!==null&&define.amd!==null){define([],function(){return saveAs})};
Module.showAddPopup = function(callback)
{
var modal = document.getElementById('add-modal');
var span = document.getElementsByClassName("close")[0];
modal.style.display = "block";
function cancel(){modal.style.display = "none"; callback(null, null);}
span.onclick = cancel;
window.onclick = function(event) {if (event.target == modal) cancel();}
var uploadInput = document.getElementById('upload-input');
uploadInput.onchange = function()
{
var file = uploadInput.files[0];
if(!file) return;
var reader = new FileReader();
reader.onload = function(event)
{
var rom = new Uint8Array(event.target.result);
callback(file.name, rom);
uploadInput.value = "";
modal.style.display = "none";
};
reader.readAsArrayBuffer(file);
};
};

BIN
lib/linux/libSDL2.a Normal file

Binary file not shown.

BIN
lib/linux/libgif.a Normal file

Binary file not shown.

BIN
lib/linux/liblua.a Normal file

Binary file not shown.

BIN
lib/linux/libz.a Normal file

Binary file not shown.

BIN
lib/linux32/libSDL2.a Normal file

Binary file not shown.

BIN
lib/linux32/libgif.a Normal file

Binary file not shown.

BIN
lib/linux32/liblua.a Normal file

Binary file not shown.

BIN
lib/macos/libSDL2.a Normal file

Binary file not shown.

BIN
lib/macos/libgif.a Normal file

Binary file not shown.

BIN
lib/macos/liblua.a Normal file

Binary file not shown.

BIN
lib/mingw/icon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

BIN
lib/mingw/libSDL2.dll.a Normal file

Binary file not shown.

BIN
lib/mingw/libSDL2main.a Normal file

Binary file not shown.

BIN
lib/mingw/libgif.a Normal file

Binary file not shown.

BIN
lib/mingw/liblua.a Normal file

Binary file not shown.

BIN
lib/mingw/libz.a Normal file

Binary file not shown.

1
lib/mingw/res.rc Normal file
View File

@@ -0,0 +1 @@
0 ICON icon.ico

BIN
lib/windows/SDL2.lib Normal file

Binary file not shown.

BIN
lib/windows/SDL2main.lib Normal file

Binary file not shown.

BIN
lib/windows/icon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

BIN
lib/windows/resource.h Normal file

Binary file not shown.

BIN
lib/windows/tic.rc Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.