a_maze_ing 0.5.4 → 0.5.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bea18e1b9eec1221cb36c713893f99ff44cf831e
4
- data.tar.gz: 40f936d618109039369390e94855df168f64be10
3
+ metadata.gz: 51a1b90c6c35801be1799d539d6c8ce1e546324d
4
+ data.tar.gz: d617b52f0b1bb4d7c88a9ea764c17f5b84f9c5e1
5
5
  SHA512:
6
- metadata.gz: 265c9c7436b4cded302b5aa41494810b24404bbe0e86410dc4cb44ba429c219f3914d1edba8e3983697f848f00c22591054be4dc188c016d93cfcee8f5334d43
7
- data.tar.gz: 70d4e2290dd907d29e96cfffece7ada0616a2da6705b5be003b1281dc81eb665b6258148a7ca307abd276c5b535a01810030eb24efc5acb971385fef5896219e
6
+ metadata.gz: 26013015b0c21a40764e6c8b331e96f3b2712bfea1d7d3971b321a98d87157efba0ff4f6c296e7d0954efe1a23ecd681730361e1b39cace16b0528d7eed74caa
7
+ data.tar.gz: 91ea968014ed87cc0ddf05f21acde2e0ad357281962aa5cb5af726e4ac65af813ef2c9b5253bb88a8c0cd92582c16fe483a6bdb9119b45dde5c3c77ef011725d
data/README.md CHANGED
@@ -14,10 +14,34 @@ Annoying Friend mode | Time Hunter mode
14
14
 
15
15
  ## Requirements
16
16
 
17
- This gem needs [Gosu](https://www.libgosu.org/) installed on your machine in order to render graphics
17
+ [Gosu](https://www.libgosu.org/) gem requires some libraries to be installed system-wide. If you got error installing gosu during install process, follow below instruction
18
18
 
19
- To install, follow the constructions in [Gosu's documentation](https://github.com/gosu/gosu/wiki) on Github
19
+ ### OSX
20
20
 
21
+ Gosu depends on the [SDL 2 library](http://www.libsdl.org/). Please install [Homebrew]{http://brew.sh/} and run
22
+
23
+ brew install sdl2.
24
+
25
+ And then install a_maze_ing again
26
+
27
+ ### Ubuntu
28
+
29
+ In order to install Gosu on Linux, you need the following packages (the names will be slightly different in every distribution):
30
+
31
+ `libsdl2-dev`, `libsdl2-ttf-dev`, `libpango1.0-dev`, `libgl1-mesa-dev`, `libopenal-dev`, `libsndfile-dev`, `libmpg123-dev` (starting in 0.12.0)
32
+
33
+
34
+ Run following command to install
35
+
36
+ $ sudo apt-get install build-essential libsdl2-dev libsdl2-ttf-dev libpango1.0-dev \
37
+ libgl1-mesa-dev libopenal-dev libsndfile-dev libmpg123-dev
38
+
39
+ And then install a_maze_ing again
40
+
41
+ ### Other OS
42
+
43
+ You can all the install constructions in [Gosu's documentation](https://github.com/gosu/gosu/wiki) on Github to install Gosu completely
44
+
21
45
  ## Installation
22
46
 
23
47
  Add this line to your application's Gemfile:
@@ -56,6 +80,28 @@ Global Options:
56
80
 
57
81
  --fullscreen (-f) will run the game in full screen mode
58
82
 
83
+ ## Construction
84
+
85
+ ### Control keys
86
+
87
+ Normaly you can use Up, Down, Left, Right key to move your character to that specific direction.
88
+
89
+ In two player mode, player 2 will use W, S, A, D key to move Up, Down, Left and Right instead.
90
+
91
+ ### Game mode
92
+
93
+ #### Classic mode
94
+
95
+ Find the way to the gate (the white square), the maze will get more complex as level increase
96
+
97
+ #### Multiplayer mode
98
+
99
+ There will be two player control two square, green and cyan, race to the gate (white square) at the same time. Who solve the maze first will get the point.
100
+
101
+ #### Annoying Friend mode
102
+
103
+ There will be also two player control two square but green and red. Player 2 will control the red square and not race to the gate but try to catch his friend (the green one). Players will get point if he/she finished his/her mission
104
+
59
105
  ## Features Todo List
60
106
 
61
107
  * Menu screen
@@ -37,6 +37,6 @@ Gem::Specification.new do |spec|
37
37
  spec.add_development_dependency "bundler", "~> 1.15"
38
38
  spec.add_development_dependency "rake", "~> 10.0"
39
39
  spec.add_development_dependency "rspec", "~> 3.0"
40
- # spec.add_runtime_dependency "gosu","~> 0.12.0"
40
+ spec.add_runtime_dependency "gosu","~> 0.12.0"
41
41
  spec.add_runtime_dependency "commander", "~> 4.4.3"
42
42
  end
@@ -1,4 +1,5 @@
1
1
  require "a_maze_ing/version"
2
+ require "a_maze_ing/configuration.rb"
2
3
  require "a_maze_ing/cell"
3
4
  require "a_maze_ing/player"
4
5
  require "a_maze_ing/infor"
@@ -2,17 +2,20 @@ require 'rubygems'
2
2
  require 'commander'
3
3
 
4
4
  module AMazeIng
5
+
6
+ # For now there are three game mode
7
+ # 1 is classic
8
+ # 2 is multiplayer
9
+ # 3 is anoying friend
5
10
  class CLI
6
11
  include Commander::Methods
7
12
 
8
13
  def run
9
14
  @full_screen = false
10
15
 
11
- # program :name, AMazeIng::Configuration::PROGRAM_NAME
12
- program :name, "AMazeIng"
16
+ program :name, AMazeIng::Configuration::PROGRAM_NAME
13
17
  program :version, AMazeIng::VERSION
14
- # program :description, AMazeIng::Configuration::DESCRIPTION
15
- program :description, "Maze solving game... don't be addicted"
18
+ program :description, AMazeIng::Configuration::DESCRIPTION
16
19
 
17
20
  default_command :classic
18
21
 
@@ -25,6 +28,8 @@ module AMazeIng
25
28
  c.syntax = 'a_maze_ing classic [options]'
26
29
  c.description = 'Classic mode, difficulty increase with level'
27
30
  c.action do
31
+
32
+ # the second parameter is game mode
28
33
  AMazeIng::GameWindow.new(@full_screen,1).show
29
34
  end
30
35
  end
@@ -1,3 +1,3 @@
1
1
  module AMazeIng
2
- VERSION = "0.5.4"
2
+ VERSION = "0.5.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: a_maze_ing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - at-cuongtran
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-21 00:00:00.000000000 Z
11
+ date: 2017-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: gosu
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 0.12.0
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 0.12.0
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: commander
57
71
  requirement: !ruby/object:Gem::Requirement