• Forum
  • Lounge
  • Whos c++ engine is the most convenient w

 
Whos c++ engine is the most convenient when performing these simple tasks

closed account (367kGNh0)
Allow us to see whos C++ engine requires the least code the perform the following actions:

1)load image ("example.png")

2)Place it in the centre of the tab

3)in a timespan 2 seconds, Move the image down by 50px

4)Specify the engine

I will begin
Last edited on
closed account (367kGNh0)
1
2
3
4
5
6
7
//setup
auto image= Sprite::create("example.png");
this->addChild(image);
//position
image->setPosition(Vec2(visibleSize.width / 2 + origin.x, visibleSize.height / 2 + origin.y));
//move
image->runAction(MoveBy::create(2, Point(0, -50)));


This was cocos2d-x
<<forgot I was in the idiot pool>>
Nevermind.
Last edited on
closed account (367kGNh0)
What's your point?

It is just a lounge. We do pointless surveys here all the time
GDI, GDI+ or Direct2D. Take far less than 2 seconds to move an image, no matter what the scale of the move is arbitrarily set to.
Topic archived. No new replies allowed.