This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function hideHint(){ | |
$(".hint").hide(); | |
$("#helpButton").removeClass("active"); | |
$(document).off("click", hideHint); | |
return false; | |
} | |
function showHint(){ | |
window.setTimeout(function () { $(document).on("click", hideHint) }, 500); | |
$(".hint").show(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function loadScene(event){ | |
event.preventDefault(); | |
currentScene = sceneId; | |
var element = $(event.target); | |
var sceneId = element.data('targetScene'); | |
var scene_html = JST['views/'+sceneId+'.hbs'](); | |
var menu_html = JST['views/mainQmenu.hbs'](); | |
$('body').html(scene_html); | |
$('body').prepend(menu_html); | |
initWidgets($('#mainQmenu')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var width = 1000; | |
var height = 540; | |
var inputs = 8; | |
var space_per_input = 15; | |
var space_per_output = 20; | |
var wire_length = 20; | |
var core_bg_color = '#c0c0c0'; | |
var core_border_color = 'black'; | |
var core_border_width = 2; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--Start run listener initiated | |
--setting up environment and level | |
setHero(act.character) | |
setUpAnimations(hero) | |
hero.run() | |
hero.runningSprite.collision = onCharCollision | |
--setup Hero’s animations | |
timer.performWithDelay(100, function() | |
local vx, vy = hero.runningSprite:getLinearVelocity() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>CARD CRAWL CLONE</title> | |
<style> | |
body { | |
text-align: center; | |
} | |
table { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import {render, fireEvent, cleanup} from 'react-testing-library'; | |
import 'jest-dom/extend-expect'; | |
import * as dom from 'dom-testing-library'; | |
import App from './App'; | |
const nextTick = () => new Promise(r => process.nextTick(r)); | |
let capSearchResult = { | |
"code": 200, | |
"status": "Ok", |