Today I worked on the UIController and moved all the console.log calls. I am hoping this will make it easy when I transition to the browser. But first we need to create a real game controller to try to play several round until one player goes broke. Here is today’s coding session on youTube:
Author Archives: DeadSetAdmin
Create StreetDice Game Pt8
Sometimes you gotta show off what you are working on to a friend, and today after playing a (losing) game of League of Legends, I showed TooTallE what I have been up to lately. I was able to start the UIController as planned, and I built a try catch block into the bet process so […]
Create a StreetDice Game Pt7
Today my goal was to start moving what code we have into an MVC architecture or pattern. We needed to move several functions into the game object. I also reviewed an several year old game RPG Dice Battle for clues on how to create closures to control scope and started to clean up the current […]
Street Dice Pt 6
Today our goal is to update the function for the final value in our game debug menu which is resolveBet(). Last video we ran into an issue where we tried to nest a question in our debug interface. So what happened was when we selected to set the bet, we needed to then input a […]
Create Dice Game pt 5
Now that we have a game object we need to update all of our existing functions and modify our resolveDice() function so that it doesn’t loop. Here is the new resolveDice() function. Next I need to handle setting the bet and resolving the bet, then work on a game controller. And finally create a web […]
Create a Steet Dice Game Pt 4
Today we created a game object so we could use the result of the functions we were testing with the other functions. We created some methods to get and set object properties and we added a displayGameObject menu item. And we are now using the gameObject with the set shooter function and it appears to […]
Creating a Street Dice Game Pt3
Today I want to finish the functions on the interface and we need to determine how to pass data. I think we need to create a game object to pass into the functions for now until I understand more about scope. Here is what we have left to implement for the first set of functions: […]
Creating a Street Dice Game Pt2
Ok, since Creating a Street Dice Game Pt1 I realize I needed a testing interface, and I thought back to DOS batch files. When I was young and everything was run from command line, sometimes you wanted to boot a disk and run a program or you wanted a simple menu on boot and you […]
Creating a Street Dice Game Pt1
Today, I wanted to build a game and start a project from scratch. I decided on Street Dice. I decided on Street Dice because it has fixed rules and I think it is a perfect beginner project for my skill level. About a year and a half ago I created an RPG Dice Battle Game […]
Trying to Understand MongoDB Data Modelling
I am currently taking a node.js, express, and mongoDB bootcamp on Udemy by Jonas Schmedtmann https://www.udemy.com/course/nodejs-express-mongodb-bootcamp/ and I am struggling a bit to understand data modeling so today I rewatched the two class videos that cover this in detail, and took the following notes: Data Modeling Real world scenario -> Unstructured Data -> Structured, logical […]