Skip to content

Commit

Permalink
Added puzzles + Bot AI rework + Difficulty (#24)
Browse files Browse the repository at this point in the history
* fixed some movement logic

* Bugfixes to movement and check detection
Fixes #19

* Fixed player being able to move opponent's piece

* Quality of life improvements

* QOL improvements

* Changes for knight's appearance
Closes #27

* Started working on new font

* Added Custom font

* visual fixes

* fixes #25

* Fix movement checks

* Started working on puzzle mode

* minor bugfixes
  • Loading branch information
omegaleo authored Jun 29, 2022
1 parent 2523c14 commit e5c739c
Show file tree
Hide file tree
Showing 56 changed files with 19,314 additions and 4,547 deletions.
1,909 changes: 1,909 additions & 0 deletions Assets/Fonts/ChessWar font SDF.asset

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions Assets/Fonts/ChessWar font SDF.asset.meta

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

42 changes: 42 additions & 0 deletions Assets/Fonts/ChessWar font.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"$baseURI": "https://yal.cc/r/20/pixelfont/",
"$version": "1.0",
"in-glyphs": [
" !\"#$%&'()*+,-./",
"0123456789:;<=>?",
"@ABCDEFGHIJKLMNO",
"PQRSTUVWXYZ[\\]^_",
"`abcdefghijklmno",
"pqrstuvwxyz{|}~∎"
],
"glyph-color": "auto",
"in-kerning": [
""
],
"glyph-width": 17,
"glyph-height": 17,
"glyph-ofs-x": 1,
"glyph-ofs-y": 1,
"glyph-sep-x": 0,
"glyph-sep-y": 0,
"glyph-base-x": 0,
"glyph-baseline": 12,
"glyph-spacing": 4,
"font-is-mono": false,
"font-em-square": 1024,
"font-line-gap": 0,
"font-ascend": 768,
"font-descend": -256,
"font-px-size": 64,
"font-name": "ChessWar font",
"font-author": "Nuno \"Omega Leo\" Diogo",
"font-copy": "(c)",
"font-version": "Version 1.0",
"font-desc": "Sweet fonts to leave your worries behind you",
"font-license": "You have the permission",
"font-license-url": "",
"font-sample-text": "Hello!",
"font-preview-text": [
"1 Player"
]
}
7 changes: 7 additions & 0 deletions Assets/Fonts/ChessWar font.json.meta

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

Binary file added Assets/Fonts/ChessWar font.ttf
Binary file not shown.
21 changes: 21 additions & 0 deletions Assets/Fonts/ChessWar font.ttf.meta

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

Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Material:
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _DissolveAmount: 0.9997682
- _DissolveAmount: 0.9991525
- _DissolveScale: 300
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions Assets/Prefabs/BorderCell.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ MonoBehaviour:
m_Calls: []
m_text:
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: ed0b8a226ded53441a85d522f9cdc6e1, type: 2}
m_sharedMaterial: {fileID: 5981815099051842037, guid: ed0b8a226ded53441a85d522f9cdc6e1, type: 2}
m_fontAsset: {fileID: 11400000, guid: e9a8c761b358bf44f9cda50569a268e0, type: 2}
m_sharedMaterial: {fileID: 246143435287901796, guid: e9a8c761b358bf44f9cda50569a268e0, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
Expand All @@ -96,7 +96,7 @@ MonoBehaviour:
m_fontSize: 36
m_fontSizeBase: 36
m_fontWeight: 400
m_enableAutoSizing: 1
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 0
Expand Down
8 changes: 8 additions & 0 deletions Assets/Puzzles.meta

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

74 changes: 74 additions & 0 deletions Assets/Puzzles/Puzzle1-1.asset
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5b18e9a28e36460c918f8e5dddfa1227, type: 3}
m_Name: Puzzle1-1
m_EditorClassIdentifier:
image: {fileID: 21300000, guid: bbda9c585217a4247932e6b40b671e8a, type: 3}
puzzleName: Puzzle 1-1
whitePieces:
- x: 7
y: 2
pieceType: K
startLevel: 0
firstMove: 0
- x: 0
y: 2
pieceType: B
startLevel: 5
firstMove: 0
- x: 5
y: 1
pieceType: R
startLevel: 4
firstMove: 0
- x: 6
y: 2
pieceType: P
startLevel: 1
firstMove: 0
- x: 6
y: 3
pieceType: KN
startLevel: 8
firstMove: 0
- x: 7
y: 3
pieceType: P
startLevel: 1
firstMove: 0
blackPieces:
- x: 7
y: 4
pieceType: K
startLevel: 0
firstMove: 0
- x: 2
y: 1
pieceType: B
startLevel: 7
firstMove: 0
- x: 3
y: 1
pieceType: R
startLevel: 4
firstMove: 0
- x: 3
y: 3
pieceType: R
startLevel: 5
firstMove: 0
- x: 6
y: 5
pieceType: P
startLevel: 1
firstMove: 0
playerStartColor: {r: 1, g: 1, b: 1, a: 1}
8 changes: 8 additions & 0 deletions Assets/Puzzles/Puzzle1-1.asset.meta

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

59 changes: 59 additions & 0 deletions Assets/Puzzles/Puzzle1-2.asset
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5b18e9a28e36460c918f8e5dddfa1227, type: 3}
m_Name: Puzzle1-2
m_EditorClassIdentifier:
image: {fileID: 0}
puzzleName: Puzzle 1-2
whitePieces:
- x: 7
y: 2
pieceType: K
startLevel: 0
firstMove: 0
- x: 0
y: 2
pieceType: B
startLevel: 5
firstMove: 0
- x: 5
y: 1
pieceType: R
startLevel: 4
firstMove: 0
- x: 6
y: 2
pieceType: P
startLevel: 1
firstMove: 0
- x: 6
y: 3
pieceType: KN
startLevel: 8
firstMove: 0
- x: 7
y: 3
pieceType: P
startLevel: 1
firstMove: 0
blackPieces:
- x: 7
y: 4
pieceType: K
startLevel: 0
firstMove: 0
- x: 2
y: 1
pieceType: P
startLevel: 1
firstMove: 0
playerStartColor: {r: 1, g: 1, b: 1, a: 1}
8 changes: 8 additions & 0 deletions Assets/Puzzles/Puzzle1-2.asset.meta

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

Loading

0 comments on commit e5c739c

Please sign in to comment.