Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Colour Cycling
#8
(05-06-2018, 03:33 AM)PerspexSphinx Wrote: I was just wondering though, why for MIX, there is just set values... MIX, MIX25, MIX50 & MIX75, why can’t one just enter any amount of MIX like MIX15 or MIX45? And why couldn’t one do that for the amount of ADD, SUB or MOD or is this done with the CUSTOM mode?
The MIXxx, ADD, SUB (etc) identifiers map to a set of precalculated look-up tables (LUTs) that encode the required math and clamping in just one memory access to speed-up rendering. Very few 2D classic systems had transparency (the SNES) and they were predefined modes. Tilengine uses this concept with some extra modes, and the CUSTOM mode where you can provide your own blending function with Engine :: set_custom_blend_function()

(05-06-2018, 03:33 AM)PerspexSphinx Wrote: Also started playing with sound... got a “wave” sound effect to work but can one use other formats?  And can one add a sound track? If so how and in what format?
Tilengine itself doesn't provide any sound capability, this is left to external libraries. If you want an open source, cross-platform and cross-language, then check out SDL and its companion SDL_Mixer that supports many formats for sound and music. This is the library I use in the python platformer example, with a python binding called PySDL2
Reply


Messages In This Thread
Colour Cycling - by PerspexSphinx - 04-18-2018, 06:09 AM
RE: Colour Cycling - by megamarc - 04-19-2018, 03:51 AM
RE: Colour Cycling - by PerspexSphinx - 04-28-2018, 06:08 AM
RE: Colour Cycling - by megamarc - 04-28-2018, 11:37 PM
RE: Colour Cycling - by PerspexSphinx - 04-29-2018, 02:53 AM
RE: Colour Cycling - by megamarc - 04-30-2018, 04:06 PM
RE: Colour Cycling - by PerspexSphinx - 05-06-2018, 03:33 AM
RE: Colour Cycling - by megamarc - 05-07-2018, 10:50 PM
RE: Colour Cycling - by PerspexSphinx - 05-17-2018, 03:36 AM
RE: Colour Cycling - by megamarc - 05-21-2018, 07:18 AM
RE: Colour Cycling - by PerspexSphinx - 05-31-2018, 02:33 AM
RE: Colour Cycling - by megamarc - 06-02-2018, 01:19 AM
RE: Colour Cycling - by PerspexSphinx - 02-27-2019, 08:26 AM
RE: Colour Cycling - by megamarc - 02-28-2019, 07:43 AM
RE: Colour Cycling - by PerspexSphinx - 04-26-2019, 05:24 PM
RE: Colour Cycling - by megamarc - 05-01-2019, 09:31 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)