Cocos2d: What It Is and How hyperPad Builds on It
Cocos2d is an open-source family of frameworks for making 2D games. It began in Python, and its Objective-C port, Cocos2d-iPhone, became a common choice for early iOS games. Cocos2d-x later brought the same ideas to C++ for many platforms. Developers use these frameworks by writing code: scenes, sprites, actions and a game loop.
hyperPad was built based on Cocos2d. That history explains some of hyperPad's underlying concepts. On top of it, hyperPad adds its own visual editor, Behavior system, asset workflow, testing tools, Hub and publishing process, so you build on iPad without writing framework code.
This post explains how familiar Cocos2d-style ideas show up in the hyperPad workflow.
Historical framing and linked documentation reviewed October 21, 2026.
How the concepts map
| 2D game concept | How you work with it in hyperPad | Where to learn more |
|---|---|---|
| Game structure | Arrange gameplay across Scenes and overlays | Scenes |
| Game entities | Place Objects and configure their properties | Object Properties |
| Logic | Connect events, actions, conditions, and values as Behaviors | Behavior Interface Overview |
| State | Store score, health, flags, and other values in Attributes | Object Attributes |
| Reusable systems | Organize connected logic in Behavior Bundles | Behavior Bundle |
| Frame animation | Import compatible images and sprite-sheet data into the Asset Library | Importing and Using Animations |
Scenes organize the game
A Scene can hold a level, menu, puzzle, conversation, or other playable section. Objects inside it represent the pieces the player sees or interacts with.
That structure will feel familiar if you have worked with a 2D framework. The difference is how you author it. In hyperPad, you arrange Objects in the editor, configure their properties, and test the Scene without writing a scene class.
Behaviors express the logic
The Behavior system is the programming workflow. An event starts a chain. Actions change the Project. Conditions control which branch runs. Attributes hold values and state.
A small collectable mechanic can use this flow:
- A Collision Event detects the player touching a coin.
- Get Attribute reads the current score.
- Set Attribute stores the updated score.
- An If Behavior checks whether the target has been reached.
- The Project plays feedback or moves to the next Scene.
The system remains explicit. You can inspect the connections, outputs, Object references, and execution order when the mechanic does not behave as expected.
Cocos2d-compatible asset data still appears in the workflow
The relationship is visible in hyperPad's animation pipeline. The official Importing and Using Animations guide explains that imported sprite sheets use a paired PLIST metadata file in a Cocos2d-compatible format.
Supported sprite-sheet data follows that format. You can't open a Cocos2d code project or every Cocos2d asset package directly in hyperPad. Check the current Supported Asset Types before preparing an import.
What hyperPad adds for the creator
hyperPad combines the 2D engine workflow with tools designed for direct creation on iPad:
- a Scene editor for arranging Objects
- visual Behaviors for game logic
- Attributes for state
- physics, animation, audio, UI, particles, and effects
- immediate Project testing
- project sharing and feedback through the Hub
- Xcode export as part of the App Store publishing workflow
The current App Store listing provides the current platform requirements and product boundaries.
Use the history to understand the design
Cocos2d is part of hyperPad's technical history. The practical value of that history is easier to see in the way Scenes, Objects, game state, animation assets, and a running 2D game loop come together.
If you know Cocos2d and want to see the relationship for yourself, build one representative mechanic in hyperPad and inspect each layer: the Scene, the Objects, the Attributes and the Behavior connections. Cocos2d gives you a framework to program against. hyperPad gives you an editor where those same pieces are already wired together.
