Search found 678 matches

by bobbyjones
Sun May 27, 2018 3:17 pm
Forum: Support and Development
Topic: [Solved]For loop runnning longer than it's supposed to
Replies: 7
Views: 135

Re: [Solved]For loop runnning longer than it's supposed to

function inRange( x, y, radius ) local points = {} for i=x-radius,x+radius do for j=y-radius,y+radius do if ((i-x)^2 + (j-y)^2) < radius^2 then table.insert(points, i) table.insert(points, j) end end end return points end You will have to modify the function to work in your system but it will retur...
by bobbyjones
Fri May 25, 2018 12:06 am
Forum: Support and Development
Topic: Issues porting light_world.lua to 11.1 from 0.10.1
Replies: 2
Views: 151

Re: Issues porting light_world.lua to 11.1 from 0.10.1

This library works with 11.1. It currently has an issue with heightmaps but it is in active development. I tested it on my machine and it seems to work fine performance wise
by bobbyjones
Thu May 24, 2018 8:37 am
Forum: Games and Creations
Topic: Car Demo
Replies: 0
Views: 121

Car Demo

Using Box2d this tutorial and a random box2d debug draw I created a rudimentary car simulator. This will eventually become a prototype for a game I making, My goal is to make a game inspired from Initial D. I want to eventually add gears, clutch and rpm based speed. The current car can drive around ...
by bobbyjones
Sun May 20, 2018 9:50 am
Forum: Games and Creations
Topic: Cube Renderer
Replies: 10
Views: 812

Re: Cube Renderer

4aiman wrote:
Sat May 19, 2018 7:55 am
Depth buffer not working on your computer I think.
by bobbyjones
Mon May 14, 2018 5:19 pm
Forum: Support and Development
Topic: Use Quad as Mesh Texture
Replies: 3
Views: 134

Re: Use Quad as Mesh Texture

With meshes you define the u,v for the vertices. Which is essentially the coordinates for a quad in the texture. You can then add multiple sets of coords to one mesh and cycle through them with setDrawRange. (I think anyways. I've never tried this.)
by bobbyjones
Mon May 14, 2018 3:12 am
Forum: Support and Development
Topic: Regular Expression Help
Replies: 2
Views: 122

Re: Regular Expression Help

This page documents how to split in lua.
http://lua-users.org/wiki/SplitJoin
by bobbyjones
Sun May 13, 2018 7:20 am
Forum: Support and Development
Topic: Making a chain of physics bodies
Replies: 4
Views: 356

Re: Making a chain of physics bodies

Nope that wasn't it. It turned out to be that you're supposed to use local coordinates for defining shapes. I was using world coordinates. It makes sense that you should use local coordinates even though most other love physics functions require wolrd coordinates because shapes don't actually exist...
by bobbyjones
Sat May 12, 2018 2:40 am
Forum: Libraries and Tools
Topic: [Library] tiny-ecs - Fast Simple Entity Component System
Replies: 46
Views: 12077

Re: [Library] tiny-ecs - Fast Simple Entity Component System

Another that I have noticed is that, in the examples `world:update()` is called in `love.update` and `love.draw` doesn't that means all the logic for the entities is being executed twice which seem highly inefficient. Am I understanding this correct or am I missing something? He stated that you can...
by bobbyjones
Fri May 11, 2018 3:24 pm
Forum: Support and Development
Topic: Creating levels for my game easier.
Replies: 2
Views: 142

Re: Creating levels for my game easier.

Yeah tiled should work great for that. You can use it in conjunction with STI to load the levels.
by bobbyjones
Wed May 09, 2018 10:51 pm
Forum: Games and Creations
Topic: Cube Renderer
Replies: 10
Views: 812

Re: Cube Renderer

So the third edition to the this series is simple lighting. It uses only one light emitter(not sure if the shader can be made to work with more). There are two magic "numbers" in the shader that I didn't feel like making a variable for. They effect the self emittance of the model.