Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolution to issues #74 and #129 #156

Open
wants to merge 35 commits into
base: gh-pages
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
f422970
added new key bindings that print to console
bohu8 Nov 19, 2015
341d8d8
moved colour blind colours to a TOGGLE function, will impelment a tru…
bohu8 Nov 19, 2015
66e0237
some work done
bohu8 Nov 20, 2015
802284f
proof of concept for colour changing.
bohu8 Nov 20, 2015
54eec34
work done at school today
bohu8 Nov 21, 2015
05fc7bd
updated read
bohu8 Nov 21, 2015
22b7950
clean up readme file, refer to original push for info
bohu8 Nov 22, 2015
2cfaf19
implemented colour change, todo: fix test for colour change feature
bohu8 Nov 22, 2015
5467d68
the beginning of creating test cases
bohu8 Nov 22, 2015
ed61a3d
updated scenarios, added unit tests, extracted method to adjust speed…
bohu8 Nov 22, 2015
98cd9b0
updated wave generation to better be suited to speed changes
bohu8 Nov 22, 2015
05d301a
added 1.1 test for changing speed, update more later.
bohu8 Nov 22, 2015
2de7b07
need to update tests case, resume work later.
bohu8 Nov 22, 2015
049b60a
attempt at blanket
bohu8 Nov 23, 2015
61caf65
Added qunit tests for scenarios 1.2 to 1.4
xinwei-tee Nov 24, 2015
e9830ec
Added comments to doesBlockCollide. Refactoring to be performed (bloc…
xinwei-tee Nov 25, 2015
de23d3a
Added toggleDrop function in input.js: block drops immediately upon c…
xinwei-tee Nov 27, 2015
d689f50
Edited toggleDrop function
xinwei-tee Nov 28, 2015
2df0d52
drop only closest block to hex feature implemented
bohu8 Nov 29, 2015
c335a71
Updated scenarios for toggleDrop; Modified toggleDrop function to use…
xinwei-tee Nov 30, 2015
65fa3e9
assert that blocks are added to Hex, rewrite some test cases to confo…
bohu8 Nov 30, 2015
d82febb
more formal qunit tests for speeds.
bohu8 Dec 1, 2015
b351c46
removed unnecessary code
bohu8 Dec 1, 2015
f386eda
Fixing toggleSpeed issues, qunit tests has to be modified accordingly
Dec 1, 2015
3a63e49
Merge branch 'gh-pages' of https://github.com/bohuce/hextris into gh-…
Dec 1, 2015
1c26846
Revert "Fixing toggleSpeed issues, qunit tests has to be modified acc…
bohu8 Dec 2, 2015
c52d4c0
Fix issue that prevents game from becoming too slow
bohu8 Dec 2, 2015
346de82
fixed issues so game isnt too fast/slow
bohu8 Dec 2, 2015
4c97cde
removed unnecessary code
bohu8 Dec 2, 2015
e779497
fixed issue for game running too fast
bohu8 Dec 2, 2015
2dd1de7
Edit to toggleSpeed wavegen
Dec 2, 2015
e43d6d3
remove unnecessary comments
bohu8 Dec 2, 2015
761d802
Fixed qunit tests
bohu8 Dec 3, 2015
d2ad50a
Added readme.txt explaining the team's contributions and implementati…
Dec 6, 2015
14de33c
Update team06_readme.txt
bohuce Dec 6, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
some work done
bohu8 committed Nov 20, 2015
commit 66e0237c8aec1d951303348a073ec3472e1cc41c
6 changes: 6 additions & 0 deletions js/initialization.js
Original file line number Diff line number Diff line change
@@ -2,6 +2,12 @@ $(document).ready(function() {
initialize();
});
function initialize(a) {
// color blind mode variables
// max amount of color blind modes
window.maxColorBlindMode = 2;
window.currColorBlindMode = 0;


window.rush = 1;
window.lastTime = Date.now();
window.iframHasLoaded = false;
55 changes: 28 additions & 27 deletions js/input.js
Original file line number Diff line number Diff line change
@@ -102,40 +102,15 @@ function addKeyListeners() {
return false;
});

function togglecolor(){
console.log("Hit toggle colour method");
//window.colors = ["#8e44ad", "#f1c40f", "#3498db", "#d35400"];
window.colors = ["#ffffff", "#f1c40f", "#3498db", "#d35400"];
window.hexColorsToTintedColors = {
//"#8e44ad": "rgb(229,152,102)",
"#ffffff": "rgb(000,000,000)",
"#f1c40f": "rgb(246,223,133)",
"#3498db": "rgb(151,201,235)",
"#d35400": "rgb(210,180,222)"
};

window.rgbToHex = {
"rgb(142,68,173)": "#8e44ad",
"rgb(241,196,15)": "#f1c40f",
"rgb(52,152,219)": "#3498db",
"rgb(211,84,0)": "#d35400"
};

window.rgbColorsToTintedColors = {
"rgb(142,68,173)": "rgb(229,152,102)",
"rgb(241,196,15)": "rgb(246,223,133)",
"rgb(52,152,219)": "rgb(151,201,235)",
"rgb(46,204,113)": "rgb(210,180,222)"
};
}

$("#colorBlindBtn").on('touchstart mousedown', function() {
window.colors = ["#8e44ad", "#f1c40f", "#3498db", "#d35400"];

window.hexColorsToTintedColors = {
//"#8e44ad": "rgb(229,152,102)",
"#ffffff": "rgb(000,000,000)",
"#f1c40f": "rgb(246,223,133)",
"#000000": "rgp(000,000,000)",
//"#f1c40f": "rgb(246,223,133)",
"#3498db": "rgb(151,201,235)",
"#d35400": "rgb(210,180,222)"
};
@@ -240,3 +215,29 @@ function handleClickTap(x,y) {
}
}

function togglecolor(a){
console.log("Hit toggle colour method");
//window.colors = ["#8e44ad", "#f1c40f", "#3498db", "#d35400"];
window.colors = ["#ffffff", "#f1c40f", "#3498db", "#d35400"];
window.hexColorsToTintedColors = {
//"#8e44ad": "rgb(229,152,102)",
"#ffffff": "rgb(000,000,000)",
"#f1c40f": "rgb(246,223,133)",
"#3498db": "rgb(151,201,235)",
"#d35400": "rgb(210,180,222)"
};

window.rgbToHex = {
"rgb(142,68,173)": "#8e44ad",
"rgb(241,196,15)": "#f1c40f",
"rgb(52,152,219)": "#3498db",
"rgb(211,84,0)": "#d35400"
};

window.rgbColorsToTintedColors = {
"rgb(142,68,173)": "rgb(229,152,102)",
"rgb(241,196,15)": "rgb(246,223,133)",
"rgb(52,152,219)": "rgb(151,201,235)",
"rgb(46,204,113)": "rgb(210,180,222)"
};
}