Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Calin Leafshade

#1
Forgive my ignorance but what is the "Thimbleweed mode"?

It looks the same to me.
#2
A few comments on the lua thingy:

The proper way to iterate a table is to use an iterator like this:

Code: lua


for k,v in ipairs(snowflakes) do
    --k is the index and v is the object
    v.x = v.x + 1
end



ipairs works by stepping through a table from 1 upwards until it hits null so it wont get properties like myTable.x but will work for tables like { 3, 5, 6, 8 } which are similar to arrays.

If you want to iterate through named items like x, y and so forth you can use pairs instead.

Also, when initializing objects you can do this:

Code: lua

local snowflake = { x = 1, y = 2 }


So to rewrite your code with a bit better Lua form:

Code: lua

snspr = love.graphics.newImage("SPR/snow.png")
flake_array = {}
 
function spawn_flakes()
    for i = 1, 100 do -- lua tables start at 1. Don't force it to start at 0 or weird things will happen with iterators and stuff
        table.insert(flake_array, { x = math.random(800), y = math.random(600) })
    end
end
 
function flake_update(dt)
    for index, flake in ipairs(flake_array) do
        flake.x = flake.x + math.random(-50, 50) * dt
        flake.y = flake.y + 1
        if flake.y >= 600 then
            flake.y = 0
        end
    end
end
 
function flake_draw()
    for index, flake = ipairs(flake_array) do
        love.graphics.draw(snspr, flake.x, flake.y)
    end
end


#3
I have lost the source for the D3DVSync plugin but it was a single line in the initialisation of the graphics engine that enabled VSync. I'd argue that VSync should be enable by default anyway on D3D.

(Actually i'd argue that directX should be removed entirely in favour of opengl but whatever)
#4
I think I've released the source for all my plugins that are in use.

Am I missing any?
#5
Quote from: Snake on Wed 02/10/2013 22:28:12
I've been wondering about more McCarthy Chronicles? How are those going, Calin, if any?

I'm currently tied up with other things but I do tend to return to McCarthy as a long term series once i'm done with the current projects.

#6
Latency is the simple answer.

In an MMO you can have latencies of almost a second and it kind of doesnt matter. Thats why MMOs generally have a kind of pseudo turn based combat because it doesnt really matter if your command takes a second to execute.

However, some modern MMOs do have thousands of players. Take a look at Planetside 2 for instance.
However, planetside 2 does require a whole server farm to support. It's not like you can simulate everything for 5000 players on a simple server.
#7
No Surprises by Radiohead
#9
The Rumpus Room / Re: Name the Game
Sun 02/06/2013 19:14:15
A Dizzy game?
#10
Engine Development / Re: AGS engine iOS port
Wed 29/05/2013 00:08:43
Is your branch open to the public? Are your changes suitable to be merged into the main branch for other users?
#11
The Rumpus Room / Re: Name the Game
Wed 22/05/2013 21:39:02
If we're doing obscure FPSs try this one (telltale interface removed)

#12
The Rumpus Room / Re: Name the Game
Wed 22/05/2013 21:34:35
That is Tunnel Rats.

#13
The Rumpus Room / Re: Name the Game
Thu 16/05/2013 02:11:46
Yes, Return to Krondor.
#14
The Rumpus Room / Re: Name the Game
Wed 15/05/2013 19:16:57
That is Legacy - Dark Shadows

EDIT: With the tell-tale interface removed:

#15
I like Shure earbuds.

http://www.shure.com/americas/products/earphones-headphones/se-earphones

Expensive but they have detatchable cables and a 2 year warranty.
#16
Sounds like an election.

Is it a country? The US?
#17
That is not a lens blur, its a motion blur.

In low light the shutter has to be open longer to receive more light which means its more vulnerable to the shake of a persons hand. Its not the lens being out of focus.
#18
sine always returns a value between -1 and 1 like this:
Link

more generally and in terms of AGS you can get an oscillation like this:

Code: AGS

float step;

function repex()
{
    float osc = A * Maths.Sin(F * step);
    step += 360.0 / IntToFloat(Game.GetGameSpeed());
    if (step > 360.0) step -= 360.0;
}

 

Untested but that should give you an oscillating value with an amp (A) and freq (F)
#19
Quote from: Mati256 on Sun 03/06/2012 02:43:32
A while ago somebody posted a website where you could choose a color and the site would show you some colors that combined with it.
Do you know which site I'm talking about?
Thank you.

For all your colour scheme needs i suggest kuler.adobe.com
#20
Anian: http://www.agser.me/

run by Peder.
SMF spam blocked by CleanTalk