zyps 0.6.3 → 0.7.0
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.
- data/README.txt +11 -27
- data/bin/zyps +355 -296
- data/bin/zyps_demo +267 -249
- data/lib/zyps/actions.rb +104 -139
- data/lib/zyps/conditions.rb +39 -15
- data/lib/zyps/environmental_factors.rb +60 -48
- data/lib/zyps/views/canvas/gtk2.rb +152 -0
- data/lib/zyps/views/canvas/wx.rb +191 -0
- data/lib/zyps/views/trails.rb +56 -59
- data/lib/zyps.rb +101 -84
- data/test/test_zyps.rb +48 -75
- data/test/zyps/test_actions.rb +24 -73
- data/test/zyps/test_conditions.rb +30 -11
- data/test/zyps/test_environmental_factors.rb +28 -22
- data/test/zyps/test_remote.rb +3 -3
- metadata +16 -8
- data/bin/zyps_server +0 -235
data/README.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
== Synopsis
|
2
2
|
|
3
|
-
Zyps -
|
3
|
+
Zyps - An AI library for building games.
|
4
4
|
|
5
5
|
|
6
6
|
== Description
|
@@ -11,7 +11,7 @@ Zyps are small creatures with minds of their own. You can create dozens of Zyps
|
|
11
11
|
== Requirements
|
12
12
|
|
13
13
|
* Ruby: http://www.ruby-lang.org
|
14
|
-
*
|
14
|
+
* wxRuby (for the GUI): http://wxruby.rubyforge.org
|
15
15
|
* Rake (to build from source): http://rake.rubyforge.org
|
16
16
|
|
17
17
|
|
@@ -21,37 +21,17 @@ Make sure you have administrative privileges, then type the following at a comma
|
|
21
21
|
|
22
22
|
gem install zyps
|
23
23
|
|
24
|
+
Ensure wxRuby is installed and working:
|
25
|
+
|
26
|
+
gem install wxruby
|
24
27
|
|
25
|
-
== Usage
|
26
28
|
|
27
|
-
|
29
|
+
== Usage
|
28
30
|
|
29
31
|
At a command line, type:
|
30
32
|
|
31
33
|
zyps
|
32
34
|
|
33
|
-
To see a tutorial on the library, at a command line, type:
|
34
|
-
|
35
|
-
zyps_demo
|
36
|
-
|
37
|
-
To run a server that offers a DRb Environment object clients can connect to:
|
38
|
-
|
39
|
-
zyps_server [options]
|
40
|
-
-h, --help Display program help.
|
41
|
-
-m, --max-population [number] The maximum number of allowed game objects.
|
42
|
-
25 by default.
|
43
|
-
-s, --max-speed [number] The fastest an object can go. 500 by
|
44
|
-
default.
|
45
|
-
-n, --no-enclosure Disables the barrier that normally keeps
|
46
|
-
objects on the screen.
|
47
|
-
-u, --url [url] dRuby URL to run the server on. If not
|
48
|
-
defined, one will be selected and printed to
|
49
|
-
STDOUT.
|
50
|
-
-f, --fps [frames] Number of frames to draw per second. 60 by
|
51
|
-
default.
|
52
|
-
--view-width [pixels] Window width. 800 by default.
|
53
|
-
--view-height [pixels] Window height. 600 by default.
|
54
|
-
|
55
35
|
|
56
36
|
== Development
|
57
37
|
|
@@ -78,7 +58,11 @@ Also see "bin/zyps_demo" and the "test" subfolder in the project directory for s
|
|
78
58
|
|
79
59
|
== Thanks
|
80
60
|
|
81
|
-
|
61
|
+
Glen Franta, Scott McGinty, and so many other math, science, and computer science teachers whose names I've forgotten. Nothing I do today would be possible without your efforts so long ago.
|
62
|
+
|
63
|
+
Alex Fenton and Mario Steele for wxRuby advice.
|
64
|
+
|
65
|
+
My lovely wife, Diana, for patience and usability testing.
|
82
66
|
|
83
67
|
|
84
68
|
== Author
|