Skip to content

Repository files navigation

🏛️ Parliament Hero

Parliament Hero is an educational role-playing game that places players in the heart of the European democratic process. It teaches critical civic skills such as identifying disinformation, researching laws, and making informed decisions — all through an engaging game loop based on real EU values, structures, and challenges.

Parliament here representing picture

🔗 Quick Links


📑 Table of Contents


🎯 What You'll Learn

Through interactive missions and dynamic NPC interactions, players will explore:

  • 📜 The role and responsibilities of the European Parliament
  • 🗳️ The importance of civic participation and informed voting
  • 🕵️ Strategies to recognize, prebunk, and debunk disinformation through research and critical thinking

🌈 Value perspectives: democratic orientations

Players engage with four broad value perspectives that reflect the diversity of views in the European Parliament (in code and data these map to orientation types; the goal is inclusive framing in learning materials):

  • 🟦 Traditionalist – heritage, stability, continuity
  • 🟨 Libertarian / liberal – individual freedoms, market economy, reform
  • 🟩 Left / green – sustainability, climate action, social justice
  • 🟥 Right / progressive – innovation, equality, inclusive growth

Each perspective offers a lens for laws, debates, and choices. How you vote and whom you listen to shapes relationships and outcomes—not a single “correct” ideology, but informed trade-offs.


🔁 Gameplay Loop: The Four Steps of Democracy

🧾 Step 1 – A Law Appears

Each round begins with a new law proposal from one of the major policy areas. These laws simulate real-life situations where people may only hear headlines or partial information — and must decide what to do next.

NPCs react immediately, with mood bars showing their opinions. These quick impressions mimic how real citizens and politicians may initially react without full context. It’s now up to the player to learn more.

➡️ This step highlights the challenge of limited knowledge and encourages curiosity, skepticism, and further inquiry.

Step one


🏢 Step 2 – The Office

Players are then placed in a more interactive environment: the Office, where they meet a variety of individuals and institutions who present their opinions or lobby for or against proposed laws.

This mirrors day-to-day real-world information exposure: news articles, conversations, influencers, and social media posts.

Some of these sources are trustworthy — others are not.

Players must:

  • Examine biases and stated viewpoints
  • Distinguish between reliable and unreliable information
  • Begin to suspect potential disinformation or manipulation

➡️ This stage develops information filtering and teaches players to question sources before accepting them as fact.

👉 View "Step Two" as a GIF (opens in new tab)


📚 Step 3 – The Library

This is the debunking and prebunking phase. Players take a deep dive into information: reading books, comparing media sources, and using online tools inside the Library.

Tools available:

  • 📖 Click bookshelves to access historical context and data
  • 💻 Use the laptop to simulate online research

Players are encouraged to consult multiple sources, compare conflicting narratives, and draw their own conclusions. Critical thinking is essential — and rewarded.

➡️ This phase teaches media literacy and source triangulation, helping players learn to verify before acting.

All these steps are repeated multiple times until an ending in reached.

Step three


🎬 Endings – Your Votes Shape the World

After a predefined number of rounds, the game concludes with one of five possible endings based on the player's voting patterns and how orientation influence shifted:

  • 🟦 A Traditionalist-leaning ending
  • 🟨 A liberal-leaning ending
  • 🟩 A green / left-leaning ending
  • 🟥 A progressive / right-leaning ending
  • ⚖️ A Harmony ending – where influence was relatively balanced across perspectives

This outcome depends on:

  • Which perspectives you supported most through votes
  • The NPCs you interacted with and influenced
  • The laws you chose to support or reject
  • Societal indicators (economy, inequality, education, health) tracked via welfare effects

➡️ At this final point, the game highlights a key civic message: Every vote matters. Every interaction counts.

Players reflect on how their individual choices shaped the political landscape, emphasizing the importance of participation, presence, and informed decision-making in a democracy.


🗳️ Step 4 – Voting Time - Going back to step 1

With everything they've seen and researched, players now face the final decision: vote yes or no on the proposed law.

They must consider:

  • Public mood
  • Alignment with different value perspectives
  • What they uncovered in the Library
  • Long-term effects on reputation, societal indicators, and future laws

Every vote matters and will influence how characters respond, how the public views your performance, and how future laws develop.

➡️ This step emphasizes the power and responsibility of voting, and the need to make informed, self-driven choices — not emotional or misled ones.


🧠 Mechanics & Game Framework

To manage the interplay of laws, NPCs, value perspectives, societal welfare indicators, and outcomes, we combine Unity editor tools with a data-driven JSON pipeline. Together they make the project a reusable educational framework.

🌐 Web content editor (JSON)

Live editor:CodeForEurope Data Editor — a static, browser-only tool to load game_database.json, edit structured content with guidance, and download a compatible file. Nothing is uploaded; all processing stays on the user’s device.

Use it to adjust text, links between laws and interactions, EuroChat posts, opinions (pro / neutral / against summaries), law effects, and welfare effects—without hand-editing raw JSON. Enum reference fields (FactionType, InteractionEffectType) are documented in the data file; full in-browser editing of those definitions is work in progress for a future version.

Models and prefabs: the web editor does not create new 3D models or Unity prefabs. You still author assets in Unity. The app maps existing content by prefabPath and IDs: as long as paths point to resources the build already includes, NPCs and scenes resolve correctly.

🔧 1. NPC Creator (Unity)

Creating and wiring new NPC prefabs, meshes, and ScriptableObject setup remains Unity-first. The NPC Creator editor window is the primary tool for:

  • Personal value orientations (mapped to internal orientation types)
  • Display names, visuals, traits
  • Linking to prefabs under Resources

A richer NPC workflow in the web editor is work in progress; today, the site is ideal for reusing and retargeting existing NPC definitions and paths.

💬 2. NPC Interaction Creator

Used for defining:

  • Dialogue lines for office visits
  • Effect types and magnitudes (mapped to internal InteractionEffectType values)
  • Which NPC each interaction belongs to

Interactions used in Step 2 (Office) are authored here in Unity; the same interaction names are referenced from JSON for laws and validation.

🏛️ 3. Law Manager & welfare indicators

Used to:

  • Add law proposals and link them to NPC interactions by name
  • Define short and long descriptions and icon paths (icon support may evolve)
  • Law effects – shifts along orientation axes (personal-value / coalition-style influence in gameplay)
  • Welfare effects – changes to societal indicators when a law passes: GDP per capita, Gini (inequality), human capital, and life expectancy (WelfareIndicator in code)

WelfareManager applies these effects after votes, updates on-screen indicators, and feeds into composite welfare outcomes at the end of a run.

🗃️ 4. Game data (game_database.json)

Runtime content is loaded from Assets/Resources/GameData/game_database.json via GameDatabase:

SectionRole
fieldDetailsHuman-readable enum reference for data authors (orientation & interaction effect types)
npcsIDs, names, prefabPath, orientation indices
interactionsNamed office scenes: npcId, dialogue lines, typed effects
lawsTitles, descriptions, optional long text (include in LawJson if you need it in Unity), iconPath, law effects, welfareEffects, interactionNames
postsEuroChat feed grouped by lawName
opinionsShort pro / neutral / against copy keyed by law name (used by the web editor and content workflow; add fields to GameDatabaseRoot in code if you need them loaded at runtime)

Keeping this file consistent preserves compatibility with GameDatabaseRoot and the Unity parsers. Extra keys not yet mirrored in C# are ignored by JsonUtility until wired up.


These tools combine so Parliament Hero stays a full framework, not a single-use product. Educators and developers can:

  • Replace or extend scenarios (e.g., climate, rights, digital policy)
  • Tune welfare and orientation balance via JSON or Unity tools
  • Reuse the platform for other democratic learning contexts

➡️ Our goal is repeatable, adaptable educational experiences accessible to many audiences.


📖 Code & Tooling Documentation

We provide detailed documentation for our codebase and Unity tools in the Scripts/README.md file.
It covers managers (GameManager, WelfareManager, GameDatabase, etc.), editor windows, and how JSON data connects to runtime systems.

For content editing without Unity, use the web data editor and the game_database.json layout described under Mechanics & Game Framework.


📚 Educational Impact

Parliament Hero delivers powerful learning outcomes by blending real EU content with fun, interactive storytelling:

  • 🧠 Understanding of democratic institutions and law-making
  • 🔎 Skills in research, evidence comparison, and narrative analysis
  • 🗳️ Empowerment through knowledge of how and why to vote
  • 🧍 Awareness of personal biases and the manipulation of information

All while staying approachable for young learners and meaningful for adults.


🧑‍🏫 Techniques & Educational Design

To make democratic education more accessible and impactful, Parliament Hero uses a variety of innovative techniques:

  • 🎮 Gamification
    Complex concepts such as legislation, civic engagement, and EU institutions are translated into interactive game mechanics suitable for all age groups.

  • 📖 Progressive Storytelling
    The game narrative evolves based on the player’s decisions, making each playthrough unique.

  • 🕵️ Debunking & Prebunking Mechanics
    Players are exposed to misinformation through law proposals and NPCs. In the Library, they can uncover the truth, fostering critical thinking and media literacy.

  • 🤝 Plural perspectives
    Players interact with diverse viewpoints and influences, reflecting the pluralism of real democratic institutions.

  • 🇪🇺 Integrated EU Content
    All missions and storylines are based on real EU information, ensuring authenticity and relevance.


⚠️ Challenges We Faced

Designing Parliament Hero came with important challenges:

🧩 Gamifying Real Processes

  • Turning complex, dry procedures into accessible and entertaining mechanics
  • Balancing fun with educational value

🔄 Managing Complexity

  • Simulating political diversity with dynamic NPC behavior
  • Maintaining consistent logic across numerous interactions

🧠 Pedagogical Alignment

  • Ensuring each decision teaches a real-world skill
  • Designing systems that promote learning by doing, not lecturing

🧪 Disinformation Design

  • Creating misleading but realistic fake news examples
  • Encouraging skepticism without promoting cynicism or conspiracy thinking

🧰 Framework Modularity

  • Making tools robust enough for reusability, yet simple for non-programmers
  • Balancing flexibility and structure in the Unity Editor

🔮 Future Plans

We're excited about the future of Parliament Hero and committed to making it even more accessible, engaging, and educational. Here's what's on our roadmap:

📱 Mobile Support We plan to port the game to Android and iOS platforms, bringing civic education to more users in a portable, touch-friendly format.

🎮 Controller Accessibility We aim to add support for game controllers to ensure players with physical disabilities can interact with the game more comfortably and inclusively.

🎨 Enhanced Visual Accessibility We’ve already taken steps to ensure good color contrast for players with visual impairments. In future updates, we plan to introduce specially designed accessible color palettes to improve clarity and readability.

📈 Expanded Content Our vision includes the addition of more law proposals, characters, value perspectives, NPCs, and decision paths to increase replayability and educational value.

🧠 Deeper Interactions and Scenarios We aim to enrich gameplay with more nuanced dilemmas, branching narratives, and unexpected consequences to better mirror real-world complexities in civic life and policymaking.

🎵 Assets

🔊 Audio

Third-party sounds are from freessound.org as follows:

  • 🐱 ANMLCat_Cat Meow Request 01_KVV AUDIO_FREE, by KVV_Audio (CC BY 4.0)
  • 📄 Paper rip 1, by omgitsjo (CC0)
  • 🦇 bat swoosh, by MrGungus (CC0)
  • 🕹️ Menu_Select, by SomeUsername0 (CC0)
  • 🎶 Voice Male humming sounds, by bolkmar (CC0)

🧊 3D Models

The 3D models were generated by using AI via meshy with a premium subscription.


Go back to Quick Links to view other resources or play our game!


🗳️ Your vote is your voice. Your knowledge is your shield.
Learn. Think. Decide. Be a Parliament Hero.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { // Add copy buttons to all
 blocks
(function() {
function addCopyButtons() {
document.querySelectorAll('pre code').forEach(function(codeBlock) {
if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;
codeBlock.parentElement.setAttribute('data-copy-added', 'true');
var btn = document.createElement('button');
btn.textContent = 'Copy';
btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';
btn.onmouseover = function() { this.style.opacity = '1'; };
btn.onmouseout = function() { this.style.opacity = '0.7'; };
btn.onclick = function() {
navigator.clipboard.writeText(codeBlock.textContent).then(function() {
btn.textContent = 'Copied!';
setTimeout(function() { btn.textContent = 'Copy'; }, 1500);
});
};
codeBlock.parentElement.style.position = 'relative';
codeBlock.parentElement.appendChild(btn);
});
}
addCopyButtons();
// Re-run on dynamic content
var observer = new MutationObserver(addCopyButtons);
observer.observe(document.body, { childList: true, subtree: true });
})();
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
GitHub - deprimus/CodeForEurope · GitHub
Skip to content

Repository files navigation

🏛️ Parliament Hero

Parliament Hero is an educational role-playing game that places players in the heart of the European democratic process. It teaches critical civic skills such as identifying disinformation, researching laws, and making informed decisions — all through an engaging game loop based on real EU values, structures, and challenges.

Parliament here representing picture

🔗 Quick Links


📑 Table of Contents


🎯 What You'll Learn

Through interactive missions and dynamic NPC interactions, players will explore:

  • 📜 The role and responsibilities of the European Parliament
  • 🗳️ The importance of civic participation and informed voting
  • 🕵️ Strategies to recognize, prebunk, and debunk disinformation through research and critical thinking

🌈 Value perspectives: democratic orientations

Players engage with four broad value perspectives that reflect the diversity of views in the European Parliament (in code and data these map to orientation types; the goal is inclusive framing in learning materials):

  • 🟦 Traditionalist – heritage, stability, continuity
  • 🟨 Libertarian / liberal – individual freedoms, market economy, reform
  • 🟩 Left / green – sustainability, climate action, social justice
  • 🟥 Right / progressive – innovation, equality, inclusive growth

Each perspective offers a lens for laws, debates, and choices. How you vote and whom you listen to shapes relationships and outcomes—not a single “correct” ideology, but informed trade-offs.


🔁 Gameplay Loop: The Four Steps of Democracy

🧾 Step 1 – A Law Appears

Each round begins with a new law proposal from one of the major policy areas. These laws simulate real-life situations where people may only hear headlines or partial information — and must decide what to do next.

NPCs react immediately, with mood bars showing their opinions. These quick impressions mimic how real citizens and politicians may initially react without full context. It’s now up to the player to learn more.

➡️ This step highlights the challenge of limited knowledge and encourages curiosity, skepticism, and further inquiry.

Step one


🏢 Step 2 – The Office

Players are then placed in a more interactive environment: the Office, where they meet a variety of individuals and institutions who present their opinions or lobby for or against proposed laws.

This mirrors day-to-day real-world information exposure: news articles, conversations, influencers, and social media posts.

Some of these sources are trustworthy — others are not.

Players must:

  • Examine biases and stated viewpoints
  • Distinguish between reliable and unreliable information
  • Begin to suspect potential disinformation or manipulation

➡️ This stage develops information filtering and teaches players to question sources before accepting them as fact.

👉 View "Step Two" as a GIF (opens in new tab)


📚 Step 3 – The Library

This is the debunking and prebunking phase. Players take a deep dive into information: reading books, comparing media sources, and using online tools inside the Library.

Tools available:

  • 📖 Click bookshelves to access historical context and data
  • 💻 Use the laptop to simulate online research

Players are encouraged to consult multiple sources, compare conflicting narratives, and draw their own conclusions. Critical thinking is essential — and rewarded.

➡️ This phase teaches media literacy and source triangulation, helping players learn to verify before acting.

All these steps are repeated multiple times until an ending in reached.

Step three


🎬 Endings – Your Votes Shape the World

After a predefined number of rounds, the game concludes with one of five possible endings based on the player's voting patterns and how orientation influence shifted:

  • 🟦 A Traditionalist-leaning ending
  • 🟨 A liberal-leaning ending
  • 🟩 A green / left-leaning ending
  • 🟥 A progressive / right-leaning ending
  • ⚖️ A Harmony ending – where influence was relatively balanced across perspectives

This outcome depends on:

  • Which perspectives you supported most through votes
  • The NPCs you interacted with and influenced
  • The laws you chose to support or reject
  • Societal indicators (economy, inequality, education, health) tracked via welfare effects

➡️ At this final point, the game highlights a key civic message: Every vote matters. Every interaction counts.

Players reflect on how their individual choices shaped the political landscape, emphasizing the importance of participation, presence, and informed decision-making in a democracy.


🗳️ Step 4 – Voting Time - Going back to step 1

With everything they've seen and researched, players now face the final decision: vote yes or no on the proposed law.

They must consider:

  • Public mood
  • Alignment with different value perspectives
  • What they uncovered in the Library
  • Long-term effects on reputation, societal indicators, and future laws

Every vote matters and will influence how characters respond, how the public views your performance, and how future laws develop.

➡️ This step emphasizes the power and responsibility of voting, and the need to make informed, self-driven choices — not emotional or misled ones.


🧠 Mechanics & Game Framework

To manage the interplay of laws, NPCs, value perspectives, societal welfare indicators, and outcomes, we combine Unity editor tools with a data-driven JSON pipeline. Together they make the project a reusable educational framework.

🌐 Web content editor (JSON)

Live editor:CodeForEurope Data Editor — a static, browser-only tool to load game_database.json, edit structured content with guidance, and download a compatible file. Nothing is uploaded; all processing stays on the user’s device.

Use it to adjust text, links between laws and interactions, EuroChat posts, opinions (pro / neutral / against summaries), law effects, and welfare effects—without hand-editing raw JSON. Enum reference fields (FactionType, InteractionEffectType) are documented in the data file; full in-browser editing of those definitions is work in progress for a future version.

Models and prefabs: the web editor does not create new 3D models or Unity prefabs. You still author assets in Unity. The app maps existing content by prefabPath and IDs: as long as paths point to resources the build already includes, NPCs and scenes resolve correctly.

🔧 1. NPC Creator (Unity)

Creating and wiring new NPC prefabs, meshes, and ScriptableObject setup remains Unity-first. The NPC Creator editor window is the primary tool for:

  • Personal value orientations (mapped to internal orientation types)
  • Display names, visuals, traits
  • Linking to prefabs under Resources

A richer NPC workflow in the web editor is work in progress; today, the site is ideal for reusing and retargeting existing NPC definitions and paths.

💬 2. NPC Interaction Creator

Used for defining:

  • Dialogue lines for office visits
  • Effect types and magnitudes (mapped to internal InteractionEffectType values)
  • Which NPC each interaction belongs to

Interactions used in Step 2 (Office) are authored here in Unity; the same interaction names are referenced from JSON for laws and validation.

🏛️ 3. Law Manager & welfare indicators

Used to:

  • Add law proposals and link them to NPC interactions by name
  • Define short and long descriptions and icon paths (icon support may evolve)
  • Law effects – shifts along orientation axes (personal-value / coalition-style influence in gameplay)
  • Welfare effects – changes to societal indicators when a law passes: GDP per capita, Gini (inequality), human capital, and life expectancy (WelfareIndicator in code)

WelfareManager applies these effects after votes, updates on-screen indicators, and feeds into composite welfare outcomes at the end of a run.

🗃️ 4. Game data (game_database.json)

Runtime content is loaded from Assets/Resources/GameData/game_database.json via GameDatabase:

SectionRole
fieldDetailsHuman-readable enum reference for data authors (orientation & interaction effect types)
npcsIDs, names, prefabPath, orientation indices
interactionsNamed office scenes: npcId, dialogue lines, typed effects
lawsTitles, descriptions, optional long text (include in LawJson if you need it in Unity), iconPath, law effects, welfareEffects, interactionNames
postsEuroChat feed grouped by lawName
opinionsShort pro / neutral / against copy keyed by law name (used by the web editor and content workflow; add fields to GameDatabaseRoot in code if you need them loaded at runtime)

Keeping this file consistent preserves compatibility with GameDatabaseRoot and the Unity parsers. Extra keys not yet mirrored in C# are ignored by JsonUtility until wired up.


These tools combine so Parliament Hero stays a full framework, not a single-use product. Educators and developers can:

  • Replace or extend scenarios (e.g., climate, rights, digital policy)
  • Tune welfare and orientation balance via JSON or Unity tools
  • Reuse the platform for other democratic learning contexts

➡️ Our goal is repeatable, adaptable educational experiences accessible to many audiences.


📖 Code & Tooling Documentation

We provide detailed documentation for our codebase and Unity tools in the Scripts/README.md file.
It covers managers (GameManager, WelfareManager, GameDatabase, etc.), editor windows, and how JSON data connects to runtime systems.

For content editing without Unity, use the web data editor and the game_database.json layout described under Mechanics & Game Framework.


📚 Educational Impact

Parliament Hero delivers powerful learning outcomes by blending real EU content with fun, interactive storytelling:

  • 🧠 Understanding of democratic institutions and law-making
  • 🔎 Skills in research, evidence comparison, and narrative analysis
  • 🗳️ Empowerment through knowledge of how and why to vote
  • 🧍 Awareness of personal biases and the manipulation of information

All while staying approachable for young learners and meaningful for adults.


🧑‍🏫 Techniques & Educational Design

To make democratic education more accessible and impactful, Parliament Hero uses a variety of innovative techniques:

  • 🎮 Gamification
    Complex concepts such as legislation, civic engagement, and EU institutions are translated into interactive game mechanics suitable for all age groups.

  • 📖 Progressive Storytelling
    The game narrative evolves based on the player’s decisions, making each playthrough unique.

  • 🕵️ Debunking & Prebunking Mechanics
    Players are exposed to misinformation through law proposals and NPCs. In the Library, they can uncover the truth, fostering critical thinking and media literacy.

  • 🤝 Plural perspectives
    Players interact with diverse viewpoints and influences, reflecting the pluralism of real democratic institutions.

  • 🇪🇺 Integrated EU Content
    All missions and storylines are based on real EU information, ensuring authenticity and relevance.


⚠️ Challenges We Faced

Designing Parliament Hero came with important challenges:

🧩 Gamifying Real Processes

  • Turning complex, dry procedures into accessible and entertaining mechanics
  • Balancing fun with educational value

🔄 Managing Complexity

  • Simulating political diversity with dynamic NPC behavior
  • Maintaining consistent logic across numerous interactions

🧠 Pedagogical Alignment

  • Ensuring each decision teaches a real-world skill
  • Designing systems that promote learning by doing, not lecturing

🧪 Disinformation Design

  • Creating misleading but realistic fake news examples
  • Encouraging skepticism without promoting cynicism or conspiracy thinking

🧰 Framework Modularity

  • Making tools robust enough for reusability, yet simple for non-programmers
  • Balancing flexibility and structure in the Unity Editor

🔮 Future Plans

We're excited about the future of Parliament Hero and committed to making it even more accessible, engaging, and educational. Here's what's on our roadmap:

📱 Mobile Support We plan to port the game to Android and iOS platforms, bringing civic education to more users in a portable, touch-friendly format.

🎮 Controller Accessibility We aim to add support for game controllers to ensure players with physical disabilities can interact with the game more comfortably and inclusively.

🎨 Enhanced Visual Accessibility We’ve already taken steps to ensure good color contrast for players with visual impairments. In future updates, we plan to introduce specially designed accessible color palettes to improve clarity and readability.

📈 Expanded Content Our vision includes the addition of more law proposals, characters, value perspectives, NPCs, and decision paths to increase replayability and educational value.

🧠 Deeper Interactions and Scenarios We aim to enrich gameplay with more nuanced dilemmas, branching narratives, and unexpected consequences to better mirror real-world complexities in civic life and policymaking.

🎵 Assets

🔊 Audio

Third-party sounds are from freessound.org as follows:

  • 🐱 ANMLCat_Cat Meow Request 01_KVV AUDIO_FREE, by KVV_Audio (CC BY 4.0)
  • 📄 Paper rip 1, by omgitsjo (CC0)
  • 🦇 bat swoosh, by MrGungus (CC0)
  • 🕹️ Menu_Select, by SomeUsername0 (CC0)
  • 🎶 Voice Male humming sounds, by bolkmar (CC0)

🧊 3D Models

The 3D models were generated by using AI via meshy with a premium subscription.


Go back to Quick Links to view other resources or play our game!


🗳️ Your vote is your voice. Your knowledge is your shield.
Learn. Think. Decide. Be a Parliament Hero.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { // Force GitHub README to respect dark mode (function() { var style = document.createElement('style'); style.textContent = ' .markdown-body { color-scheme: dark light; } .markdown-body pre { background: #161b22 !important; } .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; } .markdown-body table th, .markdown-body table td { border-color: #30363d !important; } .markdown-body img { background: #0d1117; } .markdown-body blockquote { border-left-color: #8b949e; } .markdown-body hr { border-color: #30363d; } '; document.head.appendChild(style); })(); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' GitHub - deprimus/CodeForEurope · GitHub
Skip to content

Repository files navigation

🏛️ Parliament Hero

Parliament Hero is an educational role-playing game that places players in the heart of the European democratic process. It teaches critical civic skills such as identifying disinformation, researching laws, and making informed decisions — all through an engaging game loop based on real EU values, structures, and challenges.

Parliament here representing picture

🔗 Quick Links


📑 Table of Contents


🎯 What You'll Learn

Through interactive missions and dynamic NPC interactions, players will explore:

  • 📜 The role and responsibilities of the European Parliament
  • 🗳️ The importance of civic participation and informed voting
  • 🕵️ Strategies to recognize, prebunk, and debunk disinformation through research and critical thinking

🌈 Value perspectives: democratic orientations

Players engage with four broad value perspectives that reflect the diversity of views in the European Parliament (in code and data these map to orientation types; the goal is inclusive framing in learning materials):

  • 🟦 Traditionalist – heritage, stability, continuity
  • 🟨 Libertarian / liberal – individual freedoms, market economy, reform
  • 🟩 Left / green – sustainability, climate action, social justice
  • 🟥 Right / progressive – innovation, equality, inclusive growth

Each perspective offers a lens for laws, debates, and choices. How you vote and whom you listen to shapes relationships and outcomes—not a single “correct” ideology, but informed trade-offs.


🔁 Gameplay Loop: The Four Steps of Democracy

🧾 Step 1 – A Law Appears

Each round begins with a new law proposal from one of the major policy areas. These laws simulate real-life situations where people may only hear headlines or partial information — and must decide what to do next.

NPCs react immediately, with mood bars showing their opinions. These quick impressions mimic how real citizens and politicians may initially react without full context. It’s now up to the player to learn more.

➡️ This step highlights the challenge of limited knowledge and encourages curiosity, skepticism, and further inquiry.

Step one


🏢 Step 2 – The Office

Players are then placed in a more interactive environment: the Office, where they meet a variety of individuals and institutions who present their opinions or lobby for or against proposed laws.

This mirrors day-to-day real-world information exposure: news articles, conversations, influencers, and social media posts.

Some of these sources are trustworthy — others are not.

Players must:

  • Examine biases and stated viewpoints
  • Distinguish between reliable and unreliable information
  • Begin to suspect potential disinformation or manipulation

➡️ This stage develops information filtering and teaches players to question sources before accepting them as fact.

👉 View "Step Two" as a GIF (opens in new tab)


📚 Step 3 – The Library

This is the debunking and prebunking phase. Players take a deep dive into information: reading books, comparing media sources, and using online tools inside the Library.

Tools available:

  • 📖 Click bookshelves to access historical context and data
  • 💻 Use the laptop to simulate online research

Players are encouraged to consult multiple sources, compare conflicting narratives, and draw their own conclusions. Critical thinking is essential — and rewarded.

➡️ This phase teaches media literacy and source triangulation, helping players learn to verify before acting.

All these steps are repeated multiple times until an ending in reached.

Step three


🎬 Endings – Your Votes Shape the World

After a predefined number of rounds, the game concludes with one of five possible endings based on the player's voting patterns and how orientation influence shifted:

  • 🟦 A Traditionalist-leaning ending
  • 🟨 A liberal-leaning ending
  • 🟩 A green / left-leaning ending
  • 🟥 A progressive / right-leaning ending
  • ⚖️ A Harmony ending – where influence was relatively balanced across perspectives

This outcome depends on:

  • Which perspectives you supported most through votes
  • The NPCs you interacted with and influenced
  • The laws you chose to support or reject
  • Societal indicators (economy, inequality, education, health) tracked via welfare effects

➡️ At this final point, the game highlights a key civic message: Every vote matters. Every interaction counts.

Players reflect on how their individual choices shaped the political landscape, emphasizing the importance of participation, presence, and informed decision-making in a democracy.


🗳️ Step 4 – Voting Time - Going back to step 1

With everything they've seen and researched, players now face the final decision: vote yes or no on the proposed law.

They must consider:

  • Public mood
  • Alignment with different value perspectives
  • What they uncovered in the Library
  • Long-term effects on reputation, societal indicators, and future laws

Every vote matters and will influence how characters respond, how the public views your performance, and how future laws develop.

➡️ This step emphasizes the power and responsibility of voting, and the need to make informed, self-driven choices — not emotional or misled ones.


🧠 Mechanics & Game Framework

To manage the interplay of laws, NPCs, value perspectives, societal welfare indicators, and outcomes, we combine Unity editor tools with a data-driven JSON pipeline. Together they make the project a reusable educational framework.

🌐 Web content editor (JSON)

Live editor:CodeForEurope Data Editor — a static, browser-only tool to load game_database.json, edit structured content with guidance, and download a compatible file. Nothing is uploaded; all processing stays on the user’s device.

Use it to adjust text, links between laws and interactions, EuroChat posts, opinions (pro / neutral / against summaries), law effects, and welfare effects—without hand-editing raw JSON. Enum reference fields (FactionType, InteractionEffectType) are documented in the data file; full in-browser editing of those definitions is work in progress for a future version.

Models and prefabs: the web editor does not create new 3D models or Unity prefabs. You still author assets in Unity. The app maps existing content by prefabPath and IDs: as long as paths point to resources the build already includes, NPCs and scenes resolve correctly.

🔧 1. NPC Creator (Unity)

Creating and wiring new NPC prefabs, meshes, and ScriptableObject setup remains Unity-first. The NPC Creator editor window is the primary tool for:

  • Personal value orientations (mapped to internal orientation types)
  • Display names, visuals, traits
  • Linking to prefabs under Resources

A richer NPC workflow in the web editor is work in progress; today, the site is ideal for reusing and retargeting existing NPC definitions and paths.

💬 2. NPC Interaction Creator

Used for defining:

  • Dialogue lines for office visits
  • Effect types and magnitudes (mapped to internal InteractionEffectType values)
  • Which NPC each interaction belongs to

Interactions used in Step 2 (Office) are authored here in Unity; the same interaction names are referenced from JSON for laws and validation.

🏛️ 3. Law Manager & welfare indicators

Used to:

  • Add law proposals and link them to NPC interactions by name
  • Define short and long descriptions and icon paths (icon support may evolve)
  • Law effects – shifts along orientation axes (personal-value / coalition-style influence in gameplay)
  • Welfare effects – changes to societal indicators when a law passes: GDP per capita, Gini (inequality), human capital, and life expectancy (WelfareIndicator in code)

WelfareManager applies these effects after votes, updates on-screen indicators, and feeds into composite welfare outcomes at the end of a run.

🗃️ 4. Game data (game_database.json)

Runtime content is loaded from Assets/Resources/GameData/game_database.json via GameDatabase:

SectionRole
fieldDetailsHuman-readable enum reference for data authors (orientation & interaction effect types)
npcsIDs, names, prefabPath, orientation indices
interactionsNamed office scenes: npcId, dialogue lines, typed effects
lawsTitles, descriptions, optional long text (include in LawJson if you need it in Unity), iconPath, law effects, welfareEffects, interactionNames
postsEuroChat feed grouped by lawName
opinionsShort pro / neutral / against copy keyed by law name (used by the web editor and content workflow; add fields to GameDatabaseRoot in code if you need them loaded at runtime)

Keeping this file consistent preserves compatibility with GameDatabaseRoot and the Unity parsers. Extra keys not yet mirrored in C# are ignored by JsonUtility until wired up.


These tools combine so Parliament Hero stays a full framework, not a single-use product. Educators and developers can:

  • Replace or extend scenarios (e.g., climate, rights, digital policy)
  • Tune welfare and orientation balance via JSON or Unity tools
  • Reuse the platform for other democratic learning contexts

➡️ Our goal is repeatable, adaptable educational experiences accessible to many audiences.


📖 Code & Tooling Documentation

We provide detailed documentation for our codebase and Unity tools in the Scripts/README.md file.
It covers managers (GameManager, WelfareManager, GameDatabase, etc.), editor windows, and how JSON data connects to runtime systems.

For content editing without Unity, use the web data editor and the game_database.json layout described under Mechanics & Game Framework.


📚 Educational Impact

Parliament Hero delivers powerful learning outcomes by blending real EU content with fun, interactive storytelling:

  • 🧠 Understanding of democratic institutions and law-making
  • 🔎 Skills in research, evidence comparison, and narrative analysis
  • 🗳️ Empowerment through knowledge of how and why to vote
  • 🧍 Awareness of personal biases and the manipulation of information

All while staying approachable for young learners and meaningful for adults.


🧑‍🏫 Techniques & Educational Design

To make democratic education more accessible and impactful, Parliament Hero uses a variety of innovative techniques:

  • 🎮 Gamification
    Complex concepts such as legislation, civic engagement, and EU institutions are translated into interactive game mechanics suitable for all age groups.

  • 📖 Progressive Storytelling
    The game narrative evolves based on the player’s decisions, making each playthrough unique.

  • 🕵️ Debunking & Prebunking Mechanics
    Players are exposed to misinformation through law proposals and NPCs. In the Library, they can uncover the truth, fostering critical thinking and media literacy.

  • 🤝 Plural perspectives
    Players interact with diverse viewpoints and influences, reflecting the pluralism of real democratic institutions.

  • 🇪🇺 Integrated EU Content
    All missions and storylines are based on real EU information, ensuring authenticity and relevance.


⚠️ Challenges We Faced

Designing Parliament Hero came with important challenges:

🧩 Gamifying Real Processes

  • Turning complex, dry procedures into accessible and entertaining mechanics
  • Balancing fun with educational value

🔄 Managing Complexity

  • Simulating political diversity with dynamic NPC behavior
  • Maintaining consistent logic across numerous interactions

🧠 Pedagogical Alignment

  • Ensuring each decision teaches a real-world skill
  • Designing systems that promote learning by doing, not lecturing

🧪 Disinformation Design

  • Creating misleading but realistic fake news examples
  • Encouraging skepticism without promoting cynicism or conspiracy thinking

🧰 Framework Modularity

  • Making tools robust enough for reusability, yet simple for non-programmers
  • Balancing flexibility and structure in the Unity Editor

🔮 Future Plans

We're excited about the future of Parliament Hero and committed to making it even more accessible, engaging, and educational. Here's what's on our roadmap:

📱 Mobile Support We plan to port the game to Android and iOS platforms, bringing civic education to more users in a portable, touch-friendly format.

🎮 Controller Accessibility We aim to add support for game controllers to ensure players with physical disabilities can interact with the game more comfortably and inclusively.

🎨 Enhanced Visual Accessibility We’ve already taken steps to ensure good color contrast for players with visual impairments. In future updates, we plan to introduce specially designed accessible color palettes to improve clarity and readability.

📈 Expanded Content Our vision includes the addition of more law proposals, characters, value perspectives, NPCs, and decision paths to increase replayability and educational value.

🧠 Deeper Interactions and Scenarios We aim to enrich gameplay with more nuanced dilemmas, branching narratives, and unexpected consequences to better mirror real-world complexities in civic life and policymaking.

🎵 Assets

🔊 Audio

Third-party sounds are from freessound.org as follows:

  • 🐱 ANMLCat_Cat Meow Request 01_KVV AUDIO_FREE, by KVV_Audio (CC BY 4.0)
  • 📄 Paper rip 1, by omgitsjo (CC0)
  • 🦇 bat swoosh, by MrGungus (CC0)
  • 🕹️ Menu_Select, by SomeUsername0 (CC0)
  • 🎶 Voice Male humming sounds, by bolkmar (CC0)

🧊 3D Models

The 3D models were generated by using AI via meshy with a premium subscription.


Go back to Quick Links to view other resources or play our game!


🗳️ Your vote is your voice. Your knowledge is your shield.
Learn. Think. Decide. Be a Parliament Hero.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { // Highlight search terms from Google/DuckDuckGo/Bing referrer (function() { var ref = document.referrer; var terms = []; if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) { var url = new URL(ref); var q = url.searchParams.get('q') || url.searchParams.get('p'); if (q) { terms = q.split(/\s+/).filter(function(t) { return t.length > 2; }); } } if (terms.length === 0) return; var style = document.createElement('style'); style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }'; document.head.appendChild(style); function highlight(node) { if (node.nodeType === 3) { // text node var text = node.textContent; var found = false; terms.forEach(function(term) { var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\]\\]/g, '\\') + ')', 'gi'); if (regex.test(text)) { found = true; var frag = document.createDocumentFragment(); var parts = text.split(regex); parts.forEach(function(part, i) { if (i % 2 === 0) { frag.appendChild(document.createTextNode(part)); } else { var span = document.createElement('span'); span.className = 'userscript-highlight'; span.textContent = part; frag.appendChild(span); } }); node.parentNode.replaceChild(frag, node); } }); } else if (node.nodeType === 1 && node.childNodes) { // element var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT']; if (!skipTags.includes(node.tagName)) { Array.from(node.childNodes).forEach(highlight); } } } highlight(document.body); // Re-highlight on dynamic content var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1 || node.nodeType === 3) highlight(node); }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' GitHub - deprimus/CodeForEurope · GitHub
Skip to content

Repository files navigation

🏛️ Parliament Hero

Parliament Hero is an educational role-playing game that places players in the heart of the European democratic process. It teaches critical civic skills such as identifying disinformation, researching laws, and making informed decisions — all through an engaging game loop based on real EU values, structures, and challenges.

Parliament here representing picture

🔗 Quick Links


📑 Table of Contents


🎯 What You'll Learn

Through interactive missions and dynamic NPC interactions, players will explore:

  • 📜 The role and responsibilities of the European Parliament
  • 🗳️ The importance of civic participation and informed voting
  • 🕵️ Strategies to recognize, prebunk, and debunk disinformation through research and critical thinking

🌈 Value perspectives: democratic orientations

Players engage with four broad value perspectives that reflect the diversity of views in the European Parliament (in code and data these map to orientation types; the goal is inclusive framing in learning materials):

  • 🟦 Traditionalist – heritage, stability, continuity
  • 🟨 Libertarian / liberal – individual freedoms, market economy, reform
  • 🟩 Left / green – sustainability, climate action, social justice
  • 🟥 Right / progressive – innovation, equality, inclusive growth

Each perspective offers a lens for laws, debates, and choices. How you vote and whom you listen to shapes relationships and outcomes—not a single “correct” ideology, but informed trade-offs.


🔁 Gameplay Loop: The Four Steps of Democracy

🧾 Step 1 – A Law Appears

Each round begins with a new law proposal from one of the major policy areas. These laws simulate real-life situations where people may only hear headlines or partial information — and must decide what to do next.

NPCs react immediately, with mood bars showing their opinions. These quick impressions mimic how real citizens and politicians may initially react without full context. It’s now up to the player to learn more.

➡️ This step highlights the challenge of limited knowledge and encourages curiosity, skepticism, and further inquiry.

Step one


🏢 Step 2 – The Office

Players are then placed in a more interactive environment: the Office, where they meet a variety of individuals and institutions who present their opinions or lobby for or against proposed laws.

This mirrors day-to-day real-world information exposure: news articles, conversations, influencers, and social media posts.

Some of these sources are trustworthy — others are not.

Players must:

  • Examine biases and stated viewpoints
  • Distinguish between reliable and unreliable information
  • Begin to suspect potential disinformation or manipulation

➡️ This stage develops information filtering and teaches players to question sources before accepting them as fact.

👉 View "Step Two" as a GIF (opens in new tab)


📚 Step 3 – The Library

This is the debunking and prebunking phase. Players take a deep dive into information: reading books, comparing media sources, and using online tools inside the Library.

Tools available:

  • 📖 Click bookshelves to access historical context and data
  • 💻 Use the laptop to simulate online research

Players are encouraged to consult multiple sources, compare conflicting narratives, and draw their own conclusions. Critical thinking is essential — and rewarded.

➡️ This phase teaches media literacy and source triangulation, helping players learn to verify before acting.

All these steps are repeated multiple times until an ending in reached.

Step three


🎬 Endings – Your Votes Shape the World

After a predefined number of rounds, the game concludes with one of five possible endings based on the player's voting patterns and how orientation influence shifted:

  • 🟦 A Traditionalist-leaning ending
  • 🟨 A liberal-leaning ending
  • 🟩 A green / left-leaning ending
  • 🟥 A progressive / right-leaning ending
  • ⚖️ A Harmony ending – where influence was relatively balanced across perspectives

This outcome depends on:

  • Which perspectives you supported most through votes
  • The NPCs you interacted with and influenced
  • The laws you chose to support or reject
  • Societal indicators (economy, inequality, education, health) tracked via welfare effects

➡️ At this final point, the game highlights a key civic message: Every vote matters. Every interaction counts.

Players reflect on how their individual choices shaped the political landscape, emphasizing the importance of participation, presence, and informed decision-making in a democracy.


🗳️ Step 4 – Voting Time - Going back to step 1

With everything they've seen and researched, players now face the final decision: vote yes or no on the proposed law.

They must consider:

  • Public mood
  • Alignment with different value perspectives
  • What they uncovered in the Library
  • Long-term effects on reputation, societal indicators, and future laws

Every vote matters and will influence how characters respond, how the public views your performance, and how future laws develop.

➡️ This step emphasizes the power and responsibility of voting, and the need to make informed, self-driven choices — not emotional or misled ones.


🧠 Mechanics & Game Framework

To manage the interplay of laws, NPCs, value perspectives, societal welfare indicators, and outcomes, we combine Unity editor tools with a data-driven JSON pipeline. Together they make the project a reusable educational framework.

🌐 Web content editor (JSON)

Live editor:CodeForEurope Data Editor — a static, browser-only tool to load game_database.json, edit structured content with guidance, and download a compatible file. Nothing is uploaded; all processing stays on the user’s device.

Use it to adjust text, links between laws and interactions, EuroChat posts, opinions (pro / neutral / against summaries), law effects, and welfare effects—without hand-editing raw JSON. Enum reference fields (FactionType, InteractionEffectType) are documented in the data file; full in-browser editing of those definitions is work in progress for a future version.

Models and prefabs: the web editor does not create new 3D models or Unity prefabs. You still author assets in Unity. The app maps existing content by prefabPath and IDs: as long as paths point to resources the build already includes, NPCs and scenes resolve correctly.

🔧 1. NPC Creator (Unity)

Creating and wiring new NPC prefabs, meshes, and ScriptableObject setup remains Unity-first. The NPC Creator editor window is the primary tool for:

  • Personal value orientations (mapped to internal orientation types)
  • Display names, visuals, traits
  • Linking to prefabs under Resources

A richer NPC workflow in the web editor is work in progress; today, the site is ideal for reusing and retargeting existing NPC definitions and paths.

💬 2. NPC Interaction Creator

Used for defining:

  • Dialogue lines for office visits
  • Effect types and magnitudes (mapped to internal InteractionEffectType values)
  • Which NPC each interaction belongs to

Interactions used in Step 2 (Office) are authored here in Unity; the same interaction names are referenced from JSON for laws and validation.

🏛️ 3. Law Manager & welfare indicators

Used to:

  • Add law proposals and link them to NPC interactions by name
  • Define short and long descriptions and icon paths (icon support may evolve)
  • Law effects – shifts along orientation axes (personal-value / coalition-style influence in gameplay)
  • Welfare effects – changes to societal indicators when a law passes: GDP per capita, Gini (inequality), human capital, and life expectancy (WelfareIndicator in code)

WelfareManager applies these effects after votes, updates on-screen indicators, and feeds into composite welfare outcomes at the end of a run.

🗃️ 4. Game data (game_database.json)

Runtime content is loaded from Assets/Resources/GameData/game_database.json via GameDatabase:

SectionRole
fieldDetailsHuman-readable enum reference for data authors (orientation & interaction effect types)
npcsIDs, names, prefabPath, orientation indices
interactionsNamed office scenes: npcId, dialogue lines, typed effects
lawsTitles, descriptions, optional long text (include in LawJson if you need it in Unity), iconPath, law effects, welfareEffects, interactionNames
postsEuroChat feed grouped by lawName
opinionsShort pro / neutral / against copy keyed by law name (used by the web editor and content workflow; add fields to GameDatabaseRoot in code if you need them loaded at runtime)

Keeping this file consistent preserves compatibility with GameDatabaseRoot and the Unity parsers. Extra keys not yet mirrored in C# are ignored by JsonUtility until wired up.


These tools combine so Parliament Hero stays a full framework, not a single-use product. Educators and developers can:

  • Replace or extend scenarios (e.g., climate, rights, digital policy)
  • Tune welfare and orientation balance via JSON or Unity tools
  • Reuse the platform for other democratic learning contexts

➡️ Our goal is repeatable, adaptable educational experiences accessible to many audiences.


📖 Code & Tooling Documentation

We provide detailed documentation for our codebase and Unity tools in the Scripts/README.md file.
It covers managers (GameManager, WelfareManager, GameDatabase, etc.), editor windows, and how JSON data connects to runtime systems.

For content editing without Unity, use the web data editor and the game_database.json layout described under Mechanics & Game Framework.


📚 Educational Impact

Parliament Hero delivers powerful learning outcomes by blending real EU content with fun, interactive storytelling:

  • 🧠 Understanding of democratic institutions and law-making
  • 🔎 Skills in research, evidence comparison, and narrative analysis
  • 🗳️ Empowerment through knowledge of how and why to vote
  • 🧍 Awareness of personal biases and the manipulation of information

All while staying approachable for young learners and meaningful for adults.


🧑‍🏫 Techniques & Educational Design

To make democratic education more accessible and impactful, Parliament Hero uses a variety of innovative techniques:

  • 🎮 Gamification
    Complex concepts such as legislation, civic engagement, and EU institutions are translated into interactive game mechanics suitable for all age groups.

  • 📖 Progressive Storytelling
    The game narrative evolves based on the player’s decisions, making each playthrough unique.

  • 🕵️ Debunking & Prebunking Mechanics
    Players are exposed to misinformation through law proposals and NPCs. In the Library, they can uncover the truth, fostering critical thinking and media literacy.

  • 🤝 Plural perspectives
    Players interact with diverse viewpoints and influences, reflecting the pluralism of real democratic institutions.

  • 🇪🇺 Integrated EU Content
    All missions and storylines are based on real EU information, ensuring authenticity and relevance.


⚠️ Challenges We Faced

Designing Parliament Hero came with important challenges:

🧩 Gamifying Real Processes

  • Turning complex, dry procedures into accessible and entertaining mechanics
  • Balancing fun with educational value

🔄 Managing Complexity

  • Simulating political diversity with dynamic NPC behavior
  • Maintaining consistent logic across numerous interactions

🧠 Pedagogical Alignment

  • Ensuring each decision teaches a real-world skill
  • Designing systems that promote learning by doing, not lecturing

🧪 Disinformation Design

  • Creating misleading but realistic fake news examples
  • Encouraging skepticism without promoting cynicism or conspiracy thinking

🧰 Framework Modularity

  • Making tools robust enough for reusability, yet simple for non-programmers
  • Balancing flexibility and structure in the Unity Editor

🔮 Future Plans

We're excited about the future of Parliament Hero and committed to making it even more accessible, engaging, and educational. Here's what's on our roadmap:

📱 Mobile Support We plan to port the game to Android and iOS platforms, bringing civic education to more users in a portable, touch-friendly format.

🎮 Controller Accessibility We aim to add support for game controllers to ensure players with physical disabilities can interact with the game more comfortably and inclusively.

🎨 Enhanced Visual Accessibility We’ve already taken steps to ensure good color contrast for players with visual impairments. In future updates, we plan to introduce specially designed accessible color palettes to improve clarity and readability.

📈 Expanded Content Our vision includes the addition of more law proposals, characters, value perspectives, NPCs, and decision paths to increase replayability and educational value.

🧠 Deeper Interactions and Scenarios We aim to enrich gameplay with more nuanced dilemmas, branching narratives, and unexpected consequences to better mirror real-world complexities in civic life and policymaking.

🎵 Assets

🔊 Audio

Third-party sounds are from freessound.org as follows:

  • 🐱 ANMLCat_Cat Meow Request 01_KVV AUDIO_FREE, by KVV_Audio (CC BY 4.0)
  • 📄 Paper rip 1, by omgitsjo (CC0)
  • 🦇 bat swoosh, by MrGungus (CC0)
  • 🕹️ Menu_Select, by SomeUsername0 (CC0)
  • 🎶 Voice Male humming sounds, by bolkmar (CC0)

🧊 3D Models

The 3D models were generated by using AI via meshy with a premium subscription.


Go back to Quick Links to view other resources or play our game!


🗳️ Your vote is your voice. Your knowledge is your shield.
Learn. Think. Decide. Be a Parliament Hero.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { // Strip utm_, fbclid, gclid, etc. from all links on page (function() { var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content', 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid', 'ref', 'ref_src', 'source', 'medium', 'campaign']; function cleanUrl(url) { try { var u = new URL(url, window.location.origin); var changed = false; trackingParams.forEach(function(p) { if (u.searchParams.has(p)) { u.searchParams.delete(p); changed = true; } }); return changed ? u.toString() : url; } catch (e) { return url; } } function cleanLinks() { document.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } cleanLinks(); var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1) { if (node.tagName === 'A') cleanLinks(); node.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + ' GitHub - deprimus/CodeForEurope · GitHub
Skip to content

Repository files navigation

🏛️ Parliament Hero

Parliament Hero is an educational role-playing game that places players in the heart of the European democratic process. It teaches critical civic skills such as identifying disinformation, researching laws, and making informed decisions — all through an engaging game loop based on real EU values, structures, and challenges.

Parliament here representing picture

🔗 Quick Links


📑 Table of Contents


🎯 What You'll Learn

Through interactive missions and dynamic NPC interactions, players will explore:

  • 📜 The role and responsibilities of the European Parliament
  • 🗳️ The importance of civic participation and informed voting
  • 🕵️ Strategies to recognize, prebunk, and debunk disinformation through research and critical thinking

🌈 Value perspectives: democratic orientations

Players engage with four broad value perspectives that reflect the diversity of views in the European Parliament (in code and data these map to orientation types; the goal is inclusive framing in learning materials):

  • 🟦 Traditionalist – heritage, stability, continuity
  • 🟨 Libertarian / liberal – individual freedoms, market economy, reform
  • 🟩 Left / green – sustainability, climate action, social justice
  • 🟥 Right / progressive – innovation, equality, inclusive growth

Each perspective offers a lens for laws, debates, and choices. How you vote and whom you listen to shapes relationships and outcomes—not a single “correct” ideology, but informed trade-offs.


🔁 Gameplay Loop: The Four Steps of Democracy

🧾 Step 1 – A Law Appears

Each round begins with a new law proposal from one of the major policy areas. These laws simulate real-life situations where people may only hear headlines or partial information — and must decide what to do next.

NPCs react immediately, with mood bars showing their opinions. These quick impressions mimic how real citizens and politicians may initially react without full context. It’s now up to the player to learn more.

➡️ This step highlights the challenge of limited knowledge and encourages curiosity, skepticism, and further inquiry.

Step one


🏢 Step 2 – The Office

Players are then placed in a more interactive environment: the Office, where they meet a variety of individuals and institutions who present their opinions or lobby for or against proposed laws.

This mirrors day-to-day real-world information exposure: news articles, conversations, influencers, and social media posts.

Some of these sources are trustworthy — others are not.

Players must:

  • Examine biases and stated viewpoints
  • Distinguish between reliable and unreliable information
  • Begin to suspect potential disinformation or manipulation

➡️ This stage develops information filtering and teaches players to question sources before accepting them as fact.

👉 View "Step Two" as a GIF (opens in new tab)


📚 Step 3 – The Library

This is the debunking and prebunking phase. Players take a deep dive into information: reading books, comparing media sources, and using online tools inside the Library.

Tools available:

  • 📖 Click bookshelves to access historical context and data
  • 💻 Use the laptop to simulate online research

Players are encouraged to consult multiple sources, compare conflicting narratives, and draw their own conclusions. Critical thinking is essential — and rewarded.

➡️ This phase teaches media literacy and source triangulation, helping players learn to verify before acting.

All these steps are repeated multiple times until an ending in reached.

Step three


🎬 Endings – Your Votes Shape the World

After a predefined number of rounds, the game concludes with one of five possible endings based on the player's voting patterns and how orientation influence shifted:

  • 🟦 A Traditionalist-leaning ending
  • 🟨 A liberal-leaning ending
  • 🟩 A green / left-leaning ending
  • 🟥 A progressive / right-leaning ending
  • ⚖️ A Harmony ending – where influence was relatively balanced across perspectives

This outcome depends on:

  • Which perspectives you supported most through votes
  • The NPCs you interacted with and influenced
  • The laws you chose to support or reject
  • Societal indicators (economy, inequality, education, health) tracked via welfare effects

➡️ At this final point, the game highlights a key civic message: Every vote matters. Every interaction counts.

Players reflect on how their individual choices shaped the political landscape, emphasizing the importance of participation, presence, and informed decision-making in a democracy.


🗳️ Step 4 – Voting Time - Going back to step 1

With everything they've seen and researched, players now face the final decision: vote yes or no on the proposed law.

They must consider:

  • Public mood
  • Alignment with different value perspectives
  • What they uncovered in the Library
  • Long-term effects on reputation, societal indicators, and future laws

Every vote matters and will influence how characters respond, how the public views your performance, and how future laws develop.

➡️ This step emphasizes the power and responsibility of voting, and the need to make informed, self-driven choices — not emotional or misled ones.


🧠 Mechanics & Game Framework

To manage the interplay of laws, NPCs, value perspectives, societal welfare indicators, and outcomes, we combine Unity editor tools with a data-driven JSON pipeline. Together they make the project a reusable educational framework.

🌐 Web content editor (JSON)

Live editor:CodeForEurope Data Editor — a static, browser-only tool to load game_database.json, edit structured content with guidance, and download a compatible file. Nothing is uploaded; all processing stays on the user’s device.

Use it to adjust text, links between laws and interactions, EuroChat posts, opinions (pro / neutral / against summaries), law effects, and welfare effects—without hand-editing raw JSON. Enum reference fields (FactionType, InteractionEffectType) are documented in the data file; full in-browser editing of those definitions is work in progress for a future version.

Models and prefabs: the web editor does not create new 3D models or Unity prefabs. You still author assets in Unity. The app maps existing content by prefabPath and IDs: as long as paths point to resources the build already includes, NPCs and scenes resolve correctly.

🔧 1. NPC Creator (Unity)

Creating and wiring new NPC prefabs, meshes, and ScriptableObject setup remains Unity-first. The NPC Creator editor window is the primary tool for:

  • Personal value orientations (mapped to internal orientation types)
  • Display names, visuals, traits
  • Linking to prefabs under Resources

A richer NPC workflow in the web editor is work in progress; today, the site is ideal for reusing and retargeting existing NPC definitions and paths.

💬 2. NPC Interaction Creator

Used for defining:

  • Dialogue lines for office visits
  • Effect types and magnitudes (mapped to internal InteractionEffectType values)
  • Which NPC each interaction belongs to

Interactions used in Step 2 (Office) are authored here in Unity; the same interaction names are referenced from JSON for laws and validation.

🏛️ 3. Law Manager & welfare indicators

Used to:

  • Add law proposals and link them to NPC interactions by name
  • Define short and long descriptions and icon paths (icon support may evolve)
  • Law effects – shifts along orientation axes (personal-value / coalition-style influence in gameplay)
  • Welfare effects – changes to societal indicators when a law passes: GDP per capita, Gini (inequality), human capital, and life expectancy (WelfareIndicator in code)

WelfareManager applies these effects after votes, updates on-screen indicators, and feeds into composite welfare outcomes at the end of a run.

🗃️ 4. Game data (game_database.json)

Runtime content is loaded from Assets/Resources/GameData/game_database.json via GameDatabase:

SectionRole
fieldDetailsHuman-readable enum reference for data authors (orientation & interaction effect types)
npcsIDs, names, prefabPath, orientation indices
interactionsNamed office scenes: npcId, dialogue lines, typed effects
lawsTitles, descriptions, optional long text (include in LawJson if you need it in Unity), iconPath, law effects, welfareEffects, interactionNames
postsEuroChat feed grouped by lawName
opinionsShort pro / neutral / against copy keyed by law name (used by the web editor and content workflow; add fields to GameDatabaseRoot in code if you need them loaded at runtime)

Keeping this file consistent preserves compatibility with GameDatabaseRoot and the Unity parsers. Extra keys not yet mirrored in C# are ignored by JsonUtility until wired up.


These tools combine so Parliament Hero stays a full framework, not a single-use product. Educators and developers can:

  • Replace or extend scenarios (e.g., climate, rights, digital policy)
  • Tune welfare and orientation balance via JSON or Unity tools
  • Reuse the platform for other democratic learning contexts

➡️ Our goal is repeatable, adaptable educational experiences accessible to many audiences.


📖 Code & Tooling Documentation

We provide detailed documentation for our codebase and Unity tools in the Scripts/README.md file.
It covers managers (GameManager, WelfareManager, GameDatabase, etc.), editor windows, and how JSON data connects to runtime systems.

For content editing without Unity, use the web data editor and the game_database.json layout described under Mechanics & Game Framework.


📚 Educational Impact

Parliament Hero delivers powerful learning outcomes by blending real EU content with fun, interactive storytelling:

  • 🧠 Understanding of democratic institutions and law-making
  • 🔎 Skills in research, evidence comparison, and narrative analysis
  • 🗳️ Empowerment through knowledge of how and why to vote
  • 🧍 Awareness of personal biases and the manipulation of information

All while staying approachable for young learners and meaningful for adults.


🧑‍🏫 Techniques & Educational Design

To make democratic education more accessible and impactful, Parliament Hero uses a variety of innovative techniques:

  • 🎮 Gamification
    Complex concepts such as legislation, civic engagement, and EU institutions are translated into interactive game mechanics suitable for all age groups.

  • 📖 Progressive Storytelling
    The game narrative evolves based on the player’s decisions, making each playthrough unique.

  • 🕵️ Debunking & Prebunking Mechanics
    Players are exposed to misinformation through law proposals and NPCs. In the Library, they can uncover the truth, fostering critical thinking and media literacy.

  • 🤝 Plural perspectives
    Players interact with diverse viewpoints and influences, reflecting the pluralism of real democratic institutions.

  • 🇪🇺 Integrated EU Content
    All missions and storylines are based on real EU information, ensuring authenticity and relevance.


⚠️ Challenges We Faced

Designing Parliament Hero came with important challenges:

🧩 Gamifying Real Processes

  • Turning complex, dry procedures into accessible and entertaining mechanics
  • Balancing fun with educational value

🔄 Managing Complexity

  • Simulating political diversity with dynamic NPC behavior
  • Maintaining consistent logic across numerous interactions

🧠 Pedagogical Alignment

  • Ensuring each decision teaches a real-world skill
  • Designing systems that promote learning by doing, not lecturing

🧪 Disinformation Design

  • Creating misleading but realistic fake news examples
  • Encouraging skepticism without promoting cynicism or conspiracy thinking

🧰 Framework Modularity

  • Making tools robust enough for reusability, yet simple for non-programmers
  • Balancing flexibility and structure in the Unity Editor

🔮 Future Plans

We're excited about the future of Parliament Hero and committed to making it even more accessible, engaging, and educational. Here's what's on our roadmap:

📱 Mobile Support We plan to port the game to Android and iOS platforms, bringing civic education to more users in a portable, touch-friendly format.

🎮 Controller Accessibility We aim to add support for game controllers to ensure players with physical disabilities can interact with the game more comfortably and inclusively.

🎨 Enhanced Visual Accessibility We’ve already taken steps to ensure good color contrast for players with visual impairments. In future updates, we plan to introduce specially designed accessible color palettes to improve clarity and readability.

📈 Expanded Content Our vision includes the addition of more law proposals, characters, value perspectives, NPCs, and decision paths to increase replayability and educational value.

🧠 Deeper Interactions and Scenarios We aim to enrich gameplay with more nuanced dilemmas, branching narratives, and unexpected consequences to better mirror real-world complexities in civic life and policymaking.

🎵 Assets

🔊 Audio

Third-party sounds are from freessound.org as follows:

  • 🐱 ANMLCat_Cat Meow Request 01_KVV AUDIO_FREE, by KVV_Audio (CC BY 4.0)
  • 📄 Paper rip 1, by omgitsjo (CC0)
  • 🦇 bat swoosh, by MrGungus (CC0)
  • 🕹️ Menu_Select, by SomeUsername0 (CC0)
  • 🎶 Voice Male humming sounds, by bolkmar (CC0)

🧊 3D Models

The 3D models were generated by using AI via meshy with a premium subscription.


Go back to Quick Links to view other resources or play our game!


🗳️ Your vote is your voice. Your knowledge is your shield.
Learn. Think. Decide. Be a Parliament Hero.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { // Auto-enable theater mode on YouTube (function() { function tryTheater() { var btn = document.querySelector('button[aria-label="Theater mode"], ytd-player #player button[title="Theater mode"]'); if (btn && !btn.classList.contains('activated')) { btn.click(); } } // Try immediately tryTheater(); // Try after navigation (SPA) var lastUrl = location.href; setInterval(function() { if (location.href !== lastUrl) { lastUrl = location.href; setTimeout(tryTheater, 500); } }, 1000); // Also try on player load var observer = new MutationObserver(tryTheater); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' GitHub - deprimus/CodeForEurope · GitHub
Skip to content

Repository files navigation

🏛️ Parliament Hero

Parliament Hero is an educational role-playing game that places players in the heart of the European democratic process. It teaches critical civic skills such as identifying disinformation, researching laws, and making informed decisions — all through an engaging game loop based on real EU values, structures, and challenges.

Parliament here representing picture

🔗 Quick Links


📑 Table of Contents


🎯 What You'll Learn

Through interactive missions and dynamic NPC interactions, players will explore:

  • 📜 The role and responsibilities of the European Parliament
  • 🗳️ The importance of civic participation and informed voting
  • 🕵️ Strategies to recognize, prebunk, and debunk disinformation through research and critical thinking

🌈 Value perspectives: democratic orientations

Players engage with four broad value perspectives that reflect the diversity of views in the European Parliament (in code and data these map to orientation types; the goal is inclusive framing in learning materials):

  • 🟦 Traditionalist – heritage, stability, continuity
  • 🟨 Libertarian / liberal – individual freedoms, market economy, reform
  • 🟩 Left / green – sustainability, climate action, social justice
  • 🟥 Right / progressive – innovation, equality, inclusive growth

Each perspective offers a lens for laws, debates, and choices. How you vote and whom you listen to shapes relationships and outcomes—not a single “correct” ideology, but informed trade-offs.


🔁 Gameplay Loop: The Four Steps of Democracy

🧾 Step 1 – A Law Appears

Each round begins with a new law proposal from one of the major policy areas. These laws simulate real-life situations where people may only hear headlines or partial information — and must decide what to do next.

NPCs react immediately, with mood bars showing their opinions. These quick impressions mimic how real citizens and politicians may initially react without full context. It’s now up to the player to learn more.

➡️ This step highlights the challenge of limited knowledge and encourages curiosity, skepticism, and further inquiry.

Step one


🏢 Step 2 – The Office

Players are then placed in a more interactive environment: the Office, where they meet a variety of individuals and institutions who present their opinions or lobby for or against proposed laws.

This mirrors day-to-day real-world information exposure: news articles, conversations, influencers, and social media posts.

Some of these sources are trustworthy — others are not.

Players must:

  • Examine biases and stated viewpoints
  • Distinguish between reliable and unreliable information
  • Begin to suspect potential disinformation or manipulation

➡️ This stage develops information filtering and teaches players to question sources before accepting them as fact.

👉 View "Step Two" as a GIF (opens in new tab)


📚 Step 3 – The Library

This is the debunking and prebunking phase. Players take a deep dive into information: reading books, comparing media sources, and using online tools inside the Library.

Tools available:

  • 📖 Click bookshelves to access historical context and data
  • 💻 Use the laptop to simulate online research

Players are encouraged to consult multiple sources, compare conflicting narratives, and draw their own conclusions. Critical thinking is essential — and rewarded.

➡️ This phase teaches media literacy and source triangulation, helping players learn to verify before acting.

All these steps are repeated multiple times until an ending in reached.

Step three


🎬 Endings – Your Votes Shape the World

After a predefined number of rounds, the game concludes with one of five possible endings based on the player's voting patterns and how orientation influence shifted:

  • 🟦 A Traditionalist-leaning ending
  • 🟨 A liberal-leaning ending
  • 🟩 A green / left-leaning ending
  • 🟥 A progressive / right-leaning ending
  • ⚖️ A Harmony ending – where influence was relatively balanced across perspectives

This outcome depends on:

  • Which perspectives you supported most through votes
  • The NPCs you interacted with and influenced
  • The laws you chose to support or reject
  • Societal indicators (economy, inequality, education, health) tracked via welfare effects

➡️ At this final point, the game highlights a key civic message: Every vote matters. Every interaction counts.

Players reflect on how their individual choices shaped the political landscape, emphasizing the importance of participation, presence, and informed decision-making in a democracy.


🗳️ Step 4 – Voting Time - Going back to step 1

With everything they've seen and researched, players now face the final decision: vote yes or no on the proposed law.

They must consider:

  • Public mood
  • Alignment with different value perspectives
  • What they uncovered in the Library
  • Long-term effects on reputation, societal indicators, and future laws

Every vote matters and will influence how characters respond, how the public views your performance, and how future laws develop.

➡️ This step emphasizes the power and responsibility of voting, and the need to make informed, self-driven choices — not emotional or misled ones.


🧠 Mechanics & Game Framework

To manage the interplay of laws, NPCs, value perspectives, societal welfare indicators, and outcomes, we combine Unity editor tools with a data-driven JSON pipeline. Together they make the project a reusable educational framework.

🌐 Web content editor (JSON)

Live editor:CodeForEurope Data Editor — a static, browser-only tool to load game_database.json, edit structured content with guidance, and download a compatible file. Nothing is uploaded; all processing stays on the user’s device.

Use it to adjust text, links between laws and interactions, EuroChat posts, opinions (pro / neutral / against summaries), law effects, and welfare effects—without hand-editing raw JSON. Enum reference fields (FactionType, InteractionEffectType) are documented in the data file; full in-browser editing of those definitions is work in progress for a future version.

Models and prefabs: the web editor does not create new 3D models or Unity prefabs. You still author assets in Unity. The app maps existing content by prefabPath and IDs: as long as paths point to resources the build already includes, NPCs and scenes resolve correctly.

🔧 1. NPC Creator (Unity)

Creating and wiring new NPC prefabs, meshes, and ScriptableObject setup remains Unity-first. The NPC Creator editor window is the primary tool for:

  • Personal value orientations (mapped to internal orientation types)
  • Display names, visuals, traits
  • Linking to prefabs under Resources

A richer NPC workflow in the web editor is work in progress; today, the site is ideal for reusing and retargeting existing NPC definitions and paths.

💬 2. NPC Interaction Creator

Used for defining:

  • Dialogue lines for office visits
  • Effect types and magnitudes (mapped to internal InteractionEffectType values)
  • Which NPC each interaction belongs to

Interactions used in Step 2 (Office) are authored here in Unity; the same interaction names are referenced from JSON for laws and validation.

🏛️ 3. Law Manager & welfare indicators

Used to:

  • Add law proposals and link them to NPC interactions by name
  • Define short and long descriptions and icon paths (icon support may evolve)
  • Law effects – shifts along orientation axes (personal-value / coalition-style influence in gameplay)
  • Welfare effects – changes to societal indicators when a law passes: GDP per capita, Gini (inequality), human capital, and life expectancy (WelfareIndicator in code)

WelfareManager applies these effects after votes, updates on-screen indicators, and feeds into composite welfare outcomes at the end of a run.

🗃️ 4. Game data (game_database.json)

Runtime content is loaded from Assets/Resources/GameData/game_database.json via GameDatabase:

SectionRole
fieldDetailsHuman-readable enum reference for data authors (orientation & interaction effect types)
npcsIDs, names, prefabPath, orientation indices
interactionsNamed office scenes: npcId, dialogue lines, typed effects
lawsTitles, descriptions, optional long text (include in LawJson if you need it in Unity), iconPath, law effects, welfareEffects, interactionNames
postsEuroChat feed grouped by lawName
opinionsShort pro / neutral / against copy keyed by law name (used by the web editor and content workflow; add fields to GameDatabaseRoot in code if you need them loaded at runtime)

Keeping this file consistent preserves compatibility with GameDatabaseRoot and the Unity parsers. Extra keys not yet mirrored in C# are ignored by JsonUtility until wired up.


These tools combine so Parliament Hero stays a full framework, not a single-use product. Educators and developers can:

  • Replace or extend scenarios (e.g., climate, rights, digital policy)
  • Tune welfare and orientation balance via JSON or Unity tools
  • Reuse the platform for other democratic learning contexts

➡️ Our goal is repeatable, adaptable educational experiences accessible to many audiences.


📖 Code & Tooling Documentation

We provide detailed documentation for our codebase and Unity tools in the Scripts/README.md file.
It covers managers (GameManager, WelfareManager, GameDatabase, etc.), editor windows, and how JSON data connects to runtime systems.

For content editing without Unity, use the web data editor and the game_database.json layout described under Mechanics & Game Framework.


📚 Educational Impact

Parliament Hero delivers powerful learning outcomes by blending real EU content with fun, interactive storytelling:

  • 🧠 Understanding of democratic institutions and law-making
  • 🔎 Skills in research, evidence comparison, and narrative analysis
  • 🗳️ Empowerment through knowledge of how and why to vote
  • 🧍 Awareness of personal biases and the manipulation of information

All while staying approachable for young learners and meaningful for adults.


🧑‍🏫 Techniques & Educational Design

To make democratic education more accessible and impactful, Parliament Hero uses a variety of innovative techniques:

  • 🎮 Gamification
    Complex concepts such as legislation, civic engagement, and EU institutions are translated into interactive game mechanics suitable for all age groups.

  • 📖 Progressive Storytelling
    The game narrative evolves based on the player’s decisions, making each playthrough unique.

  • 🕵️ Debunking & Prebunking Mechanics
    Players are exposed to misinformation through law proposals and NPCs. In the Library, they can uncover the truth, fostering critical thinking and media literacy.

  • 🤝 Plural perspectives
    Players interact with diverse viewpoints and influences, reflecting the pluralism of real democratic institutions.

  • 🇪🇺 Integrated EU Content
    All missions and storylines are based on real EU information, ensuring authenticity and relevance.


⚠️ Challenges We Faced

Designing Parliament Hero came with important challenges:

🧩 Gamifying Real Processes

  • Turning complex, dry procedures into accessible and entertaining mechanics
  • Balancing fun with educational value

🔄 Managing Complexity

  • Simulating political diversity with dynamic NPC behavior
  • Maintaining consistent logic across numerous interactions

🧠 Pedagogical Alignment

  • Ensuring each decision teaches a real-world skill
  • Designing systems that promote learning by doing, not lecturing

🧪 Disinformation Design

  • Creating misleading but realistic fake news examples
  • Encouraging skepticism without promoting cynicism or conspiracy thinking

🧰 Framework Modularity

  • Making tools robust enough for reusability, yet simple for non-programmers
  • Balancing flexibility and structure in the Unity Editor

🔮 Future Plans

We're excited about the future of Parliament Hero and committed to making it even more accessible, engaging, and educational. Here's what's on our roadmap:

📱 Mobile Support We plan to port the game to Android and iOS platforms, bringing civic education to more users in a portable, touch-friendly format.

🎮 Controller Accessibility We aim to add support for game controllers to ensure players with physical disabilities can interact with the game more comfortably and inclusively.

🎨 Enhanced Visual Accessibility We’ve already taken steps to ensure good color contrast for players with visual impairments. In future updates, we plan to introduce specially designed accessible color palettes to improve clarity and readability.

📈 Expanded Content Our vision includes the addition of more law proposals, characters, value perspectives, NPCs, and decision paths to increase replayability and educational value.

🧠 Deeper Interactions and Scenarios We aim to enrich gameplay with more nuanced dilemmas, branching narratives, and unexpected consequences to better mirror real-world complexities in civic life and policymaking.

🎵 Assets

🔊 Audio

Third-party sounds are from freessound.org as follows:

  • 🐱 ANMLCat_Cat Meow Request 01_KVV AUDIO_FREE, by KVV_Audio (CC BY 4.0)
  • 📄 Paper rip 1, by omgitsjo (CC0)
  • 🦇 bat swoosh, by MrGungus (CC0)
  • 🕹️ Menu_Select, by SomeUsername0 (CC0)
  • 🎶 Voice Male humming sounds, by bolkmar (CC0)

🧊 3D Models

The 3D models were generated by using AI via meshy with a premium subscription.


Go back to Quick Links to view other resources or play our game!


🗳️ Your vote is your voice. Your knowledge is your shield.
Learn. Think. Decide. Be a Parliament Hero.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { // Remove or un-stick sticky/fixed headers that block content (function() { function unstick() { document.querySelectorAll('header, nav, [role="banner"], .header, .navbar, .sticky, .fixed-top, [style*="position: fixed"], [style*="position:sticky"]').forEach(function(el) { if (el.style.position === 'fixed' || el.style.position === 'sticky' || getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') { el.style.position = 'static'; el.style.top = 'auto'; el.style.zIndex = 'auto'; } }); } unstick(); var observer = new MutationObserver(unstick); observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] }); })(); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' GitHub - deprimus/CodeForEurope · GitHub
Skip to content

Repository files navigation

🏛️ Parliament Hero

Parliament Hero is an educational role-playing game that places players in the heart of the European democratic process. It teaches critical civic skills such as identifying disinformation, researching laws, and making informed decisions — all through an engaging game loop based on real EU values, structures, and challenges.

Parliament here representing picture

🔗 Quick Links


📑 Table of Contents


🎯 What You'll Learn

Through interactive missions and dynamic NPC interactions, players will explore:

  • 📜 The role and responsibilities of the European Parliament
  • 🗳️ The importance of civic participation and informed voting
  • 🕵️ Strategies to recognize, prebunk, and debunk disinformation through research and critical thinking

🌈 Value perspectives: democratic orientations

Players engage with four broad value perspectives that reflect the diversity of views in the European Parliament (in code and data these map to orientation types; the goal is inclusive framing in learning materials):

  • 🟦 Traditionalist – heritage, stability, continuity
  • 🟨 Libertarian / liberal – individual freedoms, market economy, reform
  • 🟩 Left / green – sustainability, climate action, social justice
  • 🟥 Right / progressive – innovation, equality, inclusive growth

Each perspective offers a lens for laws, debates, and choices. How you vote and whom you listen to shapes relationships and outcomes—not a single “correct” ideology, but informed trade-offs.


🔁 Gameplay Loop: The Four Steps of Democracy

🧾 Step 1 – A Law Appears

Each round begins with a new law proposal from one of the major policy areas. These laws simulate real-life situations where people may only hear headlines or partial information — and must decide what to do next.

NPCs react immediately, with mood bars showing their opinions. These quick impressions mimic how real citizens and politicians may initially react without full context. It’s now up to the player to learn more.

➡️ This step highlights the challenge of limited knowledge and encourages curiosity, skepticism, and further inquiry.

Step one


🏢 Step 2 – The Office

Players are then placed in a more interactive environment: the Office, where they meet a variety of individuals and institutions who present their opinions or lobby for or against proposed laws.

This mirrors day-to-day real-world information exposure: news articles, conversations, influencers, and social media posts.

Some of these sources are trustworthy — others are not.

Players must:

  • Examine biases and stated viewpoints
  • Distinguish between reliable and unreliable information
  • Begin to suspect potential disinformation or manipulation

➡️ This stage develops information filtering and teaches players to question sources before accepting them as fact.

👉 View "Step Two" as a GIF (opens in new tab)


📚 Step 3 – The Library

This is the debunking and prebunking phase. Players take a deep dive into information: reading books, comparing media sources, and using online tools inside the Library.

Tools available:

  • 📖 Click bookshelves to access historical context and data
  • 💻 Use the laptop to simulate online research

Players are encouraged to consult multiple sources, compare conflicting narratives, and draw their own conclusions. Critical thinking is essential — and rewarded.

➡️ This phase teaches media literacy and source triangulation, helping players learn to verify before acting.

All these steps are repeated multiple times until an ending in reached.

Step three


🎬 Endings – Your Votes Shape the World

After a predefined number of rounds, the game concludes with one of five possible endings based on the player's voting patterns and how orientation influence shifted:

  • 🟦 A Traditionalist-leaning ending
  • 🟨 A liberal-leaning ending
  • 🟩 A green / left-leaning ending
  • 🟥 A progressive / right-leaning ending
  • ⚖️ A Harmony ending – where influence was relatively balanced across perspectives

This outcome depends on:

  • Which perspectives you supported most through votes
  • The NPCs you interacted with and influenced
  • The laws you chose to support or reject
  • Societal indicators (economy, inequality, education, health) tracked via welfare effects

➡️ At this final point, the game highlights a key civic message: Every vote matters. Every interaction counts.

Players reflect on how their individual choices shaped the political landscape, emphasizing the importance of participation, presence, and informed decision-making in a democracy.


🗳️ Step 4 – Voting Time - Going back to step 1

With everything they've seen and researched, players now face the final decision: vote yes or no on the proposed law.

They must consider:

  • Public mood
  • Alignment with different value perspectives
  • What they uncovered in the Library
  • Long-term effects on reputation, societal indicators, and future laws

Every vote matters and will influence how characters respond, how the public views your performance, and how future laws develop.

➡️ This step emphasizes the power and responsibility of voting, and the need to make informed, self-driven choices — not emotional or misled ones.


🧠 Mechanics & Game Framework

To manage the interplay of laws, NPCs, value perspectives, societal welfare indicators, and outcomes, we combine Unity editor tools with a data-driven JSON pipeline. Together they make the project a reusable educational framework.

🌐 Web content editor (JSON)

Live editor:CodeForEurope Data Editor — a static, browser-only tool to load game_database.json, edit structured content with guidance, and download a compatible file. Nothing is uploaded; all processing stays on the user’s device.

Use it to adjust text, links between laws and interactions, EuroChat posts, opinions (pro / neutral / against summaries), law effects, and welfare effects—without hand-editing raw JSON. Enum reference fields (FactionType, InteractionEffectType) are documented in the data file; full in-browser editing of those definitions is work in progress for a future version.

Models and prefabs: the web editor does not create new 3D models or Unity prefabs. You still author assets in Unity. The app maps existing content by prefabPath and IDs: as long as paths point to resources the build already includes, NPCs and scenes resolve correctly.

🔧 1. NPC Creator (Unity)

Creating and wiring new NPC prefabs, meshes, and ScriptableObject setup remains Unity-first. The NPC Creator editor window is the primary tool for:

  • Personal value orientations (mapped to internal orientation types)
  • Display names, visuals, traits
  • Linking to prefabs under Resources

A richer NPC workflow in the web editor is work in progress; today, the site is ideal for reusing and retargeting existing NPC definitions and paths.

💬 2. NPC Interaction Creator

Used for defining:

  • Dialogue lines for office visits
  • Effect types and magnitudes (mapped to internal InteractionEffectType values)
  • Which NPC each interaction belongs to

Interactions used in Step 2 (Office) are authored here in Unity; the same interaction names are referenced from JSON for laws and validation.

🏛️ 3. Law Manager & welfare indicators

Used to:

  • Add law proposals and link them to NPC interactions by name
  • Define short and long descriptions and icon paths (icon support may evolve)
  • Law effects – shifts along orientation axes (personal-value / coalition-style influence in gameplay)
  • Welfare effects – changes to societal indicators when a law passes: GDP per capita, Gini (inequality), human capital, and life expectancy (WelfareIndicator in code)

WelfareManager applies these effects after votes, updates on-screen indicators, and feeds into composite welfare outcomes at the end of a run.

🗃️ 4. Game data (game_database.json)

Runtime content is loaded from Assets/Resources/GameData/game_database.json via GameDatabase:

SectionRole
fieldDetailsHuman-readable enum reference for data authors (orientation & interaction effect types)
npcsIDs, names, prefabPath, orientation indices
interactionsNamed office scenes: npcId, dialogue lines, typed effects
lawsTitles, descriptions, optional long text (include in LawJson if you need it in Unity), iconPath, law effects, welfareEffects, interactionNames
postsEuroChat feed grouped by lawName
opinionsShort pro / neutral / against copy keyed by law name (used by the web editor and content workflow; add fields to GameDatabaseRoot in code if you need them loaded at runtime)

Keeping this file consistent preserves compatibility with GameDatabaseRoot and the Unity parsers. Extra keys not yet mirrored in C# are ignored by JsonUtility until wired up.


These tools combine so Parliament Hero stays a full framework, not a single-use product. Educators and developers can:

  • Replace or extend scenarios (e.g., climate, rights, digital policy)
  • Tune welfare and orientation balance via JSON or Unity tools
  • Reuse the platform for other democratic learning contexts

➡️ Our goal is repeatable, adaptable educational experiences accessible to many audiences.


📖 Code & Tooling Documentation

We provide detailed documentation for our codebase and Unity tools in the Scripts/README.md file.
It covers managers (GameManager, WelfareManager, GameDatabase, etc.), editor windows, and how JSON data connects to runtime systems.

For content editing without Unity, use the web data editor and the game_database.json layout described under Mechanics & Game Framework.


📚 Educational Impact

Parliament Hero delivers powerful learning outcomes by blending real EU content with fun, interactive storytelling:

  • 🧠 Understanding of democratic institutions and law-making
  • 🔎 Skills in research, evidence comparison, and narrative analysis
  • 🗳️ Empowerment through knowledge of how and why to vote
  • 🧍 Awareness of personal biases and the manipulation of information

All while staying approachable for young learners and meaningful for adults.


🧑‍🏫 Techniques & Educational Design

To make democratic education more accessible and impactful, Parliament Hero uses a variety of innovative techniques:

  • 🎮 Gamification
    Complex concepts such as legislation, civic engagement, and EU institutions are translated into interactive game mechanics suitable for all age groups.

  • 📖 Progressive Storytelling
    The game narrative evolves based on the player’s decisions, making each playthrough unique.

  • 🕵️ Debunking & Prebunking Mechanics
    Players are exposed to misinformation through law proposals and NPCs. In the Library, they can uncover the truth, fostering critical thinking and media literacy.

  • 🤝 Plural perspectives
    Players interact with diverse viewpoints and influences, reflecting the pluralism of real democratic institutions.

  • 🇪🇺 Integrated EU Content
    All missions and storylines are based on real EU information, ensuring authenticity and relevance.


⚠️ Challenges We Faced

Designing Parliament Hero came with important challenges:

🧩 Gamifying Real Processes

  • Turning complex, dry procedures into accessible and entertaining mechanics
  • Balancing fun with educational value

🔄 Managing Complexity

  • Simulating political diversity with dynamic NPC behavior
  • Maintaining consistent logic across numerous interactions

🧠 Pedagogical Alignment

  • Ensuring each decision teaches a real-world skill
  • Designing systems that promote learning by doing, not lecturing

🧪 Disinformation Design

  • Creating misleading but realistic fake news examples
  • Encouraging skepticism without promoting cynicism or conspiracy thinking

🧰 Framework Modularity

  • Making tools robust enough for reusability, yet simple for non-programmers
  • Balancing flexibility and structure in the Unity Editor

🔮 Future Plans

We're excited about the future of Parliament Hero and committed to making it even more accessible, engaging, and educational. Here's what's on our roadmap:

📱 Mobile Support We plan to port the game to Android and iOS platforms, bringing civic education to more users in a portable, touch-friendly format.

🎮 Controller Accessibility We aim to add support for game controllers to ensure players with physical disabilities can interact with the game more comfortably and inclusively.

🎨 Enhanced Visual Accessibility We’ve already taken steps to ensure good color contrast for players with visual impairments. In future updates, we plan to introduce specially designed accessible color palettes to improve clarity and readability.

📈 Expanded Content Our vision includes the addition of more law proposals, characters, value perspectives, NPCs, and decision paths to increase replayability and educational value.

🧠 Deeper Interactions and Scenarios We aim to enrich gameplay with more nuanced dilemmas, branching narratives, and unexpected consequences to better mirror real-world complexities in civic life and policymaking.

🎵 Assets

🔊 Audio

Third-party sounds are from freessound.org as follows:

  • 🐱 ANMLCat_Cat Meow Request 01_KVV AUDIO_FREE, by KVV_Audio (CC BY 4.0)
  • 📄 Paper rip 1, by omgitsjo (CC0)
  • 🦇 bat swoosh, by MrGungus (CC0)
  • 🕹️ Menu_Select, by SomeUsername0 (CC0)
  • 🎶 Voice Male humming sounds, by bolkmar (CC0)

🧊 3D Models

The 3D models were generated by using AI via meshy with a premium subscription.


Go back to Quick Links to view other resources or play our game!


🗳️ Your vote is your voice. Your knowledge is your shield.
Learn. Think. Decide. Be a Parliament Hero.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { // Universal Dark Mode - works on any site (function() { var enabled = true; function applyDarkMode() { if (!enabled) return; // Create style element if it doesn't exist var style = document.getElementById('universal-dark-mode-style'); if (!style) { style = document.createElement('style'); style.id = 'universal-dark-mode-style'; document.head.appendChild(style); } // Dark mode CSS - inverts colors but preserves images/video style.textContent = ' /* Invert everything except media */ html { filter: invert(1) hue-rotate(180deg) !important; background: #1a1a2e !important; } /* Restore images, videos, iframes, canvas */ img, video, iframe, canvas, svg, picture, [style*="background-image"] { filter: invert(1) hue-rotate(180deg) !important; } /* Preserve specific elements that should not be inverted */ .no-dark-mode, .no-dark-mode *, [data-theme="light"], [data-theme="light"], .ace_editor, .ace_editor *, .CodeMirror, .CodeMirror *, .monaco-editor, .monaco-editor *, .markdown-body pre, .markdown-body pre *, .highlight, .highlight *, pre code, pre code * { filter: none !important; } /* Fix common UI elements */ .modal, .popup, .dropdown-menu, .tooltip, .popover { filter: invert(1) hue-rotate(180deg) !important; background: #2d2d44 !important; border-color: #444 !important; } /* Scrollbars */ ::-webkit-scrollbar { background: #1a1a2e !important; } ::-webkit-scrollbar-thumb { background: #444 !important; } ::-webkit-scrollbar-thumb:hover { background: #555 !important; } /* Selection */ ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; } ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; } '; } function removeDarkMode() { var style = document.getElementById('universal-dark-mode-style'); if (style) style.remove(); } // Toggle with Alt+Shift+D document.addEventListener('keydown', function(e) { if (e.altKey && e.shiftKey && e.key === 'D') { e.preventDefault(); enabled = !enabled; if (enabled) { applyDarkMode(); console.log('[Universal Dark Mode] Enabled'); } else { removeDarkMode(); console.log('[Universal Dark Mode] Disabled'); } } }); // Apply on load applyDarkMode(); // Re-apply on dynamic content var observer = new MutationObserver(function(mutations) { if (enabled && !document.getElementById('universal-dark-mode-style')) { applyDarkMode(); } }); observer.observe(document.head, { childList: true }); console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle'); })(); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })(); GitHub - deprimus/CodeForEurope · GitHub
Skip to content

Repository files navigation

🏛️ Parliament Hero

Parliament Hero is an educational role-playing game that places players in the heart of the European democratic process. It teaches critical civic skills such as identifying disinformation, researching laws, and making informed decisions — all through an engaging game loop based on real EU values, structures, and challenges.

Parliament here representing picture

🔗 Quick Links


📑 Table of Contents


🎯 What You'll Learn

Through interactive missions and dynamic NPC interactions, players will explore:

  • 📜 The role and responsibilities of the European Parliament
  • 🗳️ The importance of civic participation and informed voting
  • 🕵️ Strategies to recognize, prebunk, and debunk disinformation through research and critical thinking

🌈 Value perspectives: democratic orientations

Players engage with four broad value perspectives that reflect the diversity of views in the European Parliament (in code and data these map to orientation types; the goal is inclusive framing in learning materials):

  • 🟦 Traditionalist – heritage, stability, continuity
  • 🟨 Libertarian / liberal – individual freedoms, market economy, reform
  • 🟩 Left / green – sustainability, climate action, social justice
  • 🟥 Right / progressive – innovation, equality, inclusive growth

Each perspective offers a lens for laws, debates, and choices. How you vote and whom you listen to shapes relationships and outcomes—not a single “correct” ideology, but informed trade-offs.


🔁 Gameplay Loop: The Four Steps of Democracy

🧾 Step 1 – A Law Appears

Each round begins with a new law proposal from one of the major policy areas. These laws simulate real-life situations where people may only hear headlines or partial information — and must decide what to do next.

NPCs react immediately, with mood bars showing their opinions. These quick impressions mimic how real citizens and politicians may initially react without full context. It’s now up to the player to learn more.

➡️ This step highlights the challenge of limited knowledge and encourages curiosity, skepticism, and further inquiry.

Step one


🏢 Step 2 – The Office

Players are then placed in a more interactive environment: the Office, where they meet a variety of individuals and institutions who present their opinions or lobby for or against proposed laws.

This mirrors day-to-day real-world information exposure: news articles, conversations, influencers, and social media posts.

Some of these sources are trustworthy — others are not.

Players must:

  • Examine biases and stated viewpoints
  • Distinguish between reliable and unreliable information
  • Begin to suspect potential disinformation or manipulation

➡️ This stage develops information filtering and teaches players to question sources before accepting them as fact.

👉 View "Step Two" as a GIF (opens in new tab)


📚 Step 3 – The Library

This is the debunking and prebunking phase. Players take a deep dive into information: reading books, comparing media sources, and using online tools inside the Library.

Tools available:

  • 📖 Click bookshelves to access historical context and data
  • 💻 Use the laptop to simulate online research

Players are encouraged to consult multiple sources, compare conflicting narratives, and draw their own conclusions. Critical thinking is essential — and rewarded.

➡️ This phase teaches media literacy and source triangulation, helping players learn to verify before acting.

All these steps are repeated multiple times until an ending in reached.

Step three


🎬 Endings – Your Votes Shape the World

After a predefined number of rounds, the game concludes with one of five possible endings based on the player's voting patterns and how orientation influence shifted:

  • 🟦 A Traditionalist-leaning ending
  • 🟨 A liberal-leaning ending
  • 🟩 A green / left-leaning ending
  • 🟥 A progressive / right-leaning ending
  • ⚖️ A Harmony ending – where influence was relatively balanced across perspectives

This outcome depends on:

  • Which perspectives you supported most through votes
  • The NPCs you interacted with and influenced
  • The laws you chose to support or reject
  • Societal indicators (economy, inequality, education, health) tracked via welfare effects

➡️ At this final point, the game highlights a key civic message: Every vote matters. Every interaction counts.

Players reflect on how their individual choices shaped the political landscape, emphasizing the importance of participation, presence, and informed decision-making in a democracy.


🗳️ Step 4 – Voting Time - Going back to step 1

With everything they've seen and researched, players now face the final decision: vote yes or no on the proposed law.

They must consider:

  • Public mood
  • Alignment with different value perspectives
  • What they uncovered in the Library
  • Long-term effects on reputation, societal indicators, and future laws

Every vote matters and will influence how characters respond, how the public views your performance, and how future laws develop.

➡️ This step emphasizes the power and responsibility of voting, and the need to make informed, self-driven choices — not emotional or misled ones.


🧠 Mechanics & Game Framework

To manage the interplay of laws, NPCs, value perspectives, societal welfare indicators, and outcomes, we combine Unity editor tools with a data-driven JSON pipeline. Together they make the project a reusable educational framework.

🌐 Web content editor (JSON)

Live editor:CodeForEurope Data Editor — a static, browser-only tool to load game_database.json, edit structured content with guidance, and download a compatible file. Nothing is uploaded; all processing stays on the user’s device.

Use it to adjust text, links between laws and interactions, EuroChat posts, opinions (pro / neutral / against summaries), law effects, and welfare effects—without hand-editing raw JSON. Enum reference fields (FactionType, InteractionEffectType) are documented in the data file; full in-browser editing of those definitions is work in progress for a future version.

Models and prefabs: the web editor does not create new 3D models or Unity prefabs. You still author assets in Unity. The app maps existing content by prefabPath and IDs: as long as paths point to resources the build already includes, NPCs and scenes resolve correctly.

🔧 1. NPC Creator (Unity)

Creating and wiring new NPC prefabs, meshes, and ScriptableObject setup remains Unity-first. The NPC Creator editor window is the primary tool for:

  • Personal value orientations (mapped to internal orientation types)
  • Display names, visuals, traits
  • Linking to prefabs under Resources

A richer NPC workflow in the web editor is work in progress; today, the site is ideal for reusing and retargeting existing NPC definitions and paths.

💬 2. NPC Interaction Creator

Used for defining:

  • Dialogue lines for office visits
  • Effect types and magnitudes (mapped to internal InteractionEffectType values)
  • Which NPC each interaction belongs to

Interactions used in Step 2 (Office) are authored here in Unity; the same interaction names are referenced from JSON for laws and validation.

🏛️ 3. Law Manager & welfare indicators

Used to:

  • Add law proposals and link them to NPC interactions by name
  • Define short and long descriptions and icon paths (icon support may evolve)
  • Law effects – shifts along orientation axes (personal-value / coalition-style influence in gameplay)
  • Welfare effects – changes to societal indicators when a law passes: GDP per capita, Gini (inequality), human capital, and life expectancy (WelfareIndicator in code)

WelfareManager applies these effects after votes, updates on-screen indicators, and feeds into composite welfare outcomes at the end of a run.

🗃️ 4. Game data (game_database.json)

Runtime content is loaded from Assets/Resources/GameData/game_database.json via GameDatabase:

SectionRole
fieldDetailsHuman-readable enum reference for data authors (orientation & interaction effect types)
npcsIDs, names, prefabPath, orientation indices
interactionsNamed office scenes: npcId, dialogue lines, typed effects
lawsTitles, descriptions, optional long text (include in LawJson if you need it in Unity), iconPath, law effects, welfareEffects, interactionNames
postsEuroChat feed grouped by lawName
opinionsShort pro / neutral / against copy keyed by law name (used by the web editor and content workflow; add fields to GameDatabaseRoot in code if you need them loaded at runtime)

Keeping this file consistent preserves compatibility with GameDatabaseRoot and the Unity parsers. Extra keys not yet mirrored in C# are ignored by JsonUtility until wired up.


These tools combine so Parliament Hero stays a full framework, not a single-use product. Educators and developers can:

  • Replace or extend scenarios (e.g., climate, rights, digital policy)
  • Tune welfare and orientation balance via JSON or Unity tools
  • Reuse the platform for other democratic learning contexts

➡️ Our goal is repeatable, adaptable educational experiences accessible to many audiences.


📖 Code & Tooling Documentation

We provide detailed documentation for our codebase and Unity tools in the Scripts/README.md file.
It covers managers (GameManager, WelfareManager, GameDatabase, etc.), editor windows, and how JSON data connects to runtime systems.

For content editing without Unity, use the web data editor and the game_database.json layout described under Mechanics & Game Framework.


📚 Educational Impact

Parliament Hero delivers powerful learning outcomes by blending real EU content with fun, interactive storytelling:

  • 🧠 Understanding of democratic institutions and law-making
  • 🔎 Skills in research, evidence comparison, and narrative analysis
  • 🗳️ Empowerment through knowledge of how and why to vote
  • 🧍 Awareness of personal biases and the manipulation of information

All while staying approachable for young learners and meaningful for adults.


🧑‍🏫 Techniques & Educational Design

To make democratic education more accessible and impactful, Parliament Hero uses a variety of innovative techniques:

  • 🎮 Gamification
    Complex concepts such as legislation, civic engagement, and EU institutions are translated into interactive game mechanics suitable for all age groups.

  • 📖 Progressive Storytelling
    The game narrative evolves based on the player’s decisions, making each playthrough unique.

  • 🕵️ Debunking & Prebunking Mechanics
    Players are exposed to misinformation through law proposals and NPCs. In the Library, they can uncover the truth, fostering critical thinking and media literacy.

  • 🤝 Plural perspectives
    Players interact with diverse viewpoints and influences, reflecting the pluralism of real democratic institutions.

  • 🇪🇺 Integrated EU Content
    All missions and storylines are based on real EU information, ensuring authenticity and relevance.


⚠️ Challenges We Faced

Designing Parliament Hero came with important challenges:

🧩 Gamifying Real Processes

  • Turning complex, dry procedures into accessible and entertaining mechanics
  • Balancing fun with educational value

🔄 Managing Complexity

  • Simulating political diversity with dynamic NPC behavior
  • Maintaining consistent logic across numerous interactions

🧠 Pedagogical Alignment

  • Ensuring each decision teaches a real-world skill
  • Designing systems that promote learning by doing, not lecturing

🧪 Disinformation Design

  • Creating misleading but realistic fake news examples
  • Encouraging skepticism without promoting cynicism or conspiracy thinking

🧰 Framework Modularity

  • Making tools robust enough for reusability, yet simple for non-programmers
  • Balancing flexibility and structure in the Unity Editor

🔮 Future Plans

We're excited about the future of Parliament Hero and committed to making it even more accessible, engaging, and educational. Here's what's on our roadmap:

📱 Mobile Support We plan to port the game to Android and iOS platforms, bringing civic education to more users in a portable, touch-friendly format.

🎮 Controller Accessibility We aim to add support for game controllers to ensure players with physical disabilities can interact with the game more comfortably and inclusively.

🎨 Enhanced Visual Accessibility We’ve already taken steps to ensure good color contrast for players with visual impairments. In future updates, we plan to introduce specially designed accessible color palettes to improve clarity and readability.

📈 Expanded Content Our vision includes the addition of more law proposals, characters, value perspectives, NPCs, and decision paths to increase replayability and educational value.

🧠 Deeper Interactions and Scenarios We aim to enrich gameplay with more nuanced dilemmas, branching narratives, and unexpected consequences to better mirror real-world complexities in civic life and policymaking.

🎵 Assets

🔊 Audio

Third-party sounds are from freessound.org as follows:

  • 🐱 ANMLCat_Cat Meow Request 01_KVV AUDIO_FREE, by KVV_Audio (CC BY 4.0)
  • 📄 Paper rip 1, by omgitsjo (CC0)
  • 🦇 bat swoosh, by MrGungus (CC0)
  • 🕹️ Menu_Select, by SomeUsername0 (CC0)
  • 🎶 Voice Male humming sounds, by bolkmar (CC0)

🧊 3D Models

The 3D models were generated by using AI via meshy with a premium subscription.


Go back to Quick Links to view other resources or play our game!


🗳️ Your vote is your voice. Your knowledge is your shield.
Learn. Think. Decide. Be a Parliament Hero.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages