Whenever a ship is spawned using the ShipSpawner class, the ship is given the appropriate data to load in for properties such as speed and weapons, from the parsed data that ShipLibrary collected. The ShipLibrary class (found in ShipLoader.cs) loads all the ship parameters from JSON files stored in StreamingAssets. The primary goal of this project was to test loading gameplay related data from the disk rather than having it be stored inside Unity prefabs or Scriptable Objects. This project was built in Unity 2019.4.0f1. I have no plans to maintain or update any of this code. The code is messier than it needs to be because at the last second I thought it'd be cool to add capital ships and nothing about the game was designed to support capital ships so I had to make a lot of really hacky changes to support the Lancer frigates. It was a quick prototype thrown together to test a handful of very specific things, and I thought it'd be interesting to upload the source as it has examples of a few things I've never uploade before such as basic AI. This is NOT meant to be an example of how to do anything well. In the "The Message" level, once you reach the part where the background lights up, if you decide to go back to the start, the triangles will still be shown in the game, and there will also be rombs shown in the game, but they are glitchy.This is the source code for the quick X-Wing style game I made one weekend to test a few specific things.In the "Security Nexus" and "Escape" levels, whenever you do something crazy, Mother will say a secret message.There's a RealTalk™ ♪ that takes away your shiny gems.The heart button (which leads to credits) shines.In the game menu, the message box appears which says a random message, but if you press the message box, the message box will say "Ouch!!! my feelings. :(".
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |