Skip to content

Sample scripts that I've done throughout my time in Chico

Notifications You must be signed in to change notification settings

a13n20/Code-Samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code Samples

Created by: Natalie Hoffmann

GitHub Repository

Sample scripts that I've done throughout my time in Chico

C++

Sorting Methods

In this project, I had to create a script that would sort a random vector using four different methods, and record the runtime for each method based on the worst, best, and average cases. All code in Project_1.cpp is written by me.

Project_1.cpp

Airport Simulation

This project was for creating a script simulating an airport's landings and takeoffs, where one runway prioritized takeoffs and the other prioritized landings. Planes were sorted based on priority using heapsort. Airport Simulation is the full project details. All code files are written by me.

Airport Simulation | AirportDriver.cpp | Heap.h | Heap.cpp | Plane.h | Plane.cpp

Dijkstra's Algorithm

This project simulated a car traveling from one point to another on a graph. Some nodes had charging stations, while others didn't. The code was supposed to output the shortest possible distance, if any, from point A to point B using Dijkstra's algorithm. Dijkstra's Algorithm is the full project details. All code files are written by me.

Dijkstra's Algorithm | Project_3.cpp | Node.h | Node.cpp | Graph.h | Graph.cpp

C# (Unity)

All of these samples come from my most recent project, Seven Seas to Glory.

Saving the Game

This is the first time I've ever programmed a saving system for a game.

PlayerData.cs | SaveAndLoad.cs | Saving.cs

UI

These are all scripts I've written related to UI in the game, as well as the player's ship health to show how the health bar is implemented.

SceneSwitch.cs | PauseMenu.cs | PopupUI.cs | HealthBar.cs | Billboard.cs | PlayerShipHealth.cs

Cannonball Variants

These are scripts related to cannonball damage and ship health. The class is called "Ammo Class" because it eventually will be used for different bullet types as well.

AmmoClass.cs | EnemyCannonBall.cs | NormalCannonBall.cs | ExplosiveCannonBall.cs | ShipHealth.cs | FreezingCannonBall.cs | EnemyShipAI.cs

Player Interactions

These are scripts that are related to the player directly.

ControllerSwitch.cs | Floating.cs

About

Sample scripts that I've done throughout my time in Chico

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published