Fixing That Weird Positioning Problem in my Unity Game

I’ve been struggling with this one for months. It has made me stop working on this game altogether (as have other things). First off, the problem doesn’t make much sense. I’m using equivalent logic to handle the positioning of some elements in one view as I am in another. The game is the latest iteration of my resource management sim idea. Villagers get assigned to work stations that produce resources the villagers need to survive....

June 5, 2020

Amazon Game Lift: Day One

I’m working on getting back into using AWS tools, and ran across their game hosting tool: Game Lift. It has support for Unity 2019. We’re hosting a game, yo. Bullets from main tutorial: Each version of your game server is called a build Game servers are deployed into fleets of one or more Amazon EC2 instances (this takes a while) There also seems to be a hard limit of one instance for free (?...

June 4, 2020

Some Unity Flailings

I don’t know a bunch of stuff, let’s find out what, and remedy the situation. I opened a new 3D project and stared at the screen. What’s the first step? We need a character, and something for it to run on. Googled: “Add character 3D world”, clicked first link. http://www.strandedsoft.com/creating-a-3d-world-and-a-playable-character-in-unity3d/ Neat! Terrain tool I’ve never used this. Creating a new terrain: GameObject menu -> 3D Object -> Terrain Adjusting terrain contour Click the icon that looks like a paint brush in the terrain Inspector....

December 4, 2019

Stabilizing Tests for Karma Coverage

Loading the canvas libs Now that Karma is all wired up, I can start poking at the tests. The first problem I need to fix involves canvas-libs. knobsAndLevers uses the supporting object in canvas-libs to set a randomized initial spawn interval for the creatures. The usage is: 1 this.spider.initialInterval = supporting.getRandom(this.spider.interval.min, this.spider.interval.max); But knobsAndLevers.init() fails, because supporting is not available: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 $ node_modules/....

March 28, 2018

HTML5 Canvas Gamepad Movement

Planning Yesterday, I left off with the gamepad controls working, but only in a way that basically broke all of the challenge of the game. The change allowed the player to move outside the defined player boundaries, which meant they could shoot from below the canvas with impunity. Hurray! Today, I’m going to fix that. Adding a Layer of Abstraction First, directional control functions were moved from gamePiece to controls. Another layer of abstraction was added to handle getActiveDirection checking....

March 8, 2018

Canvas Gamepad Movement

Session Planning I see a potential problem in the controls if more than one controller button is needed simultaneously. The isFiring returns a boolean on the FIRST button push it detects, and would ignore any additional entries in that list. This means if I press A, it will do the action for A, but then if I keep pressing A, and also press B, the action for A+B would not get executed; only the action for A would....

March 7, 2018

Canvas Gamepad Support

Today, I’m adding controller support to Centipede. (See the first controller commit.) Controls Code Cleanup First, the location of the controls currently doesn’t make a lot of sense, so I’m moving them to a new file, controls.js. On load, controls.addEventListeners will execute. There are no dependencies, so the script load order doesn’t matter. Previously these were on the gameArea object because that’s where the keys tracker was stored, but the keys tracker can just live in the controls object....

March 6, 2018

Adding That Falling Bug to Centipede

Session Planning Back to centipede! Adding that falling bug creature. It should be pretty much exactly like the worm, only moving vertically, and will create mushrooms in its wake. Rename the worm object to something else like simple-interval-creature (is that a horrible name?). This could be combined with spider as well, with an if statement on the type to change the shape and movement functions. Session Post Flies are in!...

March 5, 2018

I'm an Indie Game Developer

Can I say that? Does it make people think I’ll never focus or settle? Are they sighing and looking at me with frustration and thinking “Not this again?” Does it matter what they think? Answer to all: maybe. I have half a dozen self-published, unfinished games that nobody plays up on a free hosting site. They aren’t very good. Three of them are really poor copies of some of the best games of all time....

February 26, 2018

Books vs. Articles: What's Best for Learning?

What’s a better source of knowledge? A book or an article? We’re talking physical book vs digital article here. An article gives readers an injection of thought-provoking, potentially worldview-altering/confirming serum (if they’re reading the right articles) and maybe a lesson they can absorb and apply to their lives then and there. But how do they keep track of it? What binds in memory the many disparate topics on articles one might read throughout the day?...

October 17, 2017