After only five hours of sleep last night, I went back to bed for a few more hours once Tommy and Kel left for work. Now I’m at my computer, coding, and debating what to have for lunch. I’m already hungry, but I still have an hour and a half to wait before I can eat.
I really need to get my eating habits together. Today, lunch was… two waffles. That’s it. Not even with eggs or anything on the side—just waffles. It’s one of those days where I look back and think, “Wow, that probably wasn’t the most balanced choice.” I know I should do better, but sometimes convenience wins over nutrition.
In October, we’re taking a short trip that Tommy organized, and he invited Kel and me to join. I don’t know many details yet, but I’ll share more once I find out. Also, that month, Kel and Karissa are heading to San Diego for TwitchCon—Karissa is attending, and Kel is tagging along. While they’re gone, Tommy and I plan to see a movie. I can’t remember which one, but I’m excited!
I’m going to put away the laundry I washed yesterday. I’m not sure what’s for dinner tonight—maybe tacos, since it’s Tuesday. Taco Tuesday, lol.
I haven’t talked about coding in a while. Here is what we have so far in the role-playing game. This is just the script side, not the HTML. This code is almost done. It’s fun.
let xp = 0; let health = 100; let gold = 50; let currentWeaponIndex = 0; let fighting; let monsterHealth; let inventory = ["stick"]; const button1 = document.querySelector('#button1'); const button2 = document.querySelector("#button2"); const button3 = document.querySelector("#button3"); const text = document.querySelector("#text"); const xpText = document.querySelector("#xpText"); const healthText = document.querySelector("#healthText"); const goldText = document.querySelector("#goldText"); const monsterStats = document.querySelector("#monsterStats"); const monsterName = document.querySelector("#monsterName"); const monsterHealthText = document.querySelector("#monsterHealth"); const weapons = [ { name: 'stick', power: 5 }, { name: 'dagger', power: 30 }, { name: 'claw hammer', power: 50 }, { name: 'sword', power: 100 } ]; const monsters = [ { name: "slime", level: 2, health: 15 }, { name: "fanged beast", level: 8, health: 60 }, { name: "dragon", level: 20, health: 300 } ] const locations = [ { name: "town square", "button text": ["Go to store", "Go to cave", "Fight dragon"], "button functions": [goStore, goCave, fightDragon], text: "You are in the town square. You see a sign that says \"Store\"." }, { name: "store", "button text": ["Buy 10 health (10 gold)", "Buy weapon (30 gold)", "Go to town square"], "button functions": [buyHealth, buyWeapon, goTown], text: "You enter the store." }, { name: "cave", "button text": ["Fight slime", "Fight fanged beast", "Go to town square"], "button functions": [fightSlime, fightBeast, goTown], text: "You enter the cave. You see some monsters." }, { name: "fight", "button text": ["Attack", "Dodge", "Run"], "button functions": [attack, dodge, goTown], text: "You are fighting a monster." }, { name: "kill monster", "button text": ["Go to town square", "Go to town square", "Go to town square"], "button functions": [goTown, goTown, goTown], text: 'The monster screams "Arg!" as it dies. You gain experience points and find gold.' } ]; // initialize buttons button1.onclick = goStore; button2.onclick = goCave; button3.onclick = fightDragon;





