Search found 395 matches

by Kingdaro
Mon Nov 22, 2010 10:28 pm
Forum: Libraries and Tools
Topic: Watch the stars fly!
Replies: 20
Views: 3116

Re: Watch the stars fly!

thelinx wrote:
bartbes wrote:Also, note that ipairs might get deprecated in lua 5.2.
Actually, they changed their minds. ipairs is staying.
Okay that's good. I might consider using it one day, maybe not today. :)
by Kingdaro
Mon Nov 22, 2010 10:02 pm
Forum: Libraries and Tools
Topic: Watch the stars fly!
Replies: 20
Views: 3116

Re: Watch the stars fly!

bartbes wrote:Also, note that ipairs might get deprecated in lua 5.2.
inb4peoplegoingape<censored>

It's kind of funny how this tiny little gadget got more attention than my other much bigger project.
by Kingdaro
Mon Nov 22, 2010 9:34 pm
Forum: Libraries and Tools
Topic: Watch the stars fly!
Replies: 20
Views: 3116

Re: Watch the stars fly!

I'm much more comfortable with using for i=1, #table [..] I never really bothered to get the concept of pairs/ipairs Iterating arrays that way can be faster (eliminating iterator function call overhead), but only if you index the table you're iterating no more than ~1-2 times in the loop body, and ...
by Kingdaro
Mon Nov 22, 2010 8:21 pm
Forum: Libraries and Tools
Topic: Watch the stars fly!
Replies: 20
Views: 3116

Re: Watch the stars fly!

Thanks everyone for the ideas! The current state of the demo is excellent! I couldn't have done it without all your help. ^^ Also, I'm much more comfortable with using for i=1, #table since it's what I've been using ever since I started using Lua and I never really bothered to get the concept of pai...
by Kingdaro
Sun Nov 21, 2010 11:06 pm
Forum: Libraries and Tools
Topic: Watch the stars fly!
Replies: 20
Views: 3116

Re: Watch the stars fly!

A little somethin' I decided to whip up in a couple hours. Stars.love Hi! That remember more snow fall than stars but is always a nice effect. Look, shouldn't be a Mac issue but it seems that from time to time things stop a bit. Let's wait for other reports to see if it's only happening here. Also ...
by Kingdaro
Sun Nov 21, 2010 9:48 pm
Forum: Libraries and Tools
Topic: Watch the stars fly!
Replies: 20
Views: 3116

Watch the stars fly!

A little somethin' I decided to whip up in a couple hours.
Stars.love
(2.28 KiB) Downloaded 176 times
Stars ver 2.love
(2.51 KiB) Downloaded 240 times
by Kingdaro
Tue Oct 19, 2010 7:05 pm
Forum: Games and Creations
Topic: Beat Jam - My Epix new rhythm game!
Replies: 18
Views: 8698

Re: Beat Jam - My Epix new rhythm game!

Hey guys! It's been a while since my last update, but I'm still alive and working! :) First of all, linked is a demo of the new song selection screen. I'm kind of doing another re-coding so that's why there's not any gameplay yet. You can use the left and right arrow keys to change the song's select...
by Kingdaro
Wed Oct 06, 2010 11:11 am
Forum: Support and Development
Topic: "math.random()" isn't all that random.
Replies: 4
Views: 542

Re: "math.random()" isn't all that random.

leiradel wrote:
TechnoCat wrote:You should be setting a random seed before you generate random numbers.

Code: Select all

math.randomseed( os.time() )
Also, math.random uses libc's rand which isn't very good on some system though for many games it will do well.
Problem solved. Thanks ^^
by Kingdaro
Wed Oct 06, 2010 2:15 am
Forum: Support and Development
Topic: "math.random()" isn't all that random.
Replies: 4
Views: 542

"math.random()" isn't all that random.

Every time I open my game, a function that should be generating RANDOM numbers is generating the same combination of numbers EVERY TIME. Here's the code to my randomizing function that randomizes the list: function tRandom(t) local values = {} for i=1, #t do local n = #values+1 table.insert(values,m...
by Kingdaro
Thu Sep 02, 2010 7:25 pm
Forum: Libraries and Tools
Topic: My own action adventure engine
Replies: 61
Views: 10265

Re: Action adventure game map test

Found a bug where in some instances you can walk through walls:
love 2010-09-02 15-23-32-11.png
love 2010-09-02 15-23-32-11.png (3.73 KiB) Viewed 3962 times
love 2010-09-02 15-23-40-97.png
love 2010-09-02 15-23-40-97.png (3.91 KiB) Viewed 3962 times
(Windows 7) After it seems that the music ends, love.exe has stopped working.