Integrating LiquidFun with Cocos2d-x: Part II

In Part I I described to how integrated LiquidFun with Cocos2d-x. In this part (part II) I’ll describe how to render the particles using a basic water effect. Part I uses just one glDrawArrays(GL_POINTS, 0, total); to draw the particles. And although that works to draw “particles”, it is not enough to draw “water”. Drawing “water” requires a more complex rendering algorithm, like the one used in this example. And implementing an algorithm similar that one is what this article describes. ...

July 30, 2014 · 5 min · ricardoquesada

Integrating LiquidFun with Cocos2d-x: Part I

LiquidFun Testbed + Cocos2d-x From LiquidFun’s site: Based on Box2d, LiquidFun features particle-based fluid simulation. Game developers can use it for new game mechanics and add realistic physics to game play. Designers can use the library to create beautiful fluid interactive experiences. Basically, LiquidFun is Box2d plus an extension to simulate fluids using a particle system. To test it, download and install the official LiquidFun - Testbed, and LiquidFun - EyeCandy for Android. ...

April 23, 2014 · 5 min · ricardoquesada

Vistual Studio: First steps

Goals Compile and run cocos2d-x tests on the emulator Set a breakpoint in Visual Studio. Running cpp-test on the Emulator 1. Download cocos2d-x v3.0 2. Unzip it and then go to cocos2d-x/build directory $ c d c o c o s 2 d - x / b u i l d 3. Open cocos2d-wp8.vc2012.sln with Visual Studio $ s t a r t c o c o s 2 d - w p 8 . v c 2 0 1 2 . s l n 4. Set cpp-tests (Windows Phone Silverlight 8) as the default project: Go to the Solution Explorer Right click on cpp-tests (Windows Phone Silverlight 8) Click on Set as StartUp Project 5. Run cpp-tests on the Emulator Press the Emulator 8.1 WVGA 4 inch button If an Hyper-V error appears, then you have to enable Hyper-V: Enable Hyper-V on the BIOS And then enable Hyper-V on Windows 8.1 Pro (it won’t work on the ‘Regular’ edition). 6. If the following Dialog pops-up, just press Retry: And that’s all. You should see the cpp-tests running on the Emulator:

April 11, 2014 · 2 min · ricardoquesada