QBasic IO and Graphics, Knox Game Design, December 2022

A look at various approaches for keyboard input and graphics display in QBasic.

Demo code – https://github.com/levidsmith/QBasicShooter

Links and Notes

Knox Game Design
Knox Game Design
QBasic IO and Graphics, Knox Game Design, December 2022
Loading
/

Number Systems – Knox Game Design, November 2022

Overview of number systems, including decimal base 10, binary base 2, hexadecimal base 16. How to convert between the number systems.  Explanation of addition and subtraction in binary.

Links and Notes

Knox Game Design
Knox Game Design
Number Systems - Knox Game Design, November 2022
Loading
/

Reading Text Files – Knox Game Design, September 2022

Explanation of how to read text files to display objects to the screen in Unity, GameMaker, MonoGame, Godot, and SDL.

Demo project – https://github.com/levidsmith/KnoxGameDesign/tree/master/textreader

Links and Notes

Knox Game Design
Knox Game Design
Reading Text Files - Knox Game Design, September 2022
Loading
/

Logo – Knox Game Design, August 2022

Introduction to the Logo programming language.  Useful for teaching functional programming to beginners.  Explanation of using “turtle graphics” to draw various shapes.

Demo project – https://github.com/levidsmith/KnoxGameDesign/tree/master/logo

Links and Notes

Knox Game Design
Knox Game Design
Logo - Knox Game Design, August 2022
Loading
/

Curves – Knox Game Design, July 2022

Overview of four types of curves that can be used in game development.  Basic parabola for moving objects in an arc.  Sine function for moving objects in a wave motion.  Physics using velocity and acceleration for simulating actions such as jumping and falling.  Bezier curve for moving objects along a curved path.  Examples of functions for each curve type and how to calculate coordinates in a spreadsheet.  Demonstration of how to implement each curve type in Monogame with C# and review of source code.

Spreadsheet – https://www.knoxgamedesign.org/wp-content/uploads/2022/07/curves.xlsx

Demo project – https://github.com/levidsmith/KnoxGameDesign/tree/master/curves/Curves

New Knox Games this Month

Flappy Brid Clone by Andy – https://www.cowell.org/~andy/unity/test/

Links and Notes

Knox Game Design
Knox Game Design
Curves - Knox Game Design, July 2022
Loading
/

I-Frames and Stun Lock – Knox Game Design, June 2022

Overview of I-frames, invincibility, stun lock, and knock back. How these are implemented in games, statistics from examples of classic games, and demo project showing various methods for implementing invincibility time.

Links and Notes

Knox Game Design
Knox Game Design
I-Frames and Stun Lock - Knox Game Design, June 2022
Loading
/

Enemy Behaviors – Knox Game Design, May 2022

This month’s Knox Game Design presentation topic is Enemy Behaviors.
This is a look at various enemy behavior types:

  • Back and forth (timer / collision based)
  • Alert and chase, using distance / timer for stop chasing
  • Move random direction and wait
  • Orbital children, with varying radius length and orbit speed
  • Behavior combination (orbital children and move)

This presentation looks at a demo project using Monogame and C# and analysis of demo code for each behavior.

Links and Notes

Knox Game Design
Knox Game Design
Enemy Behaviors - Knox Game Design, May 2022
Loading
/

Basic 3D Collision – Knox Game Design, March 2022

Explanation of calculating collision between basic 3D objects (rectangular solids/cubes and spheres). Methods used can be applied to any programming language or game development environment. Review of demo Ruby code to detect collision between rectangular solids and spheres.

Links and Notes

Knox Game Design
Knox Game Design
Basic 3D Collision - Knox Game Design, March 2022
Loading
/

2D Collision – Knox Game Design, February 2022

Explanation of 2D collisions for points, lines, rectangles, and circles.  Overview of each collision type along with examples and code.  Explanations are general in nature so that they can be implemented in any game engine or programming language.  Demonstration of Javascript web application that calculates collisions between the four types of objects, along with review of code functionality.

Links and Notes

Knox Game Design
Knox Game Design
2D Collision - Knox Game Design, February 2022



Loading





/

Dijkstra’s Algorithm – Knox Game Design, January 2022

Explanation of Dijkstra’s algorithm for finding the shortest path in a graph based on a selected starting node. Walkthrough of an example of the algorithm. Demo of implementation of Dijkstra’s algorithm in Unity and C#.

Dijkstra Demo in Unity (Unity WebGL)

Dijkstra Demo Source Code

Links and Notes

Knox Game Design
Knox Game Design
Dijkstra's Algorithm - Knox Game Design, January 2022



Loading





/