Skip to content

Commit

Permalink
Toggle release mode. Remove Scene Selection links when in release mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
meldckn committed Feb 27, 2018
1 parent ef8f31c commit b6dfee9
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 44 deletions.
52 changes: 26 additions & 26 deletions Coordinator/Coordinator.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
define(["Display", "StoryDisplay", "State", "ChunkLibrary", "Wishlist", "StoryAssembler", "Templates", "Character","Game", "Hanson", "text!travelData", "text!workerData", "text!lectureData", "text!dinnerData", "text!generalistData", "text!newExampleData", "text!undergradDinnerData_talon", "text!undergradDinnerData_irapopor", "text!undergradDinnerData_sgadsby", "text!undergradDean_sgadsby", "text!undergradDean_talon", "text!undergradDean_irapopor", "text!undergradLecture_kply", "text!undergradLecture_sjsherma", "text!undergradTravel_sjsherma", "text!undergradTravel_kply", "text!undergradFamilyDinner_sgadsby", "text!undergradFamilyDinner_talon","text!undergradFamilyDinner_irapopor", "text!undergradUN_kply", "text!undergradUN_talon", "text!undergradUN_irapopor", "text!undergradBeach_madreed", "text!undergradBeach_sjsherma", "text!undergradBeach_sgadsby", "text!undergradFaculty_kply", "text!undergradFaculty_madreed", "text!undergradFaculty_sjsherma", "text!sjsherma_testfile","text!madreed_testfile", "text!talon_testfile","text!sgadsby_testfile","text!kply_testfile","text!irapopor_testfile", "text!finalDinner", "text!finalLecture", "text!finalDean", "text!finalTravel", "text!finalFamilyDinner", "text!finalUN", "text!finalBeach", "text!finalFaculty", "text!globalData"], function(Display, StoryDisplay, State, ChunkLibrary, Wishlist, StoryAssembler, Templates, Character, Game, Hanson, travelData, workerData, lectureData, dinnerData, generalistData, newExampleData, undergradDinnerData_talon, undergradDinnerData_irapopor, undergradDinnerData_sgadsby, undergradDean_sgadsby, undergradDean_talon, undergradDean_irapopor, undergradLecture_kply, undergradLecture_sjsherma, undergradTravel_sjsherma, undergradTravel_kply, undergradFamilyDinner_sgadsby, undergradFamilyDinner_talon, undergradFamilyDinner_irapopor, undergradUN_kply, undergradUN_talon, undergradUN_irapopor, undergradBeach_madreed, undergradBeach_sjsherma, undergradBeach_sgadsby, undergradFaculty_kply, undergradFaculty_madreed, undergradFaculty_sjsherma, sjsherma_testfile, madreed_testfile, talon_testfile, sgadsby_testfile, kply_testfile, irapopor_testfile, finalDinner, finalLecture, finalDean, finalTravel, finalFamilyDinner, finalUN, finalBeach, finalFaculty, globalData) {

var gameVersion = "no"; //if "release", will disable testing buttons and gears etc
var gameVersion = "release"; //if "release", will disable testing buttons and gears etc
var recordPlaythroughs = true;

/*
Expand Down Expand Up @@ -2552,31 +2552,31 @@ define(["Display", "StoryDisplay", "State", "ChunkLibrary", "Wishlist", "StoryAs
"GameGenerator/ASP_cleaned/games/lecture_attractMode_23.lp",
"GameGenerator/ASP_cleaned/games/lecture_attractMode_24.lp",
"GameGenerator/ASP_cleaned/games/lecture_attractMode_25.lp",
"GameGenerator/ASP_cleaned/games/lecture_scrubMode_1.lp",
"GameGenerator/ASP_cleaned/games/lecture_scrubMode_2.lp",
"GameGenerator/ASP_cleaned/games/lecture_scrubMode_3.lp",
"GameGenerator/ASP_cleaned/games/lecture_scrubMode_4.lp",
"GameGenerator/ASP_cleaned/games/lecture_scrubMode_5.lp",
"GameGenerator/ASP_cleaned/games/lecture_scrubMode_6.lp",
"GameGenerator/ASP_cleaned/games/lecture_scrubMode_7.lp",
"GameGenerator/ASP_cleaned/games/lecture_scrubMode_8.lp",
"GameGenerator/ASP_cleaned/games/lecture_scrubMode_9.lp",
"GameGenerator/ASP_cleaned/games/lecture_scrubMode_10.lp",
"GameGenerator/ASP_cleaned/games/lecture_scrubMode_11.lp",
"GameGenerator/ASP_cleaned/games/lecture_scrubMode_12.lp",
"GameGenerator/ASP_cleaned/games/lecture_scrubMode_13.lp",
"GameGenerator/ASP_cleaned/games/lecture_scrubMode_14.lp",
"GameGenerator/ASP_cleaned/games/lecture_scrubMode_15.lp",
"GameGenerator/ASP_cleaned/games/lecture_scrubMode_16.lp",
"GameGenerator/ASP_cleaned/games/lecture_scrubMode_17.lp",
"GameGenerator/ASP_cleaned/games/lecture_scrubMode_18.lp",
"GameGenerator/ASP_cleaned/games/lecture_scrubMode_19.lp",
"GameGenerator/ASP_cleaned/games/lecture_scrubMode_20.lp",
"GameGenerator/ASP_cleaned/games/lecture_scrubMode_21.lp",
"GameGenerator/ASP_cleaned/games/lecture_scrubMode_22.lp",
"GameGenerator/ASP_cleaned/games/lecture_scrubMode_23.lp",
"GameGenerator/ASP_cleaned/games/lecture_scrubMode_24.lp",
"GameGenerator/ASP_cleaned/games/lecture_scrubMode_25.lp",
//"GameGenerator/ASP_cleaned/games/lecture_scrubMode_1.lp",
//"GameGenerator/ASP_cleaned/games/lecture_scrubMode_2.lp",
//"GameGenerator/ASP_cleaned/games/lecture_scrubMode_3.lp",
//"GameGenerator/ASP_cleaned/games/lecture_scrubMode_4.lp",
//"GameGenerator/ASP_cleaned/games/lecture_scrubMode_5.lp",
//"GameGenerator/ASP_cleaned/games/lecture_scrubMode_6.lp",
//"GameGenerator/ASP_cleaned/games/lecture_scrubMode_7.lp",
//"GameGenerator/ASP_cleaned/games/lecture_scrubMode_8.lp",
//"GameGenerator/ASP_cleaned/games/lecture_scrubMode_9.lp",
//"GameGenerator/ASP_cleaned/games/lecture_scrubMode_10.lp",
//"GameGenerator/ASP_cleaned/games/lecture_scrubMode_11.lp",
//"GameGenerator/ASP_cleaned/games/lecture_scrubMode_12.lp",
//"GameGenerator/ASP_cleaned/games/lecture_scrubMode_13.lp",
//"GameGenerator/ASP_cleaned/games/lecture_scrubMode_14.lp",
//"GameGenerator/ASP_cleaned/games/lecture_scrubMode_15.lp",
//"GameGenerator/ASP_cleaned/games/lecture_scrubMode_16.lp",
//"GameGenerator/ASP_cleaned/games/lecture_scrubMode_17.lp",
//"GameGenerator/ASP_cleaned/games/lecture_scrubMode_18.lp",
//"GameGenerator/ASP_cleaned/games/lecture_scrubMode_19.lp",
//"GameGenerator/ASP_cleaned/games/lecture_scrubMode_20.lp",
//"GameGenerator/ASP_cleaned/games/lecture_scrubMode_21.lp",
//"GameGenerator/ASP_cleaned/games/lecture_scrubMode_22.lp",
//"GameGenerator/ASP_cleaned/games/lecture_scrubMode_23.lp",
//"GameGenerator/ASP_cleaned/games/lecture_scrubMode_24.lp",
//"GameGenerator/ASP_cleaned/games/lecture_scrubMode_25.lp",
"GameGenerator/ASP_cleaned/games/lecture_drawMode_1.lp",
"GameGenerator/ASP_cleaned/games/lecture_drawMode_2.lp",
"GameGenerator/ASP_cleaned/games/lecture_drawMode_3.lp",
Expand Down
8 changes: 4 additions & 4 deletions GameGenerator/js/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ define(["Phaser", "StoryAssembler", "AspPhaserGenerator"], function(Phaser, Stor
var runGenerator = function(gameSpec, aspGame, aspGameInstructions, initialPhaserFile, useGamestring, introGame){
var phaserProgram = AspPhaserGenerator.compile (aspGame, initialPhaserFile, true);

console.log("------------------------------");
console.log("Finished Phaser game:");
console.log(phaserProgram);
console.log("------------------------------");
//console.log("------------------------------");
//console.log("Finished Phaser game:");
//console.log(phaserProgram);
//console.log("------------------------------");

if (typeof game !== "undefined") { //if we're refreshing the game we need to clean up the old one
game.destroy();
Expand Down
31 changes: 17 additions & 14 deletions js/Display.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,21 +92,24 @@ define(["Game", "jsonEditor", "HealthBar", "text!avatars", "jQuery", "jQueryUI"]

var offset = "0px;"
if (Coordinator.gameVersion == "release") {offset = "300px"; }
$('<h2/>', {
text: 'Scene Selection',
id: 'sceneSelectTitle',
style: 'margin-top:' + offset
}).appendTo('body');


// For each scene, make a link to start it.
scenes.forEach(function(scene, pos) {
var el = makeLink(_Coordinator, scene, scene, "#");
$('body').append(el);
$('body').append("<div id='hiddenKnobs'></div>");
createKnobs(scene, "hiddenKnobs");
populateKnobs(scene, _Coordinator, _State, scenes);
});
if (Coordinator.gameVersion != "release") {

$('<h2/>', {
text: 'Scene Selection',
id: 'sceneSelectTitle',
style: 'margin-top:' + offset
}).appendTo('body');

// For each scene, make a link to start it.
scenes.forEach(function(scene, pos) {
var el = makeLink(_Coordinator, scene, scene, "#");
$('body').append(el);
$('body').append("<div id='hiddenKnobs'></div>");
createKnobs(scene, "hiddenKnobs");
populateKnobs(scene, _Coordinator, _State, scenes);
});
}

$('<div/>', {
id: 'blackout'
Expand Down

0 comments on commit b6dfee9

Please sign in to comment.