non 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +27 -0
- data/CHANGES +315 -0
- data/Gemfile +3 -0
- data/LICENSE +21 -0
- data/Makefile +3 -0
- data/README.md +32 -0
- data/Rakefile +6 -0
- data/bin/lua/non +6 -0
- data/bin/lua/non.lua +29 -0
- data/bin/non +6 -0
- data/bin/non.jar +0 -0
- data/non-0.5.0-1.rockspec +31 -0
- data/non.gemspec +22 -0
- metadata +89 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: d36ddbcb4a1d39b49e80d7d5d6ba9f966ec8729b
|
4
|
+
data.tar.gz: a25b0a185c057ef89943d119f0d3c15d12cf718b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9d4c5f65bdd3967542ca1249b30d1cab249cde12d744b61a59901fe22ec542e0666ca869e2ffb167a2ae7288b6d732ead866da6db31f1cae69a4ed937135a651
|
7
|
+
data.tar.gz: 6408f8146f4f72c04b4a3c13be05f5e952cca3e795dc2193b541b3bb7f5fc4865b8c552c3ac00e75f144bd3c1e4d52dfc4a48c60df845dd11bcd85e36ca288c9
|
data/.gitignore
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
## Ruby
|
2
|
+
/.bundle/
|
3
|
+
/.yardoc
|
4
|
+
/Gemfile.lock
|
5
|
+
/_yardoc/
|
6
|
+
/coverage/
|
7
|
+
/doc/
|
8
|
+
/pkg/
|
9
|
+
/spec/reports/
|
10
|
+
/tmp/
|
11
|
+
|
12
|
+
## Lua
|
13
|
+
*.def
|
14
|
+
*.rock
|
15
|
+
*.rc
|
16
|
+
*.res
|
17
|
+
|
18
|
+
## Java
|
19
|
+
build/
|
20
|
+
.gradle/
|
21
|
+
local.properties
|
22
|
+
.gradle-app.setting
|
23
|
+
*.class
|
24
|
+
|
25
|
+
## OS Specific
|
26
|
+
.DS_Store
|
27
|
+
Thumbs.db
|
data/CHANGES
ADDED
@@ -0,0 +1,315 @@
|
|
1
|
+
[0.5.0]
|
2
|
+
- published NON to LuaRocks
|
3
|
+
- fixed hello task on first run (before you needed to execute it twice to actually generate hello world game)
|
4
|
+
- added Lua support (same API, just snake_case changed to camelCase)
|
5
|
+
- changed :position and :size parameters of NON.graphics.draw to :x, :y, :width and :height
|
6
|
+
- changed :position parameter for NON.graphics.print to :x and :y
|
7
|
+
- changed float colors to byte colors
|
8
|
+
- new API for drawing shapes
|
9
|
+
- added option to load music, sound, image, font and shader instances from different path sources (internal, local...)
|
10
|
+
- changed NON.clipboard.get_contents and NON.clipboard.set_contents to NON.get_clipboard and NON.set_clipboard
|
11
|
+
- changed versioning (previous versioning was misleading and indicated that NON isn´t in early development)
|
12
|
+
- new loading screen background to match website
|
13
|
+
- added some new methods to NON.graphics - set_background_color, get_background_color, get_shader and get_blending
|
14
|
+
- removed NON.graphics.clear
|
15
|
+
- now NON.graphics.get_color returns array and not Color object (so you can do "r, g, b, a = NON.graphics.get_color")
|
16
|
+
- removed NON.physics, NON.lights and NON.particles module (temporary, will be added back in next updates)
|
17
|
+
- fixed resetting of color each update before draw() callback
|
18
|
+
- fixed NON.graphics.translate, NON.graphics.rotate and NON.graphics.scale methods
|
19
|
+
- finished API for NON.files module
|
20
|
+
- finished API for NON.audio module
|
21
|
+
- fixed resizing of game window on desktop platforms
|
22
|
+
- removed NON.files.parse_json, NON.files.parse_yaml and NON.files.parse_xml (temporary, will be added back in next updates)
|
23
|
+
- renamed close() callback to quit() callback
|
24
|
+
- fixed NON.keyboard.show, NON.keyboard.hide, NON.mouse.show and NON.mouse.hide
|
25
|
+
|
26
|
+
[0.4.10]
|
27
|
+
- moved all modules to root NON module (f.e Graphics is now NON.graphics)
|
28
|
+
- fixed NON.accelerometer methods (getX, getY, getRotation => x, y, rotation)
|
29
|
+
- moved methods from App module to root NON module (f.e App.quit is now NON.quit)
|
30
|
+
- split render(delta) event to draw and update(delta) events
|
31
|
+
- added measure_text(text, wrap = nil) to graphics module
|
32
|
+
- renamed loading.png to logo.png, loading_bg.png to bg.png, and loading_bar to bar.png
|
33
|
+
- changed project structure
|
34
|
+
- changed default logo, background and icon
|
35
|
+
- fixed resizing of large background images for loading screen
|
36
|
+
- changed resize method of loading screen background from fit to cover
|
37
|
+
- changed loading screen, now it is displaying progress messages
|
38
|
+
- added parse_yaml, parse_json and parse_xml to NON.files
|
39
|
+
- removed init(assets) event
|
40
|
+
- now Ruby stacktrace is displayed in nice way without Java flood
|
41
|
+
- removed some messy log messages from Gradle
|
42
|
+
- fixed Gradle runner (was throwing null pointer exception at end of build)
|
43
|
+
- added joints to NON.physics
|
44
|
+
|
45
|
+
[0.4.9]
|
46
|
+
- new API for asset loading
|
47
|
+
- added sound and music methods to Audio module
|
48
|
+
- renamed Particles.load to Particles.effect
|
49
|
+
|
50
|
+
[0.4.8]
|
51
|
+
- physics body properties changed to snake_case
|
52
|
+
|
53
|
+
[0.4.7]
|
54
|
+
- fixed YAML on Android (previous patch was not working)
|
55
|
+
- removed App.thread method, now Thread works as in normal Ruby
|
56
|
+
- now ruby runtime is properly terminated when app closes. This fixes mainly activity shutdown and reopen crashes on Android and prevents memory leaks
|
57
|
+
- renamed most methods from camelCase to snake_case
|
58
|
+
- renamed some methods totally (like getX to x, setPosition to move, isDown to down)
|
59
|
+
|
60
|
+
[0.4.6]
|
61
|
+
- removed some temporary files what I forgot to remove
|
62
|
+
- removed some debug code what I forgot to remove
|
63
|
+
- small API changes for Graphics.print, Graphics.draw, Graphics.fill and Physics.fixture
|
64
|
+
- moved some more Java code to Ruby
|
65
|
+
- updated default logo, icons and loading screen
|
66
|
+
- added automatic icon resizing. Now, instead of adding custom icon to project/non for each required icon dimension for each platform, compiler will resize one icon.png with reccomened size of 512x512 pixels to correct dimensions required by specified platform
|
67
|
+
- updated splash screens for iOS platforms
|
68
|
+
- moved loading bar to bottom of screen
|
69
|
+
- fixed major bug with Application module
|
70
|
+
- fixed major bug with YAML loading on Android. This caused to crash of projects trying to load config.yml on Android devices
|
71
|
+
- forgot to remove stdlib dependency, so now it is done
|
72
|
+
- added comparison checks for assets. Before, each time project was built, all assets was copied. Now compiler checks if they are modified
|
73
|
+
- added "clean" task to CLI
|
74
|
+
- removed --compile flag for start task
|
75
|
+
|
76
|
+
[0.4.5]
|
77
|
+
- added --compile (example: non build desktop --compile) flag which will set that all ruby code is compiled to java bytecode during build. This means performance almost equal to native Ruby (sometimes even faster) but this also means a bit slower start and build tasks. Then to force load your optimized code, just add .class suffix when using require method
|
78
|
+
- removed ALL ruby builtin and standard libraries for maximum performamce and cross-platform compatibility. Anyways, NÖN is a game engine, and all important is included in it's own libraries
|
79
|
+
- fixed few small bugs with non.launcher and joined some tasks together, so this should descrease build time by few seconds
|
80
|
+
- now resolveDependencies task is executed only when NÖN version changes and not before every task
|
81
|
+
- improved ruby backtrace (now displays only important messages)
|
82
|
+
- fixed small networking bug caused by sharing same listener instance between both client and server
|
83
|
+
- fixed small bug where compiler was creating empty "project" folder on wrong location
|
84
|
+
- merged non.launcher and non source code for easy building with single "rake" command
|
85
|
+
|
86
|
+
[0.4.4]
|
87
|
+
- added stdlib support (not tested)
|
88
|
+
- added physics module back
|
89
|
+
- some small API changes for physics and lights module
|
90
|
+
- rewrote audio, keyboard, mouse, accelerometer and touch modules in Ruby
|
91
|
+
- fixed big android bug with resource files about what I forgot before
|
92
|
+
- another structure changes of source code
|
93
|
+
- speeded up build times a bit by removing unnecessary gradle projects
|
94
|
+
- removed time module (not needed cause of Ruby) and GUI module
|
95
|
+
- added app module
|
96
|
+
|
97
|
+
[0.4.3]
|
98
|
+
- changed directory structure and removed auto-updater as this now handles RubyGems
|
99
|
+
- new event API
|
100
|
+
- updated Android plugin to 1.1.0 version
|
101
|
+
- updated Gradle to 2.3
|
102
|
+
|
103
|
+
[0.4.2]
|
104
|
+
- moved from JavaScript scripting backend to Ruby
|
105
|
+
- moved Non to RubyGems, easier and automated installation, actual command-line interface (replaced 'java -jar non.jar" with simply "non")
|
106
|
+
- changed configuration file format from JSON to YAML
|
107
|
+
|
108
|
+
[0.4.1]
|
109
|
+
- renamed setGraphics(..) method from GUI and particles module to link(..) method
|
110
|
+
- renamed particleLoader from particles module to effectLoader
|
111
|
+
- renamed load(..) method from particles module to effect(..)
|
112
|
+
- added particles sample (usage gen:particles)
|
113
|
+
- added non.time module
|
114
|
+
- added threading (usage in scripts: "non.thread(function);" )
|
115
|
+
- added contacts() method to physics module
|
116
|
+
- now desktop window title is changed correctly
|
117
|
+
|
118
|
+
[0.4.0]
|
119
|
+
- added self variable to classes
|
120
|
+
- added particles module (non.particles)
|
121
|
+
- last API changes for Joints in physics module
|
122
|
+
- fixed lights module API to match new physics and graphics API introduced in 3.9.0 update
|
123
|
+
- updated physics example to match new API changes
|
124
|
+
- removed graphics parameter from gui renderer and added setGraphics(..) method to GUI module
|
125
|
+
- loading screen resources are now properly cleared after game is loaded
|
126
|
+
- optimized game rendering code
|
127
|
+
- now not only assets loading but also game core loading (scripts, configuration) is shown on loading screen
|
128
|
+
- changed non.getPlatform() method to non.platform variable
|
129
|
+
- added non.config variable
|
130
|
+
- optimized rhino engine
|
131
|
+
|
132
|
+
[0.3.13]
|
133
|
+
- added vscroll (vertical scrollbar) to GUI module
|
134
|
+
- added hscroll (horizontal scrollbar) to GUI module
|
135
|
+
- updated GUI sample
|
136
|
+
- fixed few bugs in GUI system
|
137
|
+
- added lights demonstration to physics sample
|
138
|
+
- added pointAtLight(x, y) and pointAtShadow(x, y) to lights module. These methods tests if specified point is in light or in shadow. Usefull for roguelike games.
|
139
|
+
- refactored source code as possible preparation to add web support via GWT
|
140
|
+
- added back non.getPlatform() what I accidentally removed before
|
141
|
+
- fixed build script to actually include correct .js files from res/ folder
|
142
|
+
- fixed build script to check for changed icons and loading screen in project res/ folder
|
143
|
+
- removed android.permission.VIBRATE as this feature is no longer in Non
|
144
|
+
- added cache clearing to build.gradle
|
145
|
+
- added android.permission.INTERNET to enable non.networking module
|
146
|
+
- added Network sample (usage gen:network)
|
147
|
+
- fixed non key events to match keyboard module key events
|
148
|
+
|
149
|
+
[0.3.12]
|
150
|
+
- created GUI sample (usage java -jar non.jar gen:gui)
|
151
|
+
- added setVisible(boolean) method to keyboard and mouse modules
|
152
|
+
- added measureText(text) and measureText(text, width) methods to graphics module
|
153
|
+
- started working on GUI system (for now only button, label and text box)
|
154
|
+
- overhauled physics and graphics module (read wiki again please)
|
155
|
+
- fixed Pong example
|
156
|
+
- speeded up engine (at start it is slower than before, but after "warming up" it is a bit faster)
|
157
|
+
- changed non.touchdown(position, pointer, button) to non.touchdown(x, y, pointer, button)
|
158
|
+
- changed non.touchup(position, pointer, button) to non.touchup(x, y, pointer, button)
|
159
|
+
- changed non.touchdragged(position, pointer) to non.touchdragged(x, y, pointer)
|
160
|
+
- changed non.mousemoved(position) to non.mousemoved(x, y)
|
161
|
+
- fixed non.keytyped(character) event
|
162
|
+
- added support for setBlending from strings (additive, alpha, subtractive, multiplicative, premultiplied, replace, screen)
|
163
|
+
- added uniqueNumber and uniqueString methods to math module
|
164
|
+
- added getTint() method to graphics module
|
165
|
+
|
166
|
+
[0.3.11]
|
167
|
+
- added destroy(..) method for destroying bodies and joints to physics (usage physics.destroy(joint) or physics.destroy(body))
|
168
|
+
- added many new methods to physics module for different types of joints and joint definitions
|
169
|
+
- added physics example (usage java -jar non.jar gen:physics)
|
170
|
+
- added example of require function (usage java -jar non.jar gen:require)
|
171
|
+
- added support for classes to JavaScript engine (read Wiki for example usage)
|
172
|
+
- removed CoffeeScript support, now engine only supports JavaScript
|
173
|
+
- renamed non.cfg to config.json to actually show in what language is it and to support external editors
|
174
|
+
- removed plugin system, replaced it with module system introduced in last patch (prefix "non" is used for determining non modules)
|
175
|
+
- moved non.buffer to network.buffer
|
176
|
+
- split input module to parts, so now f.e input.keyboard is keyboard, input.mouse is mouse etc
|
177
|
+
- fixed bug when clearing screen via graphics.clear method caused to erase all text from screen permanently (now calling clear method is required before drawing anything on screen and not optional as before)
|
178
|
+
- added queryAABB method to physics
|
179
|
+
- optimized calling of functions from scripts by storing them properly in variables
|
180
|
+
- fixed unproject method from graphics module
|
181
|
+
|
182
|
+
[0.3.10]
|
183
|
+
- added awesome method of handling multiple script files similar to node.js
|
184
|
+
- removed non.require as it was never working
|
185
|
+
- moved launcher source code to separate repository to decrease amount of downloaded data for each update and to split versioning of launcher and Non
|
186
|
+
- added checks for outdated non.jar version
|
187
|
+
- replaced Lua support with CoffeeScript and optional JavaScript
|
188
|
+
- removed support for custom scripting languages (sorry folks :/)
|
189
|
+
- removed need of adding "language" to non.cfg
|
190
|
+
|
191
|
+
[0.3.9]
|
192
|
+
- fixed major dependency resolving bug (thanks to Murii for finding it)
|
193
|
+
|
194
|
+
[0.3.8]
|
195
|
+
- more output logs from gradle
|
196
|
+
- changed some previous output logs to be more clear
|
197
|
+
- fixed weird whitespace with warnings
|
198
|
+
- removed logging of dexing warnings
|
199
|
+
|
200
|
+
[0.3.7]
|
201
|
+
- fixed desktop:run task finally
|
202
|
+
- fixed few visual bugs in console
|
203
|
+
|
204
|
+
[0.3.6]
|
205
|
+
- revamped Non launcher, now it automatically updates your Non version
|
206
|
+
- renamed hello task from gen:hello to hello
|
207
|
+
|
208
|
+
[0.3.5]
|
209
|
+
- updated Gradle Android to 0.14.4
|
210
|
+
- updated RoboVM to 1.0.0-beta-03
|
211
|
+
- updated LibGDX to 1.5.3
|
212
|
+
- updated Gradle to 2.2
|
213
|
+
- revamped physics plugin again (read Physics and Box2D section on Wiki)
|
214
|
+
- added support for fixtures to physics plugin
|
215
|
+
- renamed non.getWidth to non.width
|
216
|
+
- renamed non.getHeight to non.height
|
217
|
+
- renamed non.getConfig to non.config
|
218
|
+
- renamed non.getDelta to non.delta
|
219
|
+
- renamed non.getFPS to non.fps
|
220
|
+
- renamed non.checkPlatform to non.platform
|
221
|
+
- removed non.getPlatform
|
222
|
+
- fixed android:run task (read Running and packaging a project section on Wiki)
|
223
|
+
- fixed loading of physics plugin
|
224
|
+
- fixed bug where gradlew was not recognized as executable on Unix systems
|
225
|
+
- fixed major bug with handling mouse and touch input
|
226
|
+
- optimized console launcher a bit
|
227
|
+
- fixed bug when task fails, it was not recognizing it until all tasks ended
|
228
|
+
- console now properly ignores fake errors from LuaJ and Rhino libraries (Lua and JavaScript)
|
229
|
+
|
230
|
+
[0.3.4]
|
231
|
+
- added proper loading animation for Non command line
|
232
|
+
- added getPosition method to input.touch
|
233
|
+
- added option for hiding mouse (desktop only) with show() and hide() methods
|
234
|
+
- added automatic dependency loading to plugins
|
235
|
+
|
236
|
+
[0.3.3]
|
237
|
+
- simplified logging of non.jar CLI
|
238
|
+
- added support for multi-threading for JavaScript, not yet working on Lua
|
239
|
+
- fixed translate method in graphics plugin
|
240
|
+
- added project and unproject method to graphics plugin
|
241
|
+
- now logging functions do not return values (was returning always NULL)
|
242
|
+
- removed warning logging level
|
243
|
+
- error logging level do not force quit application
|
244
|
+
- tweaked default log messages a bit
|
245
|
+
- added setting for log level to non.cfg
|
246
|
+
- fixed networking
|
247
|
+
- semi-fixed desktop:run task from CLI (still failing to load resources)
|
248
|
+
- now update task from CLI properly clears unused plugins and languages
|
249
|
+
- plugin loader now uses reflection and not initializer class what was generated by gradle
|
250
|
+
- because of above update, moved all internal plugins from "non.plugins.internal" to "non.plugins" package
|
251
|
+
- added checks for missing configurations from non.cfg
|
252
|
+
- added checks for missing resources
|
253
|
+
- added checks for missing plugins
|
254
|
+
|
255
|
+
[0.3.2]
|
256
|
+
- revamped Non launcher, now only non.jar is required (this also changed some commands, so please read again the Wiki)
|
257
|
+
- fixed bug what caused that mobile devices thought that all apps made by non are same (so when you tried to install 2 different Non projects on your device, second one simply replaced first one)
|
258
|
+
- added "package" property to non.cfg
|
259
|
+
- added sqrt() to math plugin
|
260
|
+
- added pow() to math plugin
|
261
|
+
|
262
|
+
[0.3.1]
|
263
|
+
- added non.buffer what can be used for reading and writing data to and from byte array
|
264
|
+
- added checks for not existing functions to scripting
|
265
|
+
- added more features to math plugin
|
266
|
+
- added get() method to scripting
|
267
|
+
- revamped physics plugin
|
268
|
+
- removed "raw" argument for loading assets, now it is automatically determined if file should be loaded directly or via asset loader
|
269
|
+
- removed init() method from scripting
|
270
|
+
- replaced hacky networking with KryoNet (still WIP, some threading issues with scripting)
|
271
|
+
|
272
|
+
[0.3.0]
|
273
|
+
- added drawing of various shapes to graphics plugin
|
274
|
+
- added new method to graphics plugin for drawing formatted text (printf)
|
275
|
+
- added new method to graphics plugin for drawing texture quad (drawq)
|
276
|
+
- added 2 new examples to gen task: Hello World and Pong
|
277
|
+
- added line and quad to math plugin
|
278
|
+
- added support for custom scripting languages
|
279
|
+
- changed non.cfg "main" to "language" and changed its functionality
|
280
|
+
- removed input.keyboard.isKeyJustPressed
|
281
|
+
- removed input.touch.isJustTouched
|
282
|
+
- removed input.mouse.isJustClicked
|
283
|
+
- renamed graphics.texture to graphics.imageLoader
|
284
|
+
- renamed graphics.font to graphics.fontLoader
|
285
|
+
- renamed audio.sound to audio.soundLoader
|
286
|
+
- renamed audio.music to audio.musicLoader
|
287
|
+
- renamed graphics.newTexture to graphics.image
|
288
|
+
- renamed graphics.newFont to graphics.color
|
289
|
+
- renamed graphics.newShader to graphics.shader
|
290
|
+
- renamed graphics.newColor to graphics.color
|
291
|
+
- renamed graphics.setBackground to graphics.clear
|
292
|
+
- renamed graphics.setColor to graphics.tint
|
293
|
+
- renamed input.keyboard.isKeyPressed to input.keyboard.isDown
|
294
|
+
- renamed input.touch.isTouched to input.touch.isDown
|
295
|
+
- renamed input.mouse.isClicked to input.mouse.isDown
|
296
|
+
- renamed math.newVector to math.vector
|
297
|
+
- renamed math.newRectangle to math.rectangle
|
298
|
+
- renamed math.newCircle to math.circle
|
299
|
+
- renamed math.newPolygon to math.polygon
|
300
|
+
- renamed math.newPolyline to math.polyline
|
301
|
+
- renamed network.newServer and network.newClient to network.server and network.client
|
302
|
+
- renamed physics.newShape to physics.shape
|
303
|
+
- removed need for using graphics.begin and graphics.display when drawing anything
|
304
|
+
- fixed graphics.translate and graphics.rotate
|
305
|
+
- fixed calling of resize event
|
306
|
+
|
307
|
+
[0.2.0]
|
308
|
+
- added asynchromous resource loading (use non.load(assets) event) along with super sexy loading screen what is displayed during loading
|
309
|
+
- removed TILED support (sorry, I wasn´t able to make it work with normal coordinate system)
|
310
|
+
- totally revamped graphics, audio and input plugin
|
311
|
+
- added some new events for handling input
|
312
|
+
- removed need of entire res/ folder for new projects
|
313
|
+
- fixed major bug with Lua integration what I do not noticed before
|
314
|
+
- added non.exit method what will quit current game
|
315
|
+
- added option for changing display mode for desktop from non.cfg
|
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2014-2015 Thomas Slusny
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/Makefile
ADDED
data/README.md
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
![logo](https://raw.githubusercontent.com/non2d/non/master/lib/data/non/logo.png)
|
2
|
+
|
3
|
+
NÖN is an engine you can use to make 2D games in **Ruby** and **Lua**. It's free, open-source, and works on **Windows**, **Mac OS X**, **Linux**, **Android** and **iOS**.
|
4
|
+
|
5
|
+
### Installation ###
|
6
|
+
|
7
|
+
You will need to have [JDK 7+](http://www.oracle.com/technetwork/java/javase/downloads/index.html) installed. Then you can install NÖN as gem ([RubyGems](https://rubygems.org/) required)
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem install non
|
11
|
+
```
|
12
|
+
|
13
|
+
or as rock ([LuaRocks](https://luarocks.org/) required)
|
14
|
+
|
15
|
+
```lua
|
16
|
+
luarocks install non
|
17
|
+
```
|
18
|
+
|
19
|
+
### Getting Started ###
|
20
|
+
|
21
|
+
* [Introduction](https://github.com/non2d/non/wiki/Introduction)
|
22
|
+
* [Create your first Non project](https://github.com/non2d/non/wiki/Getting-started)
|
23
|
+
* [Run, Manage and Package your project]( https://github.com/non2d/non/wiki/Running-and-packaging-your-project)
|
24
|
+
* [Read the Wiki](https://github.com/non2d/non/wiki)
|
25
|
+
|
26
|
+
### Documentation ###
|
27
|
+
|
28
|
+
The [Wiki](https://github.com/non2d/non/wiki) contains all the information you'll need to write a Non game. You can contribute to the Wiki directly here on GitHub!
|
29
|
+
|
30
|
+
### Reporting Issues ###
|
31
|
+
|
32
|
+
Use the [issue tracker](https://github.com/non2d/non/issues) here on GitHub to report issues.
|
data/Rakefile
ADDED
data/bin/lua/non
ADDED
data/bin/lua/non.lua
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
#!/usr/bin/env lua
|
2
|
+
|
3
|
+
local FILE = debug.getinfo(1,"S").source:sub(2)..".jar"
|
4
|
+
|
5
|
+
NON = {}
|
6
|
+
|
7
|
+
function NON.hello(language) {
|
8
|
+
os.execute("java -jar \""..FILE.."\" hello "..language)
|
9
|
+
}
|
10
|
+
|
11
|
+
function NON.start(platform) {
|
12
|
+
os.execute("java -jar \""..FILE.."\" start "..platform)
|
13
|
+
}
|
14
|
+
|
15
|
+
function NON.build(platform) {
|
16
|
+
os.execute("java -jar \""..FILE.."\" build "..platform)
|
17
|
+
}
|
18
|
+
|
19
|
+
function NON.update() {
|
20
|
+
os.execute("java -jar \""..FILE.."\" update")
|
21
|
+
}
|
22
|
+
|
23
|
+
function NON.clean() {
|
24
|
+
os.execute("java -jar \""..FILE.."\" clean")
|
25
|
+
}
|
26
|
+
|
27
|
+
function NON.version() {
|
28
|
+
os.execute("java -jar \""..FILE.."\" version")
|
29
|
+
}
|
data/bin/non
ADDED
data/bin/non.jar
ADDED
Binary file
|
@@ -0,0 +1,31 @@
|
|
1
|
+
package = "non"
|
2
|
+
version = "0.5.0-1"
|
3
|
+
|
4
|
+
source = {
|
5
|
+
url = "git://github.com/non2d/non.git",
|
6
|
+
tag = "v0.5.0"
|
7
|
+
}
|
8
|
+
|
9
|
+
description = {
|
10
|
+
summary = "A platform for developing games using Ruby and Lua on Windows, Linux, Mac, Android and iOS.",
|
11
|
+
detailed = "NÖN is an engine you can use to make 2D games in Ruby and Lua. It's free, open-source, and works on Windows, Mac OS X, Linux, Android and iOS.",
|
12
|
+
homepage = "http://non2d.github.io",
|
13
|
+
maintainer = "Thomas Slusny <slusnucky@gmail.com>",
|
14
|
+
license = "MIT"
|
15
|
+
}
|
16
|
+
|
17
|
+
dependencies = {
|
18
|
+
"lua ~> 5.1",
|
19
|
+
}
|
20
|
+
|
21
|
+
build = {
|
22
|
+
type = "builtin",
|
23
|
+
|
24
|
+
modules = {
|
25
|
+
["non"] = "bin/lua/non.lua"
|
26
|
+
},
|
27
|
+
|
28
|
+
install = {
|
29
|
+
bin = { "bin/non.jar", "bin/lua/non" }
|
30
|
+
}
|
31
|
+
}
|
data/non.gemspec
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "non"
|
7
|
+
spec.version = "0.5.0"
|
8
|
+
spec.authors = ["Thomas Slusny"]
|
9
|
+
spec.email = ["slusnucky@gmail.com"]
|
10
|
+
|
11
|
+
spec.summary = %q{A platform for developing games using Ruby and Lua on Windows, Linux, Mac, Android and iOS.}
|
12
|
+
spec.description = %q{NÖN is an engine you can use to make 2D games in Ruby and Lua. It's free, open-source, and works on Windows, Mac OS X, Linux, Android and iOS.}
|
13
|
+
spec.homepage = "http://non2d.github.io"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|lib)/}) }
|
17
|
+
spec.date = Time.now.strftime("%Y-%m-%d")
|
18
|
+
spec.executables = ["non.jar", "non"]
|
19
|
+
|
20
|
+
spec.add_development_dependency "bundler", "~> 1.8"
|
21
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
22
|
+
end
|
metadata
ADDED
@@ -0,0 +1,89 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: non
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.5.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Thomas Slusny
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-03-22 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.8'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.8'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
description: NÖN is an engine you can use to make 2D games in Ruby and Lua. It's free,
|
42
|
+
open-source, and works on Windows, Mac OS X, Linux, Android and iOS.
|
43
|
+
email:
|
44
|
+
- slusnucky@gmail.com
|
45
|
+
executables:
|
46
|
+
- non.jar
|
47
|
+
- non
|
48
|
+
extensions: []
|
49
|
+
extra_rdoc_files: []
|
50
|
+
files:
|
51
|
+
- ".gitignore"
|
52
|
+
- CHANGES
|
53
|
+
- Gemfile
|
54
|
+
- LICENSE
|
55
|
+
- Makefile
|
56
|
+
- README.md
|
57
|
+
- Rakefile
|
58
|
+
- bin/lua/non
|
59
|
+
- bin/lua/non.lua
|
60
|
+
- bin/non
|
61
|
+
- bin/non.jar
|
62
|
+
- non-0.5.0-1.rockspec
|
63
|
+
- non.gemspec
|
64
|
+
homepage: http://non2d.github.io
|
65
|
+
licenses:
|
66
|
+
- MIT
|
67
|
+
metadata: {}
|
68
|
+
post_install_message:
|
69
|
+
rdoc_options: []
|
70
|
+
require_paths:
|
71
|
+
- lib
|
72
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - ">="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0'
|
82
|
+
requirements: []
|
83
|
+
rubyforge_project:
|
84
|
+
rubygems_version: 2.2.3
|
85
|
+
signing_key:
|
86
|
+
specification_version: 4
|
87
|
+
summary: A platform for developing games using Ruby and Lua on Windows, Linux, Mac,
|
88
|
+
Android and iOS.
|
89
|
+
test_files: []
|