Search found 286 matches
- Sun Dec 04, 2016 9:54 am
- Forum: Libraries and Tools
- Topic: sock.lua - A simple networking library for LÖVE
- Replies: 80
- Views: 73237
Re: sock.lua - A simple networking library for LÖVE
I actually just started using Ikroth's sock library and am thoroughly enjoying how easy it is making networking for me. Using the latest version of love too!
- Sun Dec 04, 2016 8:08 am
- Forum: Support and Development
- Topic: Help with OOP
- Replies: 11
- Views: 7041
Re: Help with OOP
Just a small note: item = {} item.__index = item function item:new(id) local item_object = setmetatable({}, item) return item_object end Seems that "item.__index = item" doesn't do anything at all. You might want to check that again, the example I wrote works fine. You might have a point ...
- Sun Dec 04, 2016 7:08 am
- Forum: Support and Development
- Topic: Help with OOP
- Replies: 11
- Views: 7041
Re: Help with OOP
Firehawks example sounds exactly like what you wanted, it's basically an item manager. Though it probably uses concepts like metatables that you are unfamiliar with. Learning metatables is probably where you want to start if you want to look into the use of objects.
- Sat Dec 03, 2016 5:34 pm
- Forum: General
- Topic: Tips to start Game programming - Beginners
- Replies: 10
- Views: 7858
Re: Tips to start Game programming - Beginners
Plenty of all of those resources here. My tip would be to use the search bar at the top right of the web page to search for any of the things you just mentioned.
- Sat Dec 03, 2016 2:13 pm
- Forum: Support and Development
- Topic: Help with OOP
- Replies: 11
- Views: 7041
Re: Help with OOP
Yes, OOP is possible in Lua. There isn't a typical class structure in Lua like there is in Python for example, instead we can use metatables and metamethods. list = {} item = {} item.__index = item --The index metamethod is defined for our item class. This means that any table whose metatable is the...
- Thu Dec 01, 2016 9:32 am
- Forum: Support and Development
- Topic: How make rain/snowfall/mist effect ?
- Replies: 4
- Views: 5828
Re: How make rain/snowfall/mist effect ?
Of course it's possible :). Like Bob Ross said, "[Your program] is your world, you can create anything that you can imagine." I just recently have started using particles to create effects, I think it would be excellent for rain/snow/mist also! I recommend playing with the example particle...
- Tue Nov 29, 2016 1:15 pm
- Forum: General
- Topic: compile error
- Replies: 3
- Views: 2603
Re: compile error
Hi there, welcome to the forums.
It's going to be pretty difficult to help you debug your code unless we can see it, would you mind posting your code or attaching a .love file here?
It's going to be pretty difficult to help you debug your code unless we can see it, would you mind posting your code or attaching a .love file here?
- Tue Nov 29, 2016 6:09 am
- Forum: Games and Creations
- Topic: Going Home
- Replies: 8
- Views: 4092
Re: Going Home
You don't necessarily need to make a free demo of your game, however, you should definitely demonstrate your game, by means of a trailer or something of the like. I think that providing a free demo of your game would allow others to give you insight and criticism allowing you to improve your game. I...
- Mon Nov 28, 2016 2:44 pm
- Forum: Support and Development
- Topic: How to draw all objects on screen?
- Replies: 12
- Views: 11018
Re: How to draw all objects on screen?
Wow I'm surprised I've never tried to do it that way - nice work :) Just came in here to edit it and say WOW massive optimization XD Direct insertion without function overhead time taken : 0.2300000000000002 --This is how long my method took. Ivan's way : 0.040000000000000036 --This is how long Ivan...
- Mon Nov 28, 2016 2:19 pm
- Forum: General
- Topic: What code editor do you use ?
- Replies: 195
- Views: 301162
Re: What code editor do you use ?
As far as I can remember, I've only used sublime text and notepad++. I pretty much exclusively use notepad++, it's simple and gets the job done for me, that's all I really need.