Code edit (5 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'anchor')' in or related to this line: 'scoreTxt.anchor.set(0.5, 0);' Line Number: 132
Code edit (2 edits merged)
Please save this source code
User prompt
when a word is correct, remove it from the levels[currentLevel].words array
Code edit (1 edits merged)
Please save this source code
Code edit (15 edits merged)
Please save this source code
User prompt
make a small star explosion on the blackboard when a word is correct
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Uncaught ReferenceError: blackBoardText is not defined' in or related to this line: 'blackBoardArr.push(blackBoardText);' Line Number: 129
Code edit (1 edits merged)
Please save this source code
User prompt
when a submitted word is incorrect, destroy the letters on the blackboard and reset the lettertiles to alpha 1 and being clickable
Code edit (17 edits merged)
Please save this source code
User prompt
when a submitted word is correct, add 1 point of score for each letter in the word and update a scorelabel with the new score
Code edit (3 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'letters')' in or related to this line: 'return levels[currentLevel].letters;' Line Number: 214
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Uncaught ReferenceError: levels is not defined' in or related to this line: 'return levels[currentLevel];' Line Number: 240
Code edit (5 edits merged)
Please save this source code
User prompt
please populate the levels array with 10 sets of 3 letters and the words these can spell out
User prompt
each level should have it's letters, but also a set of acceptable words. please make a structure for that.
Code edit (8 edits merged)
Please save this source code
User prompt
once the first letter on each level is clicked, a submit button shoud appear below the leters
User prompt
once a letter is clicked, it should become 0.5 alpha and unclickable
User prompt
please adda black outline to backboardtext
Code edit (1 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -174,9 +174,10 @@
words: ['OPT', 'TOP', 'POT']
}, {
letters: ['A', 'E', 'R'],
words: ['EAR', 'ARE', 'ERA']
-}, {
+}];
+var levels4 = [{
letters: ['E', 'C', 'A', 'R'],
words: ['ACRE', 'CARE', 'RACE', 'ACER']
}, {
letters: ['E', 'S', 'N', 'T'],
@@ -187,25 +188,47 @@
}, {
letters: ['S', 'D', 'E', 'U'],
words: ['DUES', 'SUED', 'USED']
}, {
- letters: ['E', 'L', 'A', 'M'],
- words: ['LAME', 'MALE', 'MEAL']
+ letters: ['P', 'S', 'A', 'N'],
+ words: ['NAPS', 'SNAP', 'PANS', 'SPAN']
}, {
- letters: ['E', 'L', 'A', 'M'],
- words: ['LAME', 'MALE', 'MEAL']
+ letters: ['A', 'L', 'R', 'I'],
+ words: ['LAIR', 'LIAR', 'RAIL']
+}];
+var levels5 = [{
+ letters: ['T', 'D', 'E', 'I'],
+ words: ['DIET', 'EDIT', 'TIDE', 'TIED']
}, {
- letters: ['E', 'L', 'A', 'M'],
- words: ['LAME', 'MALE', 'MEAL']
+ letters: ['T', 'E', 'L', 'A', 'R'],
+ words: ['ALTER', 'ALTER', 'LATER']
+}, {
+ letters: ['E', 'S', 'M', 'L', 'I'],
+ words: ['LIMES', 'SMILE', 'MILES', 'SLIME']
+}, {
+ letters: ['S', 'R', 'T', 'I', 'E'],
+ words: ['RITES', 'TIERS', 'TRIES', 'TIRES']
+}, {
+ letters: ['P', 'S', 'A', 'E', 'H'],
+ words: ['HEAPS', 'SHAPE', 'PHASE']
+}, {
+ letters: ['O', 'D', 'Y', 'R', 'W'],
+ words: ['DOWRY', 'ROWDY', 'WORDY']
+}, {
+ letters: ['E', 'B', 'O', 'R', 'S'],
+ words: ['BORES', 'ROBES', 'SOBER']
+}, {
+ letters: ['P', 'L', 'E', 'S', 'O'],
+ words: ['LOPES', 'POLES', 'SLOPE']
}];
// Initialize the first level's letters and show level 1 when the game starts
var currentLevel = 0;
var letters = getLettersForCurrentLevel();
displayLettersInLine();
// Current level index
// Function to get letters for the current level
function getLettersForCurrentLevel() {
- return levels[currentLevel];
+ return levels[currentLevel].letters;
}
// Initialize variables
// Update function
game.update = function () {
A smooth, clean, blank and empty scrabble tile for a game.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A clean, warm and welcoming classroom in a school, facing the blackboard.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A small golden star. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.