trying to understand particles...

All development conversation and discussion takes place here

Moderator: Moderator

Post Reply
Message
Author
shooth
Halfling
Posts: 108
Joined: Mon Feb 07, 2011 3:42 pm
Location: Intarwebs

trying to understand particles...

#1 Post by shooth »

Can someone point me to the relevant code that would show what particles are, how to use, existing particle effects, etc.

Specifically, I was looking to understand this kind of block:

local grids = self:project(tg, self.x, self.y, DamageType.ARCANE, {dist=3, dam=self:spellCrit(t.getDamage(self, t))})
game.level.map:particleEmitter(self.x, self.y, tg.radius, "ball_fire", {radius=tg.radius})

I grepped for "ball_fire" figuring its definition somewhere in the code would lead me to the appropriate place that defined functions for particleEmitter, but all the references were usages, like the example above. I looked through the map.lua file, but didnt see any references to a function particleEmitter. Am I misreading that syntax? I am brand spanking new to lua.

Also, I was grepping in the tome.team archive... should I be looking elsewhere?
-------
On an unrelated note - am I right in reading the "tactics" field in talent definitions is used by the AI to determine how the talent is used?

Thanks in advance,
shooth
\____/
(0)(o)
/||||\

HousePet
Perspiring Physicist
Posts: 6215
Joined: Sun Sep 09, 2012 7:43 am

Re: trying to understand particles...

#2 Post by HousePet »

"ball_fire" is a file name.
Look in data/gfx/particles.

You are correct about the tactics field.
My feedback meter decays into coding. Give me feedback and I make mods.

Castler
Thalore
Posts: 153
Joined: Mon Mar 25, 2013 10:09 pm

Re: trying to understand particles...

#3 Post by Castler »

There's also a page on the ToME wiki on particle effects at http://te4.org/wiki/Particle_Effects. If anything there isn't clear, feel free to ask more questions here or make edits directly there.
Qi Daozei (QDZ) - an Oriental-themed fantasy game for T-Engine. ToME Tips - auto-generated spoilers for ToME.

Post Reply