This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class ScreenShakeController : MonoBehaviour | |
{ | |
// This is a singleton | |
public static ScreenShakeController _instance; | |
public float shakeTimeRemaining = 1f; | |
private float shakePower = 0.5f; | |
private float shakeFadeTime; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Tip, Tax Food Calculator | |
# First Flowchart problem homework 1 | |
# We will use 18% as the tip rate | |
TIP_PERCENTAGE = 0.18 | |
# Currently the tax rate is 9% | |
TAX_PERCENTAGE = 0.09 | |
charge_for_food = float(input('Input charge for food: ')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--Chapter 4 Join Queries | |
--10/10/17 | |
/* | |
Exercise 1 (COMPLETE) | |
Write a SELECT statement that returns all columns from the Vendors table | |
inner-joined with the Invoices table | |
*/ | |
SELECT * | |
FROM Vendors INNER |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--Exercise 1 | |
SELECT VendorContactLName AS [Last Name] | |
, VendorContactFName AS [First Name] | |
, VendorName AS [Vendor] | |
FROM Vendors | |
ORDER BY VendorContactLName | |
, VendorContactFName; --Learned to use column numbers as ORDER BY's, | |
--but not recommended & Semi-Colon use will be | |
--required in future SQL Server editions so to | |
--get used to ending each statement with one. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit | |
Const SOURCE_PATH = "C:\[REMOVED BEFORE GITHUB]\" | |
Const EMAIL_SOURCE_PATH = "C:\[REMOVED BEFORE GITHUB]" | |
Const DESTINATION_PATH = "C:\[REMOVED BEFORE GITHUB]\" | |
Const TEMPLATE_PATH = "C:\[REMOVED BEFORE GITHUB]" | |
Sub ActivateWordTransferData() | |
'===========================================' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UI; | |
using UnityEngine.SceneManagement; | |
using Random = UnityEngine.Random; | |
using System; | |
public class BattleManager : MonoBehaviour | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class Item : MonoBehaviour | |
{ | |
[Header("Item Type")] | |
public bool isItem; | |
public bool isWeapon; | |
public bool isArmor; | |
[Header("Item Details")] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// OrthographicSize gets the height of the camera | |
halfHeight = Camera.main.orthographicSize; | |
// .aspect == aspect ratio on the screen | |
halfWidth = halfHeight * Camera.main.aspect; | |
bottomLeftLimit = tileMap.localBounds.min + new Vector3(halfWidth, halfHeight, 0f); | |
topRightLimit = tileMap.localBounds.max + new Vector3(-halfWidth, -halfHeight, 0f); | |
// LateUpdate is called after Update also once per frame |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 11/13/17 | |
# Wind chill values. Rows should represent windspeed from 10 to | |
# 60 mph inclusive in 5 mph increments. Columns should | |
# represent temperatures from -20 to 60 inclusive in | |
# 10-degree increments. | |
# Print x values of table. | |
print() | |
print('Wind Chill Table') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ch_2_jrn_4 | |
#Exercise 14 | |
#This program calculates | |
#Compound Interest | |
print(' ') | |
print('Calculate compound interest by inputting values.') | |
print(' ') |
NewerOlder