Skip to content

Commit

Permalink
Merge pull request #40 from Wizards-vs-Robots/dev
Browse files Browse the repository at this point in the history
Minor fixes
  • Loading branch information
4kills authored Jun 23, 2022
2 parents 5a649b7 + d525c8c commit 04fe2da
Show file tree
Hide file tree
Showing 249 changed files with 7 additions and 30,569 deletions.
File renamed without changes.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

259 changes: 1 addition & 258 deletions Assets/Scenes/OptionMenu.unity
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ RectTransform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 1436079390}
- {fileID: 334171654}
- {fileID: 1341531697}
m_Father: {fileID: 1543661712}
m_RootOrder: 1
Expand Down Expand Up @@ -187,262 +186,6 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 4d81931206fd1504dae3eeecfc1ed6cc, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &334171653
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 334171654}
- component: {fileID: 334171657}
- component: {fileID: 334171656}
- component: {fileID: 334171655}
m_Layer: 5
m_Name: StuffButton
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &334171654
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 334171653}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 378796641}
m_Father: {fileID: 287895393}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0.0025024414, y: 0}
m_SizeDelta: {x: -0.010009766, y: -300}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &334171655
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 334171653}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 0
m_WrapAround: 0
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 1
m_Colors:
m_NormalColor: {r: 1, g: 1, b: 1, a: 0}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 0.09803922}
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.29411766}
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
m_ColorMultiplier: 1
m_FadeDuration: 0.1
m_SpriteState:
m_HighlightedSprite: {fileID: 0}
m_PressedSprite: {fileID: 0}
m_SelectedSprite: {fileID: 0}
m_DisabledSprite: {fileID: 0}
m_AnimationTriggers:
m_NormalTrigger: Normal
m_HighlightedTrigger: Highlighted
m_PressedTrigger: Pressed
m_SelectedTrigger: Selected
m_DisabledTrigger: Disabled
m_Interactable: 1
m_TargetGraphic: {fileID: 334171656}
m_OnClick:
m_PersistentCalls:
m_Calls: []
--- !u!114 &334171656
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 334171653}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0, g: 0, b: 0, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0}
m_Type: 1
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!222 &334171657
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 334171653}
m_CullTransparentMesh: 1
--- !u!1 &378796640
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 378796641}
- component: {fileID: 378796643}
- component: {fileID: 378796642}
m_Layer: 5
m_Name: Stuff
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
--- !u!224 &378796641
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 378796640}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 334171654}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &378796642
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 378796640}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: HELP
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 5302535af1044152a457ed104f1f4b91, type: 2}
m_sharedMaterial: {fileID: 2164040, guid: 5302535af1044152a457ed104f1f4b91, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 4294967295
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
m_enableVertexGradient: 1
m_colorMode: 3
m_fontColorGradient:
topLeft: {r: 1, g: 1, b: 1, a: 1}
topRight: {r: 1, g: 1, b: 1, a: 1}
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
bottomRight: {r: 1, g: 1, b: 1, a: 1}
m_fontColorGradientPreset: {fileID: 11400000, guid: ad19bd146f518d84da5b8d0c65e30f34,
type: 2}
m_spriteAsset: {fileID: 0}
m_tintAllSprites: 0
m_StyleSheet: {fileID: 0}
m_TextStyleHashCode: -1183493901
m_overrideHtmlColors: 0
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 84
m_fontSizeBase: 84
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 0
m_HorizontalAlignment: 2
m_VerticalAlignment: 256
m_textAlignment: 65535
m_characterSpacing: 0
m_wordSpacing: 0
m_lineSpacing: 0
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_enableWordWrapping: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 1
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 1
m_isCullingEnabled: 0
m_horizontalMapping: 0
m_verticalMapping: 0
m_uvLineOffset: 0
m_geometrySortingOrder: 0
m_IsTextObjectScaleStatic: 0
m_VertexBufferAutoSizeReduction: 0
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 0, y: 0, z: 0, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!222 &378796643
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 378796640}
m_CullTransparentMesh: 1
--- !u!1 &423091322
GameObject:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -761,7 +504,7 @@ RectTransform:
m_Children:
- {fileID: 1166873466}
m_Father: {fileID: 287895393}
m_RootOrder: 2
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
Expand Down
28 changes: 1 addition & 27 deletions Assets/Scripts/KeyBindings/KeyBindings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,33 +14,7 @@ public static class KeyBindings
static KeyBindings(){
if (!StoreKeyBindings.SetCustomBindings())
{
if (!StoreKeyBindings.RestoreDefaults())
{
bindings.Add("player1_move_up", KeyCode.W);
bindings.Add("player1_move_left", KeyCode.A);
bindings.Add("player1_move_right", KeyCode.D);
bindings.Add("player1_move_down", KeyCode.S);
bindings.Add("player1_change_spell", KeyCode.E);
bindings.Add("player1_shoot_up", KeyCode.F);
bindings.Add("player1_shoot_left", KeyCode.C);
bindings.Add("player1_shoot_right", KeyCode.B);
bindings.Add("player1_shoot_down", KeyCode.V);
bindings.Add("player1_cooldown_action", KeyCode.X);
bindings.Add("pause_button", KeyCode.P);


// player 2
bindings.Add("player2_move_up", KeyCode.Semicolon);
bindings.Add("player2_move_left", KeyCode.BackQuote);
bindings.Add("player2_move_right", KeyCode.Quote);
bindings.Add("player2_move_down", KeyCode.Slash);
bindings.Add("player2_change_spell", KeyCode.Equals);
bindings.Add("player2_shoot_up", KeyCode.UpArrow);
bindings.Add("player2_shoot_left", KeyCode.LeftArrow);
bindings.Add("player2_shoot_right", KeyCode.RightArrow);
bindings.Add("player2_shoot_down", KeyCode.DownArrow);
bindings.Add("player2_cooldown_action", KeyCode.Minus);
}
StoreKeyBindings.RestoreDefaults();
}
}

Expand Down
16 changes: 3 additions & 13 deletions Assets/Scripts/KeyBindings/StoreKeyBindings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,8 @@
public static class StoreKeyBindings
{
private const string custom_path = "keybindings_custom.json";
private const string default_path = "keybindings_default.json";
private const string default_resource = "keybindings_default";

static StoreKeyBindings()
{

}

public static void SaveKeyBindings()
{
Dictionary<String, KeyCode> bindings = KeyBindings.Get();
Expand All @@ -36,16 +31,11 @@ public static bool SetCustomBindings()
return true;
}

public static bool RestoreDefaults()
public static void RestoreDefaults()
{
if (!File.Exists(default_path))
{
return false;
}
var content = File.ReadAllText(default_path);
var content = Resources.Load<TextAsset>(default_resource).text;
Dictionary<String, KeyCode> bindings = JsonConvert.DeserializeObject<Dictionary<string, KeyCode>>(content);
KeyBindings.Set(bindings);
return true;
}

}
9 changes: 0 additions & 9 deletions Assets/Yoinked Stuff/Tiny RPG Forest/Artwork.meta

This file was deleted.

9 changes: 0 additions & 9 deletions Assets/Yoinked Stuff/Tiny RPG Forest/Artwork/Environment.meta

This file was deleted.

This file was deleted.

Binary file not shown.
Loading

0 comments on commit 04fe2da

Please sign in to comment.