Search found 410 matches

by miko
Thu Jun 05, 2014 6:59 am
Forum: Support and Development
Topic: Trying to Get Rid of Globals
Replies: 9
Views: 2785

Re: Trying to Get Rid of Globals

I do not consider myself a professional coder, but I pass it by as a hobby. To my understanding, it is standard etiquette to avoid global declarations. To my limited knowledge, I have made some globals into locals. You need in terms of "scope" - usually, globals mean accessible in every p...
by miko
Fri Dec 13, 2013 8:44 am
Forum: Support and Development
Topic: Advices for multiplayer game
Replies: 8
Views: 7301

Re: Advices for multiplayer game

- No dedicated host (at least for the first version), one player will host. I would implement the server in plain lua+luasocker, using UDP as a protocol, even if your final game will not use the dedicated server (i.e. one of the clients will act as a server). The reason is that it will guarantee lo...
by miko
Sat Nov 23, 2013 11:54 pm
Forum: Support and Development
Topic: passing additional arguments to a function using '...' ?
Replies: 1
Views: 1018

Re: passing additional arguments to a function using '...' ?

ArchAngel075 wrote:Im at a lot with this.. so any advice is greatly appreciated!
Please could you attach a *.love file demonstrating what does not work for you? Because it does work for me (see attachment), or I do not understand your problem correctly.
by miko
Fri Nov 15, 2013 7:32 am
Forum: Games and Creations
Topic: Ross - An Alpha Showcase
Replies: 9
Views: 5583

Re: Ross - An Alpha Showcase

Sorry about the errors, it does happen. Just run it again and see if it works :) Thats not the real solution ;( The error comes from this line: frame = math.random(1,20), in player/coin.lua:10, and then coinSprites:start(coins[i].frame) in main.lua. Basically if frame number is larger than the actu...
by miko
Thu Nov 14, 2013 11:43 am
Forum: Support and Development
Topic: [SOLVED] Verb-Noun Parser
Replies: 23
Views: 10534

Re: Verb-Noun Parser

Wow thanks, this example is great but looking through the code I see some meta table stuff and objects so I would need to learn a bit about meta methods and OOP before I can fully implement this into my own code but thanks alot! The most important is the concept to tokenize the input, and - for eac...
by miko
Wed Nov 13, 2013 2:33 pm
Forum: Support and Development
Topic: [SOLVED] Verb-Noun Parser
Replies: 23
Views: 10534

Re: Verb-Noun Parser

I want to make a verb-noun parser for my visual novel game engine. A verb-noun parser is used to recognize input made as strings by the player. For example you could type in "open door", then the computer will use the verb-noun parser to recognize the word open as a verb, you are telling ...
by miko
Tue Oct 22, 2013 2:12 pm
Forum: Support and Development
Topic: Paint program
Replies: 29
Views: 19405

Re: Paint program

iPoisonxL wrote: Hi. I'm trying to create a paint program, and it's working well.
If you were using canvases, it would work even better - attached:
main-canvas.love
(594 Bytes) Downloaded 546 times
by miko
Wed Oct 16, 2013 8:00 pm
Forum: General
Topic: Ubuntu issue
Replies: 9
Views: 4788

Re: Ubuntu issue

Typing "love" into the Terminal in the directory of the 'main.lau' file, it naturally justs launches Love with the piggywiggy as I said before. As for "loading 'main.lau' instead of the directory it's located in" makes no sense, could you explain futher what you mean please Lafo...
by miko
Fri Sep 27, 2013 10:38 am
Forum: Support and Development
Topic: 3d projection problem
Replies: 3
Views: 2050

Re: 3d projection problem

The key problem is matrix multiplication, in function matrix.carryOut3d( ). Any suggestions would be appreciated. I'm pretty sure Jasoco would have something to add. For me it is working OK. I think your problem is the camera and/or anchor point position. Can you describe what a "weird output&...
by miko
Wed Aug 28, 2013 11:40 am
Forum: Support and Development
Topic: Connecting to a usb port?
Replies: 22
Views: 8219

Re: Connecting to a usb port?

If it just registered as a data transfer device, you can try opening the device file accompanying it, /dev/ttyUSB<something> on linux, or COM<something> on windows (I think the usb ones start at 4, so try COM4 first). Keep in mind you will need to set the baud rate etc externally. Right, if you wer...