pacmanrb 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0e685b8744fb557883d2cef49049c68e4b3763a423e5cf91914291943a038d8a
4
- data.tar.gz: d5b6e7fe11076ea9a64c2ce67787cfdc010bf60d26cb1683e1e9ede949e37396
3
+ metadata.gz: 933b56b5fdc6c807bc382d52e0e88a2692ceec4886f40fb56440507e723b5910
4
+ data.tar.gz: 04f93d1d58415039ba676abe07f2c7885cd0b37b26e5393f9123693bf8924c2c
5
5
  SHA512:
6
- metadata.gz: ebb661277be30360ba2d00e4276c1296e263c4b068bbe32199b72c6ec526dd4815f44bb3d17d324eb33c95719bf4d0e0272d5cc3b0e5885de5be5d6341bb7ad3
7
- data.tar.gz: 777249d1f917118c266e73e1ea69b24e0fa9f092938cb469fa17c9c1c61a207dc8675352d6effcdda534aa3a7bf63ea566a66a7c6621c2511cb7568792180be5
6
+ metadata.gz: e749c81ad052dd85cd134d09c3a4d36fc6965b84b39bbdcb1b73a30308489ec292c39daa52a5f5edf0cf9940aa9e26b7d29e50e973187e713c541e59154571d9
7
+ data.tar.gz: 40af2cc581cc71e7bdc9f6a67484b49c4f7468391fca6e138825824f31871ce62b82a6192e4bdf176813cf8afe6abfe6c63d8bcfb90fedbeb9a1a0ae53bd9ed1
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Pacman
2
2
 
3
- A Pacman arcade clone built with the [Charming](https://github.com/pandorocks/charming)
3
+ A Pacman arcade clone built with the [Charming](https://github.com/lbpdevcodes/charming)
4
4
  terminal UI framework.
5
5
 
6
6
  ## Screenshots
@@ -4,21 +4,23 @@ module Pacman
4
4
  class ApplicationController < Charming::Controller
5
5
  layout Layouts::ApplicationLayout
6
6
 
7
+ include Charming::Shell::Palette
8
+
7
9
  key "ctrl+p", :open_command_palette, scope: :global
8
10
  key "q", :quit, scope: :global
9
11
 
10
12
  command "Home" do
11
- navigate_to "/"
13
+ navigate :root
12
14
  end
13
15
 
14
16
  command "Theme", :open_theme_palette
15
17
  command "Close palette", :close_command_palette
16
18
  command "Quit app", :quit
17
19
  command "Game" do
18
- navigate_to "/game"
20
+ navigate :game
19
21
  end
20
22
  command "GameOver" do
21
- navigate_to "/game_over"
23
+ navigate :game_over
22
24
  end
23
25
  end
24
26
  end
@@ -49,7 +49,7 @@ module Pacman
49
49
  summary.level = world.level
50
50
  HighScore.create!(name: "PLAYER", score: world.score)
51
51
  game.world = nil
52
- navigate_to "/game_over"
52
+ navigate :game_over
53
53
  end
54
54
 
55
55
  def turn(direction)
@@ -14,7 +14,7 @@ module Pacman
14
14
 
15
15
  def restart
16
16
  state(:game, GameState).world = nil
17
- navigate_to "/game"
17
+ navigate :game
18
18
  end
19
19
 
20
20
  private
@@ -10,7 +10,7 @@ module Pacman
10
10
  end
11
11
 
12
12
  def start_game
13
- navigate_to "/game"
13
+ navigate :game
14
14
  end
15
15
 
16
16
  private
@@ -8,7 +8,7 @@ module Pacman
8
8
 
9
9
  Charming::UI.center(
10
10
  column(
11
- render_component(HudComponent.new(world: world)),
11
+ render_component(HudComponent.new(world: world, theme: theme)),
12
12
  render_component(BoardComponent.new(world: world, scale: board_scale.factor)),
13
13
  gap: 1
14
14
  ),
data/config/routes.rb CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  Pacman::Application.routes do
4
4
  root "home#show"
5
- screen "/game", to: "game#show", title: "Game"
6
- screen "/game_over", to: "game_over#show", title: "GameOver"
5
+ screen :game, "game#show", title: "Game"
6
+ screen :game_over, "game_over#show", title: "GameOver"
7
7
  end
Binary file
data/db/test.sqlite3 CHANGED
Binary file
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pacman
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pacmanrb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pando
@@ -13,16 +13,16 @@ dependencies:
13
13
  name: charming
14
14
  requirement: !ruby/object:Gem::Requirement
15
15
  requirements:
16
- - - ">="
16
+ - - "~>"
17
17
  - !ruby/object:Gem::Version
18
- version: '0'
18
+ version: 0.4.0
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
- - - ">="
23
+ - - "~>"
24
24
  - !ruby/object:Gem::Version
25
- version: '0'
25
+ version: 0.4.0
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: sqlite3
28
28
  requirement: !ruby/object:Gem::Requirement
@@ -52,7 +52,7 @@ dependencies:
52
52
  - !ruby/object:Gem::Version
53
53
  version: '8.1'
54
54
  email:
55
- - pandorocks@proton.me
55
+ - lbpdevcodes@proton.me
56
56
  executables:
57
57
  - pacmanrb
58
58
  extensions: []