-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
57 changed files
with
1,805 additions
and
794 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
--[[ | ||
ONEMenu | ||
Application, themes and files manager. | ||
Licensed by Creative Commons Attribution-ShareAlike 4.0 | ||
http://creativecommons.org/licenses/by-sa/4.0/ | ||
Designed By Gdljjrod & DevDavisNunez. | ||
Collaborators: BaltazaR4 & Wzjk. | ||
]] | ||
|
||
--[[ | ||
Particles FX library. | ||
Draw a shower of particles. | ||
Licensed by GNU General Public License v3.0 | ||
Designed By: | ||
- DevDavisNunez (https://twitter.com/DevDavisNunez). | ||
]] | ||
|
||
stars = {math={}} -- module stars! :D | ||
|
||
function stars.init(c) | ||
math.randomseed(os.clock()) | ||
--stars.obj = image.new(3,3,c or color.new(255,255,255)) | ||
stars.color = c or color.new(255,255,255) | ||
for i=1,100 do | ||
stars.math[i] = {x=math.random(0,960), y=math.random(0,544), s=(math.random(0,3)+math.random(0,2)), a=math.random(0,255)} | ||
end | ||
end | ||
|
||
function stars.render() | ||
for i=1,100 do | ||
stars.math[i].y+=stars.math[i].s | ||
stars.math[i].a-=1 | ||
if stars.math[i].y>=544 then | ||
stars.math[i].x=math.random(0,960) | ||
stars.math[i].y=0 | ||
end | ||
if stars.math[i].a<=0 then | ||
stars.math[i].a=255 | ||
end | ||
--stars.obj:blit(stars.math[i].x, stars.math[i].y,stars.math[i].a) | ||
draw.circle(stars.math[i].x, stars.math[i].y, 3, stars.color:a(stars.math[i].a)) | ||
end | ||
end | ||
|
||
stars.init(color.white) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--[[ | ||
## Library Wave ## | ||
Designed By DevDavis (Davis Nuñez) 2015 - 2016. | ||
Based on library of Nekerafa. | ||
Create a obj Wave, this is very usefull for more custom graphics | ||
]] | ||
function newWave() | ||
local obj = {x=0,y=0,a=255,img=nil} | ||
function obj:begin(path) | ||
obj.img = image.load(path) | ||
--obj.img:flipv() | ||
return obj.img != nil | ||
end | ||
function obj:finalize(path) | ||
-- obj.img:free() | ||
obj.img = nil | ||
end | ||
function obj:xy(x,y) | ||
obj.x = (x or obj.x) | ||
obj.y = (y or obj.y) | ||
end | ||
function obj:alfa(a) | ||
if a then obj.a = a end | ||
if obj.a > 255 then obj.a = 255 end | ||
if obj.a < 0 then obj.a = 0 end | ||
return obj.a | ||
end | ||
function obj:state() | ||
return obj.img != nil | ||
end | ||
function obj:blit(v,a) | ||
if obj.img then | ||
obj.img:flipv() | ||
if obj.x < 0 then obj.x = obj.x + 960 end | ||
obj.x += (v or 2) | ||
-- Medidas Empieza a dibujar en el 111px y mide 161 lo sobrante, pero restamos el size de la barra inferior, resulta 137 | ||
obj.img:blit(obj.x, obj.y, 0, 0, 960-obj.x, 544, (a or obj.a)) --obj.img:blit(obj.x, obj.y) --obj.img:blit(obj.x-480, obj.y) | ||
obj.img:blit(obj.x-960, obj.y, 0, 0, 960, 544, (a or obj.a)) | ||
if obj.x >= 960 then obj.x = 0 end | ||
end | ||
end | ||
return obj | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
-- Constants | ||
APP_REPO = "ONElua" | ||
APP_PROJECT = "AutoPlugin2"--"Test"-- | ||
APP_PROJECT = "AutoPlugin2"--Test | ||
APP_FOLDER = "AUTOPLUG2" | ||
|
||
APP_VERSION_MAJOR = 0x01 -- major.minor | ||
APP_VERSION_MINOR = 0x28 | ||
APP_VERSION_MAJOR = 0x02 -- major.minor | ||
APP_VERSION_MINOR = 0x00 | ||
APP_VERSION = ((APP_VERSION_MAJOR << 0x18) | (APP_VERSION_MINOR << 0x10)) -- Union Binary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.