LuanVan.vnLuận Văn
Gửi thư

DESIGN AND IMPLEMENTATION OF A TCBSCRIPT COMPILER FOR THE THECELLBEYOND GAME ENGINE - PART B: EDITOR INTEGRATION AND GAME DEMONSTRATIO

Khoá luận tốt nghiệp · Đại học · năm 2026 · đề tài tham khảo

Loại tài liệuKhoá luận tốt nghiệp
Bậc họcĐại học
NgànhCông nghệ thông tin
Tác giảLê Huỳnh Nhật Nam
Người hướng dẫnNguyễn Công Danh
Cơ sở đào tạoTrường Đại học Cần Thơ
Năm2026
NguồnThư viện số Trường Đại học Cần Thơ · trang gốc

Tóm tắt

Context: TheCellBeyond is an open-source 2D game engine written entirely in Java, already complete in its essentials - a GameObject–Component object model, a 2D physics loop, a resource system, and a graphical editor. Getting a gameplay script into a game, however, still requires the user to write Java and then leave the editor, open a terminal, and invoke Gradle by hand. The barrier is not only the language: the user must know what Gradle is, how the gradlew wrapper works, and how to interpret an error about a missing JDK - none of which has anything to do with making games - and every edit–run cycle costs a context switch between the editor and a terminal. More seriously still, the editor as distributed to end users bundles only a stripped runtime with no javac, so on a clean machine Gradle has nothing to compile with at all. Purpose: The project introduces TCBScript, a scripting language compiled to Java source and fed into the engine's existing build pipeline. This report covers Part B, the editor integration and the demonstration: turning that compiler into a one-click tool inside the editor and validating the whole system with a real game. Four milestones are delivered: M6, an asynchronous Gradle runner; M6-B, an IDE-style JDK manager; M7, the transpile–build–reload chain behind a single action; and M8, an updated project template. Method: Collect, analyze and study the literature on supervising an external process from a real-time graphical application, on jlink runtime images, and on Java toolchain provisioning; analyze the problem in order to propose a solution; then implement and verify milestone by milestone, combining JUnit 5 unit tests run on a three-platform Windows, Linux and macOS CI matrix with manual end-to-end acceptance testing performed inside the editor itself. 5 Findings: The pipeline is closed behind a single button, and the editor never freezes for the duration of a build, because the expensive work is moved off the render thread and the interface reads only an immutable status snapshot once per frame. The chain stops at the earliest stage that cannot succeed, so a TCBScript error is reported as a TCBScript error with a file and a line rather than surfacing later as a javac message about a generated file the user has never seen. The editor infrastructure is covered by 21 unit tests (216 across the whole project). A complete Flappy Bird written entirely in TCBScript - three scripts, about 77 statements - serves both as evidence of usability and as the end-to-end acceptance test, and in the course of being written it exposed two genuine compiler defects that the unit tests had not. Conclusion: The one weakness of the transpile-to-Java model, that it requires a compilation step where an interpreter would not, has been reduced to a matter of tooling rather than of experience: the user writes .tcbs, presses one button, and has classes running inside the game without opening a terminal, without knowing Java, and without even having to install a JDK. The compiler core that underpins this work is presented in the companion Part A thesis by Le Nguyen Bao and summarized in Section 3.3 here. Keywords: game engine, scripting language, transpiler, editor integration, build pipeline, JDK provisioning, foojay Disco API, Gradle, acceptance testing, TCBScript, TheCellBeyond. Bối cảnh: TheCellBeyond là một game engine 2D mã nguồn mở viết hoàn toàn bằng Java, đã có đầy đủ các thành phần cốt lõi: hệ thống GameObject – Component, vòng lặp vật lý 2D, hệ thống tài nguyên và một editor đồ hoạ. Tuy vậy, để đưa một kịch bản gameplay vào game, người dùng vẫn phải viết Java rồi rời khỏi editor, mở terminal và tự gọi Gradle. Rào cản ở đây không chỉ là ngôn ngữ: người dùng buộc phải biết Gradle là gì, dùng wrapper gradlew ra sao và xử lý lỗi thiếu JDK thế nào - những kiến thức không liên quan gì đến việc làm game - đồng thời mỗi vòng lặp sửa–chạy đều phải chuyển ngữ cảnh giữa editor và terminal. Nghiêm trọng hơn, bản editor phân ph
Bản toàn văn lưu tại thư viện Trường Đại học Cần Thơ

Thông tin và tóm tắt ở trên lấy từ kho số mở của thư viện trường. Bản toàn văn do thư viện trường quản lý — có nơi cho đọc trực tuyến, có nơi cần tài khoản bạn đọc của trường.

Mở tại thư viện trường ↗
Dùng tài liệu tham khảo cho đúng
  • Đọc để hiểu cách người trước đặt câu hỏi, chọn phương pháp, trình bày số liệu — rồi tự làm với dữ liệu và bối cảnh của bạn.
  • Ý, số liệu, bảng biểu lấy từ tài liệu này phải trích dẫn (tác giả, năm, tên đề tài, cơ sở đào tạo).
  • Đề tài trùng tên vẫn làm được nếu khác đơn vị khảo sát, thời gian hoặc cách tiếp cận — nêu rõ điểm khác trong phần mở đầu.

Hướng dẫn chọn đề tài, cấu trúc và số liệu cho ngành này: Luận văn công nghệ thông tin · Hỏi đáp từng chương với người hướng dẫn số: Học Giả Số · Công cụ số: Luận Văn Số.

Đề tài cùng ngành

Tác giả muốn gỡ, sửa thông tin hoặc bổ sung bản toàn văn: gửi yêu cầu qua trang Liên hệ, kèm đường dẫn trang này.