Apr 4An Enemy That Destroys Power-UpsToday’s core programming challenge will closely follow the logic in the previous topic on how to create a Smart Enemy, as well as adding to/using code previously established in prior articles(all of which will be cited). Objective: Create an enemy that can destroy a power-up after detecting it within a…Gamedevhq3 min read
Published in CodeX·Mar 28Creating a Smart EnemyAs a game gets more complex, it is important to add more comprehensive enemy types to challenge the player. A simple way to start adding more depth is to make an enemy “aware” of its surroundings. …Game Development5 min read
Sep 6, 2021Using Raycast to Detect Attacks and Dodge2D Space Shooter — Phase II: Core Programming Challenges — Objective: Detect a projectile Player Attack and move the Enemy(dodge) out of the way to avoid the shot. Note: In the previous article, I introduced Raycasting. This article will be using some of the logic explained there. Detect an Object’s Position Using Raycast First, we need to declare our global variables.Unity 2 D3 min read
Published in Level Up Coding·Aug 30, 2021An Introduction to Raycasting in Unity2DSpace Shooter — Phase II: Core Programming Challenges — Objective: Learn the basic concept and syntax of Raycast, and how to debug it. What is a Raycast?Raycast3 min read
Aug 19, 2021Flickering Color Effect in Unity2D Space Shooter — Phase II: Core Programming Challenges — In the previous article, we took a look at how to make an Aggressive Enemy Type that rams the player. In this article, we will be focusing on adding visual representation to the attack. Objective: Create a flickering or blinking color effect using sprites in Unity. We will need a…Gamedevhq3 min read
Aug 18, 2021Aggressive Enemy Type in Unity2D Space Shooter — Phase II: Core Programming Challenges — Objective: Create an Enemy type that will ram and try to chase the player within a given range. Note: This script is attached to the Enemy. First, we need to be able to measure the distance between the Enemy Object and the Player Object. …Game Development3 min read
Aug 12, 2021A Quick Introduction to While Loops in C#Note: In this article, we’ll be taking a look at while loops, and their variation, do-loops. What is a While Loop? A While Loop is a programming structure that is used to repeat a line or block of code until a condition is met. …While Loop2 min read
Published in Nerd For Tech·Aug 11, 2021A Quick Introduction to For Loops in C#What is a For Loop? A For Loop is a structure that allows us to iterate a block of code a specific number of times. While all loops are used for iterative purposes, the for loop excels at giving us the ability to know exactly how many times the block of code will run.Foreach Loop3 min read
Aug 9, 2021A Quick Introduction to Arrays in UnityWhat is an Array? An Array is a variable that holds multiple values of the same type. As such, they are commonly used to organize data to make it easy to sort and easy to search through. For example, a list of student names which all go in the same file.Arrays3 min read
Aug 4, 2021Randomize Enemy Shields in Unity2D Space Shooter — Phase II: Core Programming Challenges — Objective: In the previous article, we took a look at how to add enemies with shields. In this article, we will be building up from that code to randomize the enemies so that some of them have shields while others don’t. Note: This code is aimed at variations of a…Made With Unity3 min read