Skip to main content

Making games with Javascript

Video Game Making


I liked video games as a kid; who didn't? My all-time favorite is Super Mario Bros. 3. I rarely play video games anymore.  However, I decided I wanted to learn to make a video game to impress my children and brush up on Javascript.

My daughters are too young to spend a lot of time in front of a screen or play video games. But sometimes they do. And when they do, the games are very simple and educational. I wanted to make a game they would like to play.  I also had some free time because of Covid, and I thought maybe making games could be in my future.  By the way, my daughter refers to COVID-19 as a mad germer named Covid, and he is the reason she can't play on the playground.

I am a beginner and wanted to make things simple.  I used a Javascript framework called Phaser 3 to make this game.  The first iteration started out as a circle floating upward from the bottom.  When it reaches the top, it magically appears at the bottom and continues upward.  Each time you touch a circle it splits in two, and so on until you have a very, very large number of circles.  This idea seemed simple and therefore a good starting point, but turned out to be no fun to play, and kind of pointless too.

An important part of almost every video game is some indication that you have made an accomplishment.  In Super Mario Bros, when you reach the flagpole, you know you finished the level and that's a good thing.  So the game kept morphing based on my own ideas and my daughters'.  After a few rounds of feedback, one of my daughters told me the game is 'a little fun', but that she also wanted to play ABCMouse.

This comment marked the end of my video game making venture.  It was something I had always wanted to try, and now that I have, I don't feel any strong desire to continue.  I am happy that I got to practice Javascript and play around with Github Pages to host the game for free.  Good job ABCMouse, I will never try to compete with you again.

Try it out below if you are curious.





Comments

Popular posts from this blog

PPTX Templates with Python

The ability to create PowerPoint presentations is a requirement these days for most companies. So much so, you may think even stating so is unnecessary. A lot of people are used reading PowerPoint presentations, and despite how much you might dislike it, you are most likely going to need to make reports with PowerPoint. From my perspective as a data analyst, the problem with PowerPoint is loading data to be visualized. I find myself creating charts or tables outside of PowerPoint, and repeatedly manually copying and pasting into the presentation. When you are creating the same presentation day after day, week after week, and the only thing changing is the data used to populate the report, you might think, "why am I doing this?", or "why am I still doing this?". There is a better way, and you don't really need any programming skills (although it won't hurt to be familiar using the command line).  tl;dr Go here to try it out the examples. pptx-template ppt

Getting Into Trouble Scraping the Web

The idea behind web scraping is to get information from a web page.  When people talk about web scraping, people are usually talking about running a computer program to extract information. How to scrape the web You are scraping information right now with your eyes as you read this sentence.  You opened your browser, visited this site, and are mentally tracking things you care about. Ok, ok, so technically that's not web scraping, but the process is similar.  You might really like to scrape my favicon.  Let's try extracting it using Python: >>> import urllib.request >>> web_page_response = urllib . request . urlopen( 'https://hellofrom.liamcryan.com/) >>> html = web_page_response . read() >>> html[html . find(b 'href' ) + 5 :html . find(b "'" , html . find(b 'href' ) + 10 )] b "https://hellofrom.liamcryan.com/favicon.ico" So, there is is; a quick and dirty program that scra

Training for Bryce Canyon 50K

I am starting to get super excited for a long-coming run in Bryce canyon with some friends on May 29, 2021.  The race is 50K - farther than any of us have run.  Well, I may have run one other 50K, but it wasn't exactly a run if you know what I mean. I decided on February 1st that I needed to start easing into training for the race.  My training motivation needed a boost as well as some better planning & record keeping. To ease into training, I chose a few trails and planned to complete them every one to two weeks.  Here is the list of trails I chose:   https://www.alltrails.com/lists/training--1311 .  To really hold myself accountable, I created calendar events and reminders with the trails details. I had planned three runs on my calendar, so that's how many I ran despite wanting to do more (amazing how well calendar planning works!).  The trail running had served as a great motivator, and I felt motivated enough to run on the more boring streets near my house.  By the time