Angry Birds PC engine (unofficial, C++)
Angry Birds PC engine (unofficial, C++) is a port of Angry Birds that runs original Lua scripts and provides native functions for levels, menus, physics, and scoring.
- Type: PC port
- Game: Angry Birds Trilogy
- Runs on Windows
- By BurnerAccount-dec
- Latest release v4.4, 2026-11-22
- Source: https://github.com/BurnerAccount-dec/linnut1.6.2-decomp
README
Angry Birds PC engine (unofficial, C++)
An unofficial, from-scratch reimplementation of the Angry Birds PC engine, rebuilt from Ghidra decompiles of the original executables. It is written in C++ (SDL2, OpenGL 1.x, Lua 5.1, Box2D 2.1 and 2.2) and does not re-implement the game logic: it runs the game's original Lua scripts and provides the native functions those scripts expect, so levels, menus, physics and scoring behave like the original game.
Version 4.4. Changes are listed in CHANGELOG.md and the unfinished parts of every game in docs/STUBS.md; new in 4.4: Stella's unused natives native_applySensorForces and native_setThemeFgLayerOffsetY matched against the retail binary and documented for modders (applySensorForces in every game), every other native Stella registers matched and documented too (getObjectVertices, decomposePolygon with the game's own algorithm, objectAndTrackOverlap, drawPolygon, native_shareScreenShot and five that do next to nothing in the shipped game), Angry Birds 4.0 for PC has every Lua function its exe registers (Short Fuse levels and the Egg Defender walls load and draw, Red's Mighty Feathers' getRadius, theme rectangle layers with their flashes and tints, joint lists, composite-sprite parts, text input fields and more), Stella's theme foreground is drawn, the Sling Scope switches off in every game (Rio kept it after a reset during a pull), Friends finds the Social server (socialPlayer / socialServer in config.lua), the Christmas tree slingshot keeps its collision rules after a reset, Classic 3.x data with cleared levels no longer stays black after the splash, the Bad Piggies sea and foam sway up and down (setThemeForegroundOffsetY); new in 4.3: Rio's Samba Burst power-up works (setStatic) and Rio particles turn by their own angle range, the Sling Scope leaves from the bird's real position (tuning["scope.accurate"]), Friends 2.0.0's Christmas tree slingshot no longer collides with the birds (its lobbed ornaments hit everything but birds), the Wingman animation shows its comic background again, "Connect now!" logs in through the Social account instead of failing, the Tutorial Tournament's end no longer leaves the level buttons shut, both Friends versions have a coin shop (paid with the fake ad) while a network is on, and Rio 2.0.0's aiming aid uses the red sling dot; new in 4.2.1: pop-ups of the scripts keep their clicks to themselves (a button of one no longer presses the one under it), the Stella abilities wait while the game is paused and slow only the physics, Willow's boost starts by itself when her spin runs out and she keeps her speed while turning, Dahlia stays inside the level and her kick pushes the way her body faces; new in 4.2: Friends coins can be shared with (or moved to and from) the Social account, "Log in with Facebook" in Friends looks for the Social account and says so when there is a connection but no account, Space 1.1.0's drifting background elements loop at the screen's edge, per-sprite control also covers the Stella / Space theme layers and the bird trail, background and foreground sprites that scripts can move, scale, rotate, fade or hide one repeat at a time (getBackgroundSprites, setBackgroundSprite), the wheel in Friends scrolls the profile panel or zooms the game, never both, the backgrounds of the 3.3.0 apk no longer sink when the view is zoomed out, every Stella ability draws its own aim aids in Classic (Luca's wave marks with a target or wall glow, Poppy's dotted line with the twirl at the tap, Willow's fading dots with a contact marker, Dahlia's flowing particles), Dahlia hits harder, Stella and the other iPhone packages (Star Wars, Space, Rio HD) load their own natives again (Stella's menu answers the mouse), Rio HD 2.0.0 levels no longer freeze, coin ads need only a network connection (not the Social server), Stella's ability aiming dots grow and fade like the retail game; new in 4.1.2.1: the Social server check of the wallet no longer holds the game still when the server does not answer (httpGetAsync, httpPoll), and the background shimmer of the laser mod is off by default (it halved the frame rate); new in 4.1.2: Stella's five bird abilities for the Classic birds in extra_scripts.lua (ricochet, scream, drop, dash, teleport; the laser goes to the Big Brother Bird), the episode system as one self-contained extras/episodes.lua (no longer in extra_scripts.lua), more of the engine's built-in numbers in the tuning table (the marmosets' stand-up, what counts as moving, gravity sensors, zoom and speed limits) and listTuning / getTuning, plain writes to objects.world[name] (x, y, angle, xVel, yVel, density, friction, restitution, radius, z_order, collisionEnabled) reach the body, and keys can be added or removed, math.sin / cos / tan and Box2D's rotations with the x87's 66-bit pi, an internet check that really tries a connection, and a reason in the "Social server does not answer" window; new in 4.1.1: setRenderScale / getRenderScale (and number-form setScale / getScale) scaling around a point; new in 4.1: round pop-ups in the green of the pause menu (drawRoundRect), a purchase window with the Angry Birds Social piggy bank, a wallet of coins (F10) shared with the Social stand-in server, a fake ad that rewards coins and needs a network connection and the server (isNetworkConnected, isOnline, getWalletInfo, abCoinsConfig, hooks for scripts), a language list (F9) that reads every language of a game's text files and remembers the choice, Game Center leaderboards, notification timers, an analytics log and update checks answered on this computer, Star Wars natives matched against the executable (particles, Cloud City backgrounds, theme offsets, menu particles, the sling's rubber band, smooth zooming, stats), Stella's Inflate power-up (native_resizeRadius), the Social V1 page and Avatar Creator profile picture, the episodes file for Android and iPhone builds with the old menu, wrapped messages in the Social levels list, and episode names for the pop-up episode style; in 3.9: the social-server/ folder (a stand-in server for Angry Birds Social that anyone can run or host), an episodes.lua for the menus before 2.0.0 (Classic 1.6.2 / 1.6.3.1: the levels of each world and their folder, the art and the order of the six episode tiles; Seasons 2.3.0 and before: the levels of each pack; extras/episodes.lua), F12 lists the levels of a Social stand-in server and plays the one that is picked (extras/extra_scripts.lua, socialLevels; the script natives httpGet and playLevelText), key 8 (the hit-box view) of Classic 1.6.2 no longer fails on birds, pigs and props, round static rocks for Classic 1.6.2 levels (StaticBlockThemeNN_07, _08 and _09, drawn with the theme's ground texture), a level file dropped on the window outside a level is played like any other level (birds, physics and keys work), the exe that replaces the retail exe keeps its icons and version information (Explorer, taskbar and title bar), a saved .exe.original dropped on the engine puts itself back, an .apk or .ipa dropped on it can be played or replaced by the engine (kept as .original), debugTools = false in config.lua turns off the command prompt, the debug keys and the speed keys (the replace asks whether to keep them), no command prompt flashes up when it is off, and the floating scores use the black-outlined font of the other releases (floatingScoreFont); new in 3.8.1: the editor's joint window goes on past "Destroy-attached" with pulley, gear, mouse, line / wheel, friction and rope joints (F6 to F11), a click on the level spawner's picture lets you move the level about as a half-transparent copy before it is put down, folders and levels come in the order the game loads them, and the picture uses the blocks' own images; new in 3.8: the level spawner (F1, or dropping a level file) makes objects the way the game loads them (rotated, static blocks with their textures, the spawned birds join the line-up), walks through every level folder, shows a picture of the level, listDataFolder; new in 3.7.3.1: no screen wipe on the way into, out of and around the editor of Classic 1.6.2; new in 3.7.1 to 3.7.3: saved levels put birds back properly (the flying bird, the bird sent to the slingshot, the body type, the trail), console = false in config.lua closes the command prompt window, getBodyType; new in 3.7: F1 (or dropping a level file on the window) spawns another level's blocks, pigs and joints into the level that is being played, and split Blue Birds are kept and tween back on restart; new in 3.6: a pop-up when pressing Level select or Menu on the pause page (leave and keep, or leave and start over; save states are written only when asked for), a guide to adding and removing achievements, hole blocks made by every creation call, no screen wipe in the level editor, the older joint call taking the newer joint types, the collision skin in every game, and blocks with holes (a box, circle or polygon outline with holes of any shape at any position, cut out of the physics and the sprite: the wood blocks WoodBlock16 and WoodBlock17, createShapeWithHoles, registerHoles); new in 3.5: save states in the engine, for every game (leave a level half played, also by closing the game, and come back to exactly that), and the Box2D joints no editor offers as createJoint types 6 to 11 (pulley, gear, mouse, line / wheel, friction, rope; the rope joint was back-ported to the bundled Box2D 2.1.1). The editor keys of every game are in docs/USAGE.md; new in 3.3: a crash when loading a level from the update script fixed (1.0.0 level 1-8), --decrypt no longer hangs on scripts unluac repeats for ever, shaders written in GLSL with live reload, editable presets and a console shader creator, the layout (setOffset, setLayoutScale, setMirror) of the natively drawn backgrounds, foregrounds, trajectory dots and particles can be changed from Lua; new in 3.2: an achievement page (F7) with how-to texts and the games' own unlock pop-ups, Friends 2.0.0 saves, menus that follow the window and Friends 1.0.0's tournament levels, Stella's ability, Space 1.1.0 gravity boxes, rings and background drift, the slingshot menu and Christmas tree slingshot in Friends 2.0.0, no stray debug console in Friends 2.0.0, Stella's level exit loop fixed, Angry Birds HD 1.4.2's level-selection back button, world achievements and frame-rate independent menu balloons, Seasons 4.1.0 for PC starting, and achievements in the Android and Seasons 4.x PC data.
Not affiliated with, endorsed by or connected to Rovio Entertainment. "Angry Birds" and everything in the game belong to their owners. This repository contains no game files: no scripts, images, sounds, levels or executables. To run it you need your own legally obtained copy of the game.
Supported games
| Game | Play | Level editor | Notes |
|---|---|---|---|
| Angry Birds 1.0.0 (PC) | Playable | Works | The backgrounds of the first five packs draw |
| Angry Birds 1.6.2 / 1.6.3.1 (PC) | Playable | Works | 1.6.3.1 has no editor in its scripts, the engine brings Rovio's 1.6.2 one |
| Angry Birds 2.0.0 (PC) | Playable, a few known visual gaps | Works ("Editor" on the main menu) | |
| Angry Birds Seasons 1.0.0 and 2.2.0 (PC) | Playable | Works | 2.2.0 (Year of the Dragon) has the theme menus with parallax and its own cursor |
| Angry Birds Seasons 4.1.0, South Hamerica (PC) | Starts (the start-up errors of 2.9 are fixed); not confirmed playable end to end | Not tested | Its scripts are split over scripts_common and need requireFile |
| Angry Birds Social (Flash, patched) | Playable (levels, editor, sharing, scores) in a Flash-capable browser against the bundled stand-in server (social-server/), not in the engine | Its own level editor | Comes with every release; the game's own files are not included, see social-server/README.txt. Social levels play in Classic through F12 |
| Angry Birds Rio 1.4.2 (PC) | Playable | Works | Physics follows the exe's own Box2D 2.2 solver; ice ("light") blocks are stable |
| Angry Birds Space 1.3.1 (PC) | Levels load and play (first theme tested) | Yes (F2) | Planet gravity, aiming aid and camera work; later themes, bosses and compound bodies are less tested |
| Angry Birds Star Wars 1.5.0 (PC) | Playable (Hoth, Tatooine and Endor levels load); contact filter, damage, water, kill timers, per-frame sync and the aiming aid follow the exe | Not tested | Known gaps below |
Angry Birds 1.3.5 (Android .apk) | Playable: menus, episode and level select, levels with their tutorials | Not tested | Opened by dragging the .apk onto the exe; see Quick start |
Angry Birds 2.1.0 (Android .apk) | Playable: menus, episode and level select, levels with their tutorials | Not tested | Same; the Birdday Party confetti keeps drawing after a tutorial closes |
Angry Birds 3.3.0 (Android .apk) | Starts and plays: menus, episode select, Red's Mighty Feathers (both pages: the 15 classic levels and the 15 Egg Defender levels) | Not tested | Scripts split over scripts and scripts_common; later levels need earlier ones cleared, as in the game; the pause menu shows a local Rovio News card in its promo space |
Angry Birds Seasons 2.3.0 (Android .apk) | Starts and plays: menus, Seasons 2012 / 2011 episodes, Cherry Blossom level 1 with its tutorials; the Mighty Dragon is drawn at its size and the point pop-ups stay while paused | Works (the engine's classic editor) | Opened by dragging the .apk onto the exe; the ad checks answer "no" |
Angry Birds Free 1.0.0 (iPhone .ipa, the Lite game) | Playable: all levels, saves, the video at the end (its sound is mixed down to mono, as the game mixes in mono) | Opens levels | Opened by dragging the .ipa onto the exe; the sky textures are PVRTC, read by the engine |
Angry Birds Seasons 2.4.1 (iPhone/iPad .ipa, with Piglantis) | Starts and plays; Piglantis: the water is drawn, scrolls and has buoyancy (compared with a recording of 1-1; the retina picture set is off unless --retina) | Not tested | iPad-sized data runs as deviceModel = "ipad"; the water tint and wave speeds are estimated |
Angry Birds Star Wars 1.0.0 (iPhone .ipa) | Plays: menus, Tatooine levels, with the Star Wars contact rules (Luke's lightsaber cuts blocks) | Not tested | Opened by dragging the .ipa onto the exe |
Angry Birds Rio HD 2.0.0 (iPad .ipa) | Plays: menus, Rio and Rio 2 chapters, levels, power-ups; wide windows use the 1024x768 pictures | Off (the build's editor is incomplete) | WebP pictures need Windows' "WebP Image Extensions" (installed with Windows 10 / 11) |
Angry Birds HD 1.4.2 (iPad .ipa) | Playable at 1024x768 | Not tested | |
Angry Birds Space 1.1.0 (iPhone .ipa) | Plays: main menu, episodes, levels, with the iPhone backgrounds (sky, moon, planets, clouds) | Yes (F2, the engine's) | |
Angry Birds Hatchery Island (iPad .ipa) | Starts: menus, levels | Not tested | Its server clock is this computer's clock |
Angry Birds Stella 1.0.0 (iPhone .ipa) | Starts; main menu, map intro, intro comic, level map; levels 1 to 4 play (aim, shoot, blocks break, Stella's hold-aim jump) | Levels after 4 not checked; slow | |
Angry Birds Seasons 4.1.0 (iPhone .ipa) | Plays: main menu, episode and level select (the strip settles on an episode), levels (JSON sprite sheets, RVIO composites, JPEG splashes), Game Center banners | Not tested | Phone scripts; background layers follow the camera up and down; water and some collision rules are not right yet (see CHANGELOG) |
Angry Birds Friends 1.0.0 (iPhone .ipa) | Plays: the tutorial, Power-up Practice and the Weekly Tournament against the Red Bird (three-star scores) and Yellow Bird (two-star scores) bots, with a local stand-in for the server (login, weekly levels and results, Bird Coins, the power-up shop, daily rewards) | Not tested | No real friends; the shop prices and rewards are made up |
Angry Birds Friends 2.0.0 (Android .apk) | Plays: the tutorial (Tutorial Tournament with the Red and Chuck bots), and "Play Tournament" as a guest on a local stand-in server: the Weekly Tournament on level files you add (docs/USAGE.md), score lists against Red (three-star scores) and Chuck (two-star scores), weekly results with coin prizes and trophies, coins for stars, the power-up and slingshot shop, the daily wheel | Not tested | Leagues (Glass to Diamond, bots, weekly promotion and prizes); no Facebook; the .apk has no tournament levels (Friends 1.0.0's are used when its .ipa is found; your own in data\levels\tournament replace them); menus follow a resized window; prices and prizes are made up; flight path dots and the Sling Scope path are drawn |
Angry Birds 1.0 (iPhone .ipa) | Starts: menus, level list, level 1-1 (birds launch, blocks and pigs react) | Not tested | Flat data folder, no loadlist.lua, boxes given by half sizes; background layer speeds are estimates, later levels and sounds not compared yet |
Angry Birds Rio 1.4.2 (Android .apk) | Starts and plays; the title music (a zipped mp3 in the apk) plays | Not tested | Opened by dragging the .apk onto the exe |
Quick start
-
Build it (Windows, Visual Studio and CMake; see Build) or take the exe from a release zip (
AngryBirdsEngine-v3.7.3.1.zip, made bymake_release.bat). -
Start it from inside the game's folder, the one that holds
config.lua:cd /d "C:\Program Files (x86)\Rovio\Angry Birds" C:\path\to\AngryBirdsEngine.exeIt works the same for every supported PC game, from its own folder. For an Android
.apkor an iPhone.ipagive the file instead: drag it onto the exe, or runAngryBirdsEngine.exe C:\path\AngryBirds_2.1.0.apk(no game folder needed; the data is unpacked once into%LOCALAPPDATA%\AngryBirdsEngine\apk). Do not name the exeangrybirds.exe: Windows treats that as the original's name and would overwrite it. -
Saves go to
%APPDATA%\<publisher>\<product>and are shared with the original game;--userdata .keeps them next to the engine instead.
More in docs/USAGE.md: the command line, controls, the typed console, debug keys, the level editors and the plain-text dec folder.
What works
- The original scripts and levels, including the encrypted ones (AES), run unmodified.
- Box2D physics with each exe's own settings (2.1 for Classic and Seasons, 2.2 for Rio, Space and Star Wars), the original collision and damage rules and the fixed frame update; Star Wars additionally has its own contact filter, damage, water and kill-timer rules.
- Level editors in the games that have one, saving over the original level file.
- Sprite sheets, bitmap fonts, particles (including level and menu particle layers and parallax), OpenGL 1.x drawing with scaling, rotation, transparency, tint and blend modes.
- Audio (WAV, MP3), video cutscenes (H.264 in MP4), the game's loops.
- Menus, level select, tutorials, pause, restart and level-complete flows in all supported versions.
- Saves shared with the original game (encrypted and plain format).
- A DPI-aware resizable window (the scripts'
resolutionChangedruns), smoothed frame times, a typed console and debug tools. - Since 3.3 the engine exe can take the place of the game's own exe: drag the game's
.exeonto the engine (the original is saved as<name>.exe.original), drag it on again to put the original back (--replace-exe,--restore-exe;docs/USAGE.md); since 3.9 the replaced exe carries the original's icons, the replace asks whether the command prompt and the debug tools stay on, and dropping the saved<name>.exe.originalon the engine puts it back too. - Rewind:
rewind(frames)in Lua orrewind [frames]in the console puts t