Skip to content

Commit

Permalink
v0.81.1 | 2024/01/04 21:00 | Nearest neighbor scaling is now supporte…
Browse files Browse the repository at this point in the history
…d on Windows. Fixed a bug with larger board sizes not picking the correct font size on Windows, which lead me to fix more things because (size_t)(uint24_t)(-5) results in different values on the two platforms. Additionally, I refactored the font data into a struct instead of the werid parallel array I had before. Did a few other things such as only registering mouse clicks if the mouse is over a tile, and making the ''Smiley face'' graphic update only when their is an expression change.
  • Loading branch information
ZERICO2005 committed Jan 5, 2024
1 parent 2af6c6d commit 3764be4
Show file tree
Hide file tree
Showing 9 changed files with 587 additions and 231 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ add_executable(${PROJECT_NAME} ${SRC_FILES})

target_include_directories(${PROJECT_NAME} PUBLIC ${SRC_LCD_DIR})
# Compiler Flags Debug(-g -O0) Release(-O3)
set(OPT_FLAG -O3)
set(OPT_FLAG -g -O3)
target_compile_options(${PROJECT_NAME} PUBLIC ${OPT_FLAG} -Wall -Wextra -Werror)
target_link_libraries(${PROJECT_NAME} PUBLIC SDL2 SDL2main)
295 changes: 295 additions & 0 deletions MineSweeper-Patterns.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,295 @@
# Classic

.....
.111.
.1*1.
.111.
.....

# Knight

.1.1.
1...1
..*..
1...1
.1.1.

# Long Orthogonal

..1..
..1..
11*11
..1..
..1..

# Diagonal

1...1
.1.1.
..*..
.1.1.
1...1

# Target

1...1
..1..
.1*1.
..1..
1...1

# Clover

...1.
1.1..
.1*1.
..1.1
.1...

# Windmill

.1...
.1.11
..*..
11.1.
...1.

# X-Wing

.....
11.11
..*..
11.11
.....

# Tye-Fighter

.....
.1.1.
11*11
.1.1.
.....

# Near Orthogonal

.....
..1..
.1*1.
..1..
.....

# Doubled Orthogonal

.....
.121.
.2*2.
.121.
.....

# Doubled Diagonal

.....
.212.
.1*1.
.212.
.....

# Ship Wheel

1.1.1
.111.
11*11
.111.
1.1.1

# Hashtag

.1.1.
11111
.1*1.
11111
.1.1.

# Doubled Target

..1..
..2..
12*21
..2..
..1..

# Double Center Orthogonal

..1..
..2..
12*21
..2..
..1..

# Taxicab Distance

..1..
.121.
12*21
.121.
..1..

# Ring

.111.
1...1
1.*.1
1...1
.111.

# Perimeter

11111
1...1
1.*.1
1...1
11111

# Corners

11.11
1...1
..*..
1...1
11.11

# Squared Corners

11.11
11.11
..*..
11.11
11.11

# Orthogonal Spikes

..1..
.111.
11*11
.111.
..1..

# Diagonal Spikes

1...1
.111.
.1*1.
.111.
1...1

# Plus Sign

.111.
11.11
1.*.1
11.11
.111.

# No Corners

.111.
11111
11*11
11111
.111.

# Swath

11111
11111
11*11
11111
11111

# Euclidean

..1..
.232.
13*31
.232.
..1..

# Wheel

.111.
1.1.1
11*11
1.1.1
.111.

# Sponge

11111
1.1.1
11*11
1.1.1
11111

# Ninja Star

.11..
..1.1
11*11
1.1..
..11.

# Vortex

111.1
..1.1
11*11
1.1..
1.111

# Tripled Orthogonal

.....
.131.
.3*3.
.131.
.....

# Tripled Diagonal

.....
.313.
.1*1.
.313.
.....

# Tripled Center Orthogonal

..1..
..3..
13*31
..3..
..1..

# Full House Orthogonal

.....
.232.
.3*3.
.232.
.....

# Full House Diagonal

.....
.323.
.2*2.
.323.
.....

# Full House Center Orthogonal

..2..
..3..
23*32
..3..
..2..
2 changes: 1 addition & 1 deletion src-lcd/x86_Common_Def.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
** Author: zerico2005 (2023)
** Author: zerico2005 (2023-2024)
** Project: Super-Sweeper
** License: MIT License
** A copy of the MIT License should be included with
Expand Down
Loading

0 comments on commit 3764be4

Please sign in to comment.