2D C++ Framework for Mobile and PC (free, open source)

Started by
12 comments, last by Denis Muratshin 8 years, 6 months ago

Hi, I'm author of Oxygine.

Oxygine is 2D C++ Framework.

It could be build on top of the SDL2.0 or Marmalade.

It is free and available under MIT license.

Site: http://oxygine.org

Twitter: [twitter]oxygine2d[/twitter]

Public Skype group: http://oxygine.org/in/skype_redirect.php

You would find examples, demos and other helpful information

Key features:

  • Clear C++ API
  • OpenGL(ES)2 rendering
  • SceneGraph and Event Handling model close to ActionScript3/Flash
  • Tweenings
  • Build for HTML5 and WebGL using Emscripten

Code examples:


//create sprite and display it
spSprite sprite = new Sprite();
sprite->setResAnim(gameResources.getResAnim("anim"));
sprite->attachTo(getStage());
sprite->setScale(0.5f);

//run spritesheet animation
sprite->addTween(TweenAnim(gameResources.getResAnim("anim2")), duration, loops));

//run position tweening
sprite->addTween(Sprite::TweenPosition(x, y), duration, loops));

//handle events
sprite->addEventListener(TouchEvent::CLICK, CLOSURE(this, &someClass::onClick));

//c++11 labmda event handler
sprite->addEventListener(TouchEvent::CLICK, [](Event*){ 
    printf("clicked!");
 });

Some interesting movies about Oxygine:

Advertisement

very professional, nice making it public.

very professional, nice making it public.

thank you. I hope it would help for someone

please check oxygine logo

logo.png

Is it just me or there is no documentation on site?

There are examples, source code and comments

If you have questions contact with me

there are a lot of new available features. One of them is powerfull masking:

http://www.youtube.com/watch?feature=player_embedded&v=-oWUrSho03o

Good News Everyone!

MagicParticles has been integrated to Oxygine!

Hi! New huge update is available:

- reworked android make files

- reworked cmake files

- fixed SDL Android build

- fixed SDL iOS build

- added filesystem

- added zipped packs support

- removed system folder from data

- improved examples

Hi! a lot of new updates:

- added Linux support

- reworked atlas packing

- reset/restore opengl resources

- many minor improves

and new game released :)

This topic is closed to new replies.

Advertisement