Search found 92 matches

by MicroMacro
Wed May 13, 2015 2:16 am
Forum: Support and Development
Topic: Does Love work on Raspbian?
Replies: 9
Views: 2063

Does Love work on Raspbian?

Hai! I wanna make a game console using the new Raspberry Pi 2 I just picked up. I wanna do a few things: 1: Run games I develop using .love files. 2: Autorun a base "game console" application that lets you run my games 3: Download updates for games from the internet Does Love work on the P...
by MicroMacro
Sun May 03, 2015 6:13 pm
Forum: Support and Development
Topic: math.random not working
Replies: 3
Views: 1735

Re: math.random not working

EDIT: I figured it out. I forgot to call math.randomseed() beforehand. I basically use os.time() to get the seed.
by MicroMacro
Sun May 03, 2015 6:08 pm
Forum: Support and Development
Topic: math.random not working
Replies: 3
Views: 1735

math.random not working

Hey there. I'm trying to make the main menu select randomly between 4 love audio sources that I've created. Problem is math.random won't work; it always returns 1. The code couldn't be simpler: song = music.mood.happy[math.random(1,4)] Anyone have any idea why math.random is only returning 1? I've t...
by MicroMacro
Wed Apr 22, 2015 4:14 pm
Forum: Support and Development
Topic: Question about variables
Replies: 5
Views: 969

Question about variables

Hello there. :) I am developing a button library. I was wondering how to do a few things that would make it very easy to use. I've noticed that a lot of different functions use syntax like: thinga = makeanewthing(thingparameters) thinga:dosomething() How would I make the variable work like this, and...
by MicroMacro
Sat Apr 11, 2015 3:15 am
Forum: Support and Development
Topic: Question about indexing tables
Replies: 7
Views: 2848

Re: Question about indexing tables

EDIT: Nevermind. I figured out how to use these again. :ultrahappy:
by MicroMacro
Sat Apr 11, 2015 2:55 am
Forum: Support and Development
Topic: Question about indexing tables
Replies: 7
Views: 2848

Re: Question about indexing tables

Yeah, I might need a better example. Here's what the full block tables look like: blocks = {} blocks["block1"] = {} blocks["block1"].name = "block1" blocks["block1"].funct = function() print("Debug") end blocks["block2"] = {} blocks["b...
by MicroMacro
Sat Apr 11, 2015 2:39 am
Forum: Support and Development
Topic: Question about indexing tables
Replies: 7
Views: 2848

Question about indexing tables

So, I'm doing something for a school project, and I am setting up an id system using string names, i.e.: blocks = {} blocks["block1"] = {} I would like to run a for loop to grab the data from all the available blocks. My problem is that a for loop only counts numbers. How do I get it to in...
by MicroMacro
Sun Apr 05, 2015 4:58 am
Forum: Support and Development
Topic: VisualLOVE
Replies: 2
Views: 1348

Re: VisualLOVE

No one? Bummer
by MicroMacro
Sat Apr 04, 2015 8:15 pm
Forum: Support and Development
Topic: Multiple Entity Collsions
Replies: 9
Views: 4768

Re: Multiple Entity Collsions

Okay, so it's not perfect. I've commented where I've edited, and I've enabled the console so that you can see when it collides. It should print "dead" when it collides.
by MicroMacro
Sat Apr 04, 2015 8:00 pm
Forum: Support and Development
Topic: Multiple Entity Collsions
Replies: 9
Views: 4768

Re: Multiple Entity Collsions

AHAH! I did it! Ill post code when I get it fine tuned. :)