Power Player 是一个运行时,可将 PowerPoint 幻灯片转化为交互式游戏和媒体引擎,通过在幻灯片上进行可视化编辑以及在注释中编写 JavaScript 脚本来实现。

Stars

5

7 天增长

暂无数据

Fork 数

0

开放 Issue

0

开源协议

暂无数据

最近更新

2026-07-29

AI 仓库情报摘要
FR-AI / ANALYSIS

为什么值得关注

它创新地将 PowerPoint 的可视化编辑能力转化为完整的游戏开发环境,将熟悉的幻灯片设计与 JavaScript 脚本结合,适合快速原型制作。

适合谁使用

  • 使用 PowerPoint 进行原型设计的游戏开发者
  • 创建互动课程的教育工作者
  • 希望制作交互式演示的多媒体设计师
  • 探索非传统游戏引擎的爱好者

典型使用场景

  • 使用拖放方式快速制作 2D 游戏原型
  • 构建互动故事书或教育模块
  • 创建带有游戏化互动的演示文稿
  • 利用熟悉的工具教授编程概念

项目优势

  • 直接在 PowerPoint 中进行可视化编辑并支持图层层级
  • 提供简洁的 JavaScript API 用于对象、碰撞和音频控制
  • 内置游戏循环(onUpdate)和输入处理
  • 支持动态生成、查询和移除对象

使用前须知

  • 仅支持 Windows 独立运行
  • 每条语句末尾必须加分号
  • 需要关闭 PowerPoint 的自动更正功能以避免引号转换问题
  • 对象类型有限(Sprite、Text、Group),缺少资源导入管线的详细说明

README 快速开始

Power Player

Power Player is a runtime player that executes code and assets authored in PowerPoint, enabling the development of games, interactive media.

  • Standalone : Windows

Instructions

1. Visual Editing

Edit objects directly on the slides. Define object names and layer hierarchy using the Selection Pane (Home > Select > Selection Pane).

2. Scripting

Write JavaScript directly in the slide's Comment section to control objects, set up game loops, and handle player input.

  • Invoke the function with 'this' as the Game Instance.
  • Using this.var["varName"] to defined a global(Game) variable.
  • Using let / var to defined a temporary variable.
  • Auto convert to ', to '.
  • Using spawnObject to duplicate an object results in a new instance named with the format [originalName]-[uuid].
  • Disable auto correct option : File -> Options -> Proofing -> AutoCorrect Options
  • A semicolon ; is required at the end of each statement.

Class & Functions

3. Objects

Example

  • Make a button and switch to other slides.

    {
        let b = this.getObject("buttonObject");
        b.interactive=true;
        b.on("pointerdown",()=>{
            this.switchSlide(2);
        })
    }
    
  • Control player.

    this.onUpdate=(delta)=>{
    

项目描述

A PowerPoint runtime player executes code and assets contained within a pptx file.

相关仓库与替代方案

根据分类、Topic 和编程语言匹配的相似项目。

react
精选
react GitHub avatar

react

React is a JavaScript library for building user interfaces with declarative, component-based, and cross-platform design.

Web 开发前端框架
246,741
TanStack
精选
TanStack GitHub avatar

router

TanStack Router is a type-safe, data-driven React router with built-in caching, prefetching, and nested layouts, while TanStack Start extends it into a full-stack SSR framework.

Web 开发前端框架
14,861
CatsJuice
精选
CatsJuice GitHub avatar

sticker-forge

Sticker Forge is a WebGL tool that turns text or uploaded images into interactive stickers with a simulated peel-and-reveal effect, offering a Web Component and imperative API.

JavaScript
627