Search found 482 matches

by substitute541
Thu May 08, 2014 9:26 am
Forum: Libraries and Tools
Topic: luacolors: A color utility library
Replies: 1
Views: 776

luacolors: A color utility library

luacolors is a color utility library for Lua.

Contains color conversion functions (including RGB-to-XYZ, RGB-to-Lab, RGB-to-HSL, etc.) and all the CSS web colors.

Github
Readme
luacolors.lua
version 0.1.0
(5.15 KiB) Downloaded 104 times
by substitute541
Wed May 07, 2014 6:09 am
Forum: Libraries and Tools
Topic: Oysi's 3D Rendering & Physics Engine
Replies: 125
Views: 34793

Re: 3D Rigid Body Physics

This is awesome!

Reminds me of my own 3D engine which I discontinued because it sucked. I don't have my graphics card yet though, so I can't do anything that requires shaders.

Also,
shaders.png
shaders.png (921 Bytes) Viewed 2122 times
by substitute541
Tue May 06, 2014 9:43 am
Forum: Support and Development
Topic: Small Useful Functions
Replies: 127
Views: 25038

Re: Small extra functions

Here are two functions that approximate sine and cosine (haven't benchmarked it yet though) : local TPI = math.pi*2 local PI = math.pi local math_abs = math.abs local math_floor = math.floor function fastSin(x) local tpi = TPI local pi = PI local t = math_abs(-2*math_floor(x/tpi+0.75) + x/pi + 0.5) ...
by substitute541
Mon May 05, 2014 10:28 am
Forum: General
Topic: [Forum Game] Potato Count!
Replies: 7
Views: 866

Re: [Forum Game] Potato Count!

Limang potato!

I don't even know what I'm doing anymore.
by substitute541
Wed Apr 30, 2014 9:34 am
Forum: General
Topic: Code Doodles!
Replies: 155
Views: 72712

Re: Code Doodles!

Here's my second one: Galaxies! :D Press spacebar to change galaxies. Galaxies.png Code messy and mostly uncommented due to laziness. -- code doodle: galaxies -- by phoenix enero local screen = {} math.randomseed(os.time())math.random()math.random() local NOISESEED = math.random()*60000 function lov...
by substitute541
Tue Apr 22, 2014 8:37 am
Forum: General
Topic: I would like help with my basic platforming stuff
Replies: 8
Views: 1028

Re: I would like help with my basic platforming stuff

Liquid Tungsten wrote:Another off-topic: What's with this whole "Obey" thing? I don't really get it.
viewtopic.php?f=3&t=9
by substitute541
Mon Apr 21, 2014 2:39 am
Forum: Support and Development
Topic: How do I aimbot?
Replies: 12
Views: 2818

Re: How do I aimbot?

I think this wikipedia article would be a good read.
by substitute541
Sun Apr 20, 2014 2:53 am
Forum: Support and Development
Topic: Small Useful Functions
Replies: 127
Views: 25038

Re: Small extra functions

... I also made a small function to get the average value of numbers: function math.med( ... ) local args = { ... } local ret = 0 for i = 1, #args do ret = ret + args[i] end return ret/#args end The average is called mean (or arithmetic mean) not median. The median picks the midpoints of a (sorted)...
by substitute541
Fri Apr 18, 2014 9:02 am
Forum: General
Topic: The new LOVE2D home page
Replies: 14
Views: 2570

Re: The new LOVE2D home page

Konami Code still works. :P
by substitute541
Sun Apr 13, 2014 1:04 am
Forum: Support and Development
Topic: how exactly dt works?
Replies: 5
Views: 1016

Re: how exactly dt works?

Like Jeeper said, limiting frames isn't all that useful. It would be useful however, to limit frame rates if your fps goes too low (say, 6 FPS.) If that happens, you can do three things: Ignore FPS drop (this would make dt large, and thus may make your frame-by-frame calculations inaccurate.) Limit ...