Search found 7 matches

by alundaio
Sat Mar 12, 2016 10:55 pm
Forum: General
Topic: What's everyone working on? (tigsource inspired)
Replies: 1799
Views: 1695341

Re: What's everyone working on? (tigsource inspired)

a-sw1b7qfwA I'm working on procedural dungeon generation for my next project. I create a graph of cells and this graph data is translated into tileset data for STI (https://github.com/karai17/Simple-Tiled-Implementation). The graph is completely disjointed from the actual map making process so it c...
by alundaio
Fri Mar 11, 2016 7:53 pm
Forum: General
Topic: poly2tri library to Lua (math for 2d navmesh)
Replies: 17
Views: 10548

Re: poly2tri library to Lua (math for 2d navmesh)

Some reason I crash * rarely * using those poly2tri dlls, not sure why. Unfortunately, if you don't satisfy the constraints that poly2tri has (no same points, no self-intersection, no holes touching other holes or the countour) then it's method of letting you know that is to segfault (at least on O...
by alundaio
Fri Mar 11, 2016 1:20 am
Forum: General
Topic: poly2tri library to Lua (math for 2d navmesh)
Replies: 17
Views: 10548

Re: poly2tri library to Lua (math for 2d navmesh)

Some reason I crash * rarely * using those poly2tri dlls, not sure why. I needed an easy way to do simple delauney triangulation and everything I have found has been overly convoluted for my needs (additions of many classes or dependencies on other libraries or dozens of extra methods I don't need)....
by alundaio
Tue Mar 08, 2016 7:01 am
Forum: Games and Creations
Topic: Toader
Replies: 1
Views: 1708

Toader

Toader is a vertical platformer with arcade-like gameplay. It features a single level where objects progressively move faster after each time you reach the end goal. The game also features a top 50 High Score list read from an online database. Online participation is completely optional and your own...
by alundaio
Thu Mar 03, 2016 7:27 am
Forum: Libraries and Tools
Topic: HUMP - yet another set of helpers
Replies: 146
Views: 138185

Re: HUMP - yet another set of helpers

Ah, I see what I was doing wrong after looking at your example. This is the solution that worked in my case: local wvw, wvh = windowWidth/(2*cam.scale), windowHeight/(2*cam.scale) cam.x = math.clamp(cam.x,0+wvw,1024-wvw) cam.y = math.clamp(cam.y,0+wvh,map.height*64-wvh) Thanks for the help, cheers.
by alundaio
Wed Mar 02, 2016 5:16 am
Forum: Libraries and Tools
Topic: lua utils
Replies: 31
Views: 36582

Re: lua utils

Code: Select all

a = { b = { c = 'foo' } }
-- old style
if a.b then
  foo = a.b.c
end
-- new style:
foo = table.get(a, 'b.c')
This seems silly to me when you can do:

Code: Select all

foo = a.b and a.b.c
But other stuff is great thanks.
by alundaio
Wed Mar 02, 2016 4:48 am
Forum: Libraries and Tools
Topic: HUMP - yet another set of helpers
Replies: 146
Views: 138185

Re: HUMP - yet another set of helpers

Hello, I'm wondering if anyone can help me out. I'm using hump.camera and I want to know how I can lock the camera inside the level map boundary; I need a solution that also considers camera scale. Hump.camera has a lockWindow method but it does the opposite, it only moves the camera when the positi...