You don't say if this is for a new project, to work with an existing project, for learning, or what target environment, language, and OS you're using.
If you want to learn about implementing your own VM and scripting language, get the book Game Scripting Mastery. Despite its title, it is actually about implementing your own virtual machine and scripting language. The source code is for Win32, but the concepts can be applied to .Net or Linux.
As a bonus, when you're done you will have a playable, scriptable, 2D adventure game.
发布评论
评论(2)
查看Lua 5.0的实现
check The implementation of Lua 5.0
您没有说明这是为了新项目、使用现有项目、还是为了学习,或者您正在使用什么目标环境、语言和操作系统。
如果您想了解如何实现自己的虚拟机和脚本语言,请获取游戏脚本掌握一书。 尽管有它的标题,但它实际上是关于实现您自己的虚拟机和脚本语言。 源代码适用于 Win32,但这些概念可以应用于 .Net 或 Linux。
作为奖励,当您完成后,您将拥有一个可玩、可编写脚本的 2D 冒险游戏。
You don't say if this is for a new project, to work with an existing project, for learning, or what target environment, language, and OS you're using.
If you want to learn about implementing your own VM and scripting language, get the book Game Scripting Mastery. Despite its title, it is actually about implementing your own virtual machine and scripting language. The source code is for Win32, but the concepts can be applied to .Net or Linux.
As a bonus, when you're done you will have a playable, scriptable, 2D adventure game.