Game Development · head to head
Cocos2d-x vs Photon Engine

Cocos2d-x
Game Development
Open-source, lightweight 2D game engine
- From
- Free
- Free plan
- Yes

Photon Engine
Game Development
Hosted multiplayer networking billed by concurrent users, not by seat or by player
- From
- Free
- Free plan
- Yes
The short version
- Cocos2d-x is an open-source, lightweight 2D game engine.
- Cocos2d-x is free; Photon Engine starts at $9/mo.
- Only Cocos2d-x lists 2D rendering; only Photon Engine lists concurrent user billing.
- Where Cocos2d-x falls short: install guides for the command-line, Visual Studio and Eclipse routes, plus Tizen and Windows Phone, are marked deprecated in the docs.
How do Cocos2d-x and Photon Engine differ?
Cocos2d-x and Photon Engine differ on pricing model and platforms. Only the attributes on which Cocos2d-x and Photon Engine actually diverge.
| Attribute | Cocos2d-x | Photon Engine |
|---|---|---|
| Pricing model | Free | Per month by peak concurrent users |
| Platforms | Windows, macOS, Linux, iOS, Android | Windows, macOS, Linux, iOS, Android, Web, TV and console |
Identical on both: starting price (Free), free tier (Yes), category (Game Development).
Not yet recorded: founded for Photon Engine.
Which features does each one have?
They share no listed features; 20 appear only for Cocos2d-x and 6 only for Photon Engine. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.
Only in Cocos2d-x
- 2D rendering
- Physics engine (Chipmunk)
- Particle effects
- Animation system
- Audio engine
- Touch input handling
- Tilemap support
- Sprite batching
Only in Photon Engine
- Concurrent user billing
- Photon Fusion
- Photon Quantum
- Photon Voice and Chat
- Global relay
- Matchmaking and rooms
What is each one used for?
Cocos2d-x is most often brought in for mobile game development; Photon Engine for adding multiplayer to a Unity game without hiring a network engineer. The jobs each tool is most often brought in to do.
Cocos2d-x
- Mobile game developmentnot Photon Engine
- 2D gamesnot Photon Engine
- Lightweight gamesnot Photon Engine
- Cross-platform gamesnot Photon Engine
Photon Engine
- Adding multiplayer to a Unity game without hiring a network engineernot Cocos2d-x
- Competitive titles needing deterministic rollback rather than state synchronisationnot Cocos2d-x
- Games with a large but thinly spread player base, where concurrency stays low and per player pricing would cost morenot Cocos2d-x
- Training and simulation projects that need shared real-time state outside gamesnot Cocos2d-x
Where do Cocos2d-x and Photon Engine fall short?
Cocos2d-x's most cited limit: the manual dates from Q2 2019 and is a GitBook that points readers to Cocos Creator for newer work. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.
Cocos2d-x
- Cocos2d-x is MIT licensed with no commercial tier, and the vendor's own site directs users toward its newer engine, Cocos Creator, as the actively developed product, leaving Cocos2d-x without a first-party paid support or upgrade path
- Install guides for the command-line, Visual Studio and Eclipse routes, plus Tizen and Windows Phone, are marked deprecated in the docs
- The manual dates from Q2 2019 and is a GitBook that points readers to Cocos Creator for newer work
Photon Engine
- Billing follows peak concurrent users, so a single stream or a launch weekend raises the bill immediately, and studios that cannot forecast concurrency cannot forecast the cost of their own launch
- Exceeding the band does not degrade gracefully; additional players are refused connections until concurrency falls or the plan is upgraded, which is a visible outage to your players at the worst possible moment
- PUN, the product most tutorials and courses still teach, is legacy, so a large share of the learning material available online points new projects at the wrong SDK
- Self-hosting is an enterprise arrangement rather than a purchasable licence, so a studio that wants its servers on its own infrastructure for cost or compliance reasons cannot simply buy that
- It is a networking layer only; accounts, persistence, leaderboards, inventories and anti-cheat all come from other services, so the multiplayer stack ends up as several vendors rather than one
How much do Cocos2d-x and Photon Engine cost?
Cocos2d-x is free to use; Photon Engine has a free plan, with paid plans from $9/mo. Plan by plan below, from each vendor's own pricing page.
Cocos2d-x
Free- FreeFree
- Full engine source
- MIT License
- Community support
Photon Engine
Free- FreeFree
- A small concurrent user allowance for development and early testing
- All regions available
- No time limit on the free tier
- Entry band$9/mo
- Around one hundred concurrent users
- Full SDK access
- Regional server selection
- Higher bandsOn request
- Sold in steps up to tens of thousands of concurrent users
- Price rises with each band rather than with total players
- Enterprise and self-hosted arrangements handled directly by Exit Games
Which should you pick?
Choose Cocos2d-x if
- You need 2d rendering.
- You want to start without paying.
- You work on Windows, macOS, Linux, iOS, Android.
- You also want physics engine (chipmunk).
Choose Photon Engine if
- You need concurrent user billing.
- You want to start without paying.
- You work on Windows, macOS, Linux, iOS, Android, Web, TV and console.
- You also want photon fusion.
Questions people ask
- Is Cocos2d-x or Photon Engine better?
- It depends on the job. Cocos2d-x fits mobile game development; Photon Engine fits adding multiplayer to a Unity game without hiring a network engineer. Cocos2d-x starts at Free and Photon Engine at Free.
- Which is cheaper, Cocos2d-x or Photon Engine?
- Cocos2d-x starts at Free and Photon Engine at Free.
- Does Cocos2d-x or Photon Engine run on more platforms?
- Cocos2d-x runs on Windows, macOS, Linux, iOS, Android. Photon Engine runs on Windows, macOS, Linux, iOS, Android, Web, TV and console.
- Can I use Cocos2d-x for free?
- Both have a free tier, so you can try either at no cost before committing.
- What is Cocos2d-x best used for?
- Cocos2d-x is most often used for mobile game development, 2d games, lightweight games, cross-platform games. Of those, mobile game development and 2d games are not what Photon Engine is typically brought in for.
- What can Cocos2d-x do that Photon Engine cannot?
- Cocos2d-x covers 2D rendering, Physics engine (Chipmunk), Particle effects, Animation system. Photon Engine covers Concurrent user billing, Photon Fusion, Photon Quantum, Photon Voice and Chat.
Answered from the vendors’ own pages
Cocos2d-x: What platforms does Cocos2d-x support?
The manual has installation guides for Android Studio, iOS, macOS, Linux and Windows, and a CMake guide. Guides for Tizen and Windows Phone are marked deprecated.
SourcePhoton Engine: What exactly is a concurrent user?
A player connected to Photon at that moment. Your plan is sized by the peak of that number, not by downloads, registered accounts or monthly actives.
Cocos2d-x: What can I build with Cocos2d-x?
The manual covers 2D features such as scenes, sprites, actions, tile maps, particle systems and UI widgets, plus 3D features such as Sprite3D, cameras, lighting, skybox and terrain. It also documents physics, audio, file access, HTTP networking and SQLite.
SourcePhoton Engine: Which product should a new project use?
Fusion for most real-time games, Quantum where determinism matters such as fighting and competitive titles. PUN is legacy and should not start a new project despite the volume of tutorials.
Cocos2d-x: What is the difference between Cocos2d-x and Cocos Creator?
Cocos2d-x is the code-first C++ engine documented in this manual. Cocos Creator is a separate editor-based engine from the same vendor, described on cocos.com as open source and cross-platform, and the manual includes a tool and guide for moving from Creator to Cocos2d-x.
SourcePhoton Engine: Does it work outside Unity?
Unity is the first-class target. Unreal and other engines are supported through Realtime SDKs with less coverage and slower feature parity.
Related pages
More on Photon Engine
Other head to heads
- Cocos2d-x vs Unity
- Cocos2d-x vs Defold
- Cocos2d-x vs Godot Engine
- Cocos2d-x vs libGDX
- Cocos2d-x vs Axmol
- Cocos2d-x vs Gideros
- Cocos2d-x vs Buildbox
- Cocos2d-x vs Tiled
- Cocos2d-x vs Cocos Creator
- Cocos2d-x vs CryEngine
- Cocos2d-x vs AppGameKit
- Cocos2d-x vs Phaser
- Cocos2d-x vs FMOD
- Cocos2d-x vs Fyrox
- Cocos2d-x vs Mixamo
- Cocos2d-x vs Perforce Helix Core
- Cocos2d-x vs RPG Maker MV
- Cocos2d-x vs SFML
- Cocos2d-x vs Mirror Networking
- Cocos2d-x vs Unity Gaming Services
- Cocos2d-x vs Beamable
- Cocos2d-x vs Colyseus
- Cocos2d-x vs PlayFab
- Cocos2d-x vs Nakama
- Cocos2d-x vs Epic Online Services
- Cocos2d-x vs Agones
- Cocos2d-x vs AccelByte
- Cocos2d-x vs Yarn Spinner
- Cocos2d-x vs Pygame
- Cocos2d-x vs Stencyl
- Cocos2d-x vs Aseprite
- Photon Engine vs Unity
- Photon Engine vs Defold
- Photon Engine vs Godot Engine
- Photon Engine vs libGDX
- Photon Engine vs Axmol
- Photon Engine vs Gideros
- Photon Engine vs Buildbox
- Photon Engine vs Tiled
- Photon Engine vs Cocos Creator
- Photon Engine vs CryEngine
- Photon Engine vs AppGameKit
- Photon Engine vs Phaser
- Photon Engine vs FMOD
- Photon Engine vs Fyrox
- Photon Engine vs Mixamo
- Photon Engine vs Perforce Helix Core
- Photon Engine vs RPG Maker MV
- Photon Engine vs SFML
- Photon Engine vs Mirror Networking
- Photon Engine vs Unity Gaming Services
- Photon Engine vs Beamable
- Photon Engine vs Colyseus
- Photon Engine vs PlayFab
- Photon Engine vs Nakama
- Photon Engine vs Epic Online Services
- Photon Engine vs Agones
- Photon Engine vs AccelByte
- Photon Engine vs Yarn Spinner
- Photon Engine vs Pygame
- Photon Engine vs Stencyl
- Photon Engine vs Aseprite
