denki_guy 0.1.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.
@@ -0,0 +1,30 @@
1
+ // ---
2
+ // Copyright (c) 2010 Francesco Cottone, http://www.kesiev.com/
3
+ // ---
4
+
5
+ var trigo={
6
+ ANGLE_RIGHT:0,
7
+ ANGLE_DOWN:Math.PI*0.5,
8
+ ANGLE_LEFT:Math.PI,
9
+ ANGLE_UP:Math.PI*1.5555555,
10
+ addAngle:function(a,add) {
11
+ a=(a+add)%(Math.PI*2);
12
+ if (a<0) return (Math.PI*2)+a; else return a;
13
+ },
14
+ getDistance:function(p1,p2) {
15
+ return Math.sqrt(Math.pow(p2.x-p1.x,2)+Math.pow(p2.y-p1.y,2))
16
+ },
17
+ getAngle:function(p1,p2,transl) {
18
+ return this.addAngle(Math.atan2(p2.y-p1.y,p2.x-p1.x),(transl?transl:0));
19
+ },
20
+ translate:function(p1,a,d) {
21
+ p1.x=p1.x+Math.cos(a)*d;
22
+ p1.y=p1.y+Math.sin(a)*d;
23
+ },
24
+ translateX:function(x1,a,d) {
25
+ return x1+Math.cos(a)*d
26
+ },
27
+ translateY:function(y1,a,d) {
28
+ return y1+Math.sin(a)*d;
29
+ }
30
+ }
metadata ADDED
@@ -0,0 +1,93 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: denki_guy
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 1
8
+ - 0
9
+ version: 0.1.0
10
+ platform: ruby
11
+ authors:
12
+ - Evan Burchard
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2011-02-15 00:00:00 -05:00
18
+ default_executable:
19
+ dependencies: []
20
+
21
+ description:
22
+ email: evan.burchard@gmail.com
23
+ executables: []
24
+
25
+ extensions: []
26
+
27
+ extra_rdoc_files:
28
+ - README.markdown
29
+ files:
30
+ - README.markdown
31
+ - lib/rpg_generator.rb
32
+ - lib/templates/8x8s.png
33
+ - lib/templates/buttons.png
34
+ - lib/templates/cels.png
35
+ - lib/templates/debugfont.png
36
+ - lib/templates/dpad.png
37
+ - lib/templates/dpad320.png
38
+ - lib/templates/font.png
39
+ - lib/templates/fontbig.png
40
+ - lib/templates/game.css
41
+ - lib/templates/game.js
42
+ - lib/templates/game_controller.rb
43
+ - lib/templates/gamecycle.js
44
+ - lib/templates/gbox.js
45
+ - lib/templates/help.js
46
+ - lib/templates/init_game.js
47
+ - lib/templates/iphopad.js
48
+ - lib/templates/jquery.js
49
+ - lib/templates/level_template.js
50
+ - lib/templates/map_template.js
51
+ - lib/templates/npc_template.js
52
+ - lib/templates/padbg.png
53
+ - lib/templates/resources.js
54
+ - lib/templates/settings_template.js
55
+ - lib/templates/tool.js
56
+ - lib/templates/toys.js
57
+ - lib/templates/trigo.js
58
+ - lib/USAGE
59
+ has_rdoc: true
60
+ homepage: http://github.com/evanburchard/denki_guy
61
+ licenses: []
62
+
63
+ post_install_message:
64
+ rdoc_options:
65
+ - --main
66
+ - README.markdown
67
+ require_paths:
68
+ - lib
69
+ required_ruby_version: !ruby/object:Gem::Requirement
70
+ none: false
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ segments:
75
+ - 0
76
+ version: "0"
77
+ required_rubygems_version: !ruby/object:Gem::Requirement
78
+ none: false
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ segments:
83
+ - 0
84
+ version: "0"
85
+ requirements: []
86
+
87
+ rubyforge_project:
88
+ rubygems_version: 1.3.7
89
+ signing_key:
90
+ specification_version: 3
91
+ summary: An rpg generator for rails
92
+ test_files: []
93
+