Search found 32 matches

by deströyer
Fri Nov 11, 2016 11:09 pm
Forum: General
Topic: Simple lighting solution?
Replies: 4
Views: 6310

Re: Simple lighting solution?

I wrote a system for my tilebased rpg which does the following: First get a list of all the visible light sources in the scene. I have a max light distance somewhere, and if the light sources are further away than that from what is visible to the player, I can just ignore them. Then loop through eve...
by deströyer
Sun Nov 06, 2016 9:11 am
Forum: Support and Development
Topic: Dynamic NPC Collisions (Tile-based map)
Replies: 1
Views: 2279

Re: Dynamic NPC Collisions (Tile-based map)

Check out Axis Aligned Bounding Box collisions (eg. https://www.youtube.com/watch?v=ghqD3e37R7E ) - your player and NPCs will probably be square-ish, and this is one of the simplest and cheapest collision checks you can run in terms of processing power.
by deströyer
Wed Jul 27, 2016 9:02 pm
Forum: General
Topic: Dealing with floats
Replies: 12
Views: 5628

Re: Dealing with floats

You can get the coordinates of where they actually intersect without having to calculate slopes by using cross product ( https://en.wikipedia.org/wiki/Cross_product ). Throw this function two lines in the form L1 = { X1 = 0, Y1 = 0, X2 = 1, Y2 = 1 } etc. GetIntersection = function( L1, L2 ) local d ...
by deströyer
Sat Jul 23, 2016 7:12 am
Forum: Games and Creations
Topic: Creating a game company.
Replies: 17
Views: 8185

Re: Creating a game company.

$5k = 4 people @ $25/hour for about a week. I can guarantee you that you will not make an MMO, with 1 coder, in a week. When you take other peoples money through a crowdfunding campaign you are making them a promise that they will get something in return. You will either not be profitable and burn o...
by deströyer
Thu Jul 21, 2016 12:18 pm
Forum: General
Topic: Finding neighbours on an arbitrary polygon grid
Replies: 6
Views: 7465

Re: Finding neighbours on an arbitrary polygon grid

We had a similar issue in this forum post, where there was a bug in how the Voronoi cells would be determined for certain seeds and sizes: https://love2d.org/forums/viewtopic.php?f=5&t=81092&p=191346#p190177 If i remember correctly, the data is; points > make up lines > make up polys so line...
by deströyer
Sun May 01, 2016 6:27 am
Forum: Support and Development
Topic: Non-rectangular buttons
Replies: 9
Views: 8612

Re: Non-rectangular buttons

https://love2d.org/wiki/ImageData:getPixel Get the image you're pointing to and check the alpha-component of the pixel where your mouse is pointing in that image. It totally works, I've used it for an adventure-type game (that I didn't finish). And as @rhughes suggests, you need to keep track of whi...
by deströyer
Thu Feb 11, 2016 9:37 pm
Forum: Support and Development
Topic: Please help with classes for npcs
Replies: 13
Views: 6463

Re: Please help with classes for npcs

class() isn't a keyword in Lua - you're probably following a tutorial that requires some additional code. Here's a basic way to get a class working. Read the whole thing, and try running it on its own if you can: -- basic class stuff npc = {} npc.__index = npc npc.New = function( ) local newNPC = { ...
by deströyer
Mon Jan 04, 2016 6:21 pm
Forum: General
Topic: Post-0.10.0 feature wishlist
Replies: 177
Views: 91842

Re: Post-0.10.0 feature wishlist

I really love Love2d, and I'm excited that I'm getting to a point where I can start throwing stuff at friends for testing. There are some features which can make distributing Love2d-based games easier: • love.filesystem - support for writing files into the root folder (and subfolders) of main.lua. T...
by deströyer
Wed Dec 30, 2015 1:52 pm
Forum: General
Topic: What is your background?
Replies: 21
Views: 14046

Re: What is your background?

I'm 35, started programming at age 30. Got hired as a game systems designer for an MMO in 2008, started programming after a while to audit the massive amounts of data that an MMO contains. My background is completely unrelated to both gamedev and programming - I went to university to study molecular...
by deströyer
Tue Dec 22, 2015 7:10 am
Forum: Support and Development
Topic: [SOLVED] Looking for a (mathematical) growth function
Replies: 4
Views: 2374

Re: Looking for a (mathematical) growth function

I would recommend using a table of breakpoints rather than a formula. This is way more readable and gives you better control for balancing. Few people have the math chops to look at a formula like math.floor( math.log10( popSize ) ^ 2.75 ) and intuit what a population of 7,000 would give you - I cer...