Skip to content

Commit

Permalink
chore: finished
Browse files Browse the repository at this point in the history
  • Loading branch information
rubbieKelvin committed Jan 1, 2025
1 parent 5dc1d3e commit f3f4637
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/target
release
Binary file added assets/img/me.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ fn handle_events_home(context: &mut ApplicationData, event: Event) {
Event::KeyDown { keycode, .. } => {
if let Some(Keycode::Return) = keycode {
let mut board = Board::new(3, Point::new(200, 150));
// board.scatter();
board.scatter();

context.board = Some(board);
context.current_screen = GameScreen::Play;
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ fn main() -> Result<(), String> {
texture_creator,
current_screen: GameScreen::Home,
board: None,
board_image: image_texture_creatore.load_texture("assets/img/cat.jpg")?,
board_image: image_texture_creatore.load_texture("assets/img/me.jpg")?,
title_font: ttf_context.load_font(Path::new("assets/fonts/pixelify.ttf"), 16)?,
tile_font: ttf_context
.load_font(Path::new("assets/fonts/jb-mono-nerd-bold.ttf"), 22)?,
Expand Down

0 comments on commit f3f4637

Please sign in to comment.