Perlin Noise Terrain Generation

Terrain Gen Demo on GitHub

What this small project does is generate terrain patterns in Unity using 2D Perlin Noise. The script that I wrote for this demo is very reusable, but does have to be put on a terrain object for it to work, or at least something with a Terrain Data component. The main part of this script is the method where I loop through the TerrainData component’s height map, and set each value equal to a Mathf.PerlinNoise value.

perlinnoiseterrain
Perlin Noise Terrain

The fields for this script are simple:

A private TerrainData object

A public Vector3 value that is used to apply the size of the terrain that you want

A public int so that you can adjust the Terrain heightmap Resolution

2 public float that are limited to a range of between 0.0 and 1.0. I use tha [Range(0,1)] modifier here so that it is a nice slider in the Unity Editor, making it easier on me and others in the future.

Here is what the inspector looks like for this component

terraingeninspector
Component’s Inspector

This was a class assignment for my IGME 202.04 class(Interactive Media Development), with Professor Erin Casciolli, and I did get a 100% on it.

Ship Shooter 0.11

Ship Shooter on GitHub

So I have fixed a couple issues with this Ship Shooter game, and come with a couple more.

  1. The player has health now and can take a couple hits, but I am still working on making a pretty little health bar .
  2. The buttons can kinda scale for different resolutions, but it still does not work exactly how I want it to so there is more to come on that front.

I am going to be taking a break from this project for a little while until I can set some other things straight.

Things that I want to add:

  1. Scrolling background
  2. UI health bars
  3. Enemy distribution, spawn waves instead of just all at once.