请问如何用RGSS脚本编游戏?

Python016

请问如何用RGSS脚本编游戏?,第1张

日本的游戏制作软件Rpg Maker XP所使用的内部脚本系统,是ruby的一种扩展.

RGSS编辑器RGSS(Ruby Game Scripting System),中文意思是 Ruby 游戏脚本系统,是应用面向对象的脚本语言 Ruby 开发 Windows 2D 游戏的系统。使用 RGSS,就和 C 语言等程序语言那样简单,能创建完全原创的游戏系统。Ruby 是一种初学者也能很容易使用,并且功能强大的高级语言。

本文档是从 Ruby 的参考手册上摘录下使用 RGSS 的必要信息,加上关于 RGSS 独特方法的解说重编辑而成。对于 RGSS 的用户,在游戏程序设计方面不重要的部分进行了大幅删减,对各处描述也稍作了修改。因此在描述上可能会出现不正确的情况。作为 Ruby 的参考,请注意那些非常简单的东西。

RGSS中的脚本:

在RMXP(Rpg Maker XP)中,按F11就可以打开[脚本编辑器],左边的窗口是脚本列表,右边的窗口是脚本内容,左下角可以修改脚本名称。

在RMXP(Rpg Maker XP)中,游戏开始运行后,总是从最上边的脚本开始运行,依次往下,所以,经常把变量声明、类声明、函数声明、函数定义的脚本放在上面,而MAIN脚本总是放在最后。

Android中文版

api手册地址:http://www.matools.com/api/android

Ant最新版

api手册地址:http://www.matools.com/api/ant

ASM字节码操作

api手册地址:http://www.matools.com/api/asm

Axis2最新版

api手册地址:http://www.matools.com/api/axis2

Bash脚本

api手册地址:http://www.matools.com/api/bash

Bootstrap 3

api手册地址:http://www.matools.com/api/bootstrap3

Bootstrap 4

api手册地址:http://www.matools.com/api/bootstrap4

C/C++

api手册地址:http://www.matools.com/api/c

C3P0连接池

api手册地址:http://www.matools.com/api/c3p0

CentOS使用文档

api手册地址:http://www.matools.com/api/centos

Commons-Beanutils

api手册地址:http://www.matools.com/api/commons-beanutils

Commons-Fileupload

api手册地址:http://www.matools.com/api/commons-fileupload

Commons-IO最新版

api手册地址:http://www.matools.com/api/commons-io

Commons-Lang最新版

api手册地址:http://www.matools.com/api/commons-long

Commons-Net最新版

api手册地址:http://www.matools.com/api/commons-net

CSS 3

api手册地址:http://www.matools.com/api/css

DBCP连接池

api手册地址:http://www.matools.com/api/dbcp

Dom4j

api手册地址:http://www.matools.com/api/dom4j

dubbo中文文档

api手册地址:http://www.matools.com/api/dubbo

EhCache

api手册地址:http://www.matools.com/api/ehcache

Freemarker

api手册地址:http://www.matools.com/api/freemarker

Go语言

api手册地址:http://www.matools.com/api/go

Hadoop

api手册地址:http://www.matools.com/api/hadoop

Hibernate中文版

api手册地址:http://www.matools.com/api/hibernate

IKAnalyzer中文版

api手册地址:http://www.matools.com/api/ikanalyzer

Java 10

api手册地址:http://www.matools.com/api/java10

Java 6

api手册地址:http://www.matools.com/api/java6

Java 7

api手册地址:http://www.matools.com/api/java7

Java 8中文版

api手册地址:http://www.matools.com/api/java8

jqGrid中文版

api手册地址:http://www.matools.com/api/jqgrid

Jquery中文版

api手册地址:http://www.matools.com/api/jquery

Json-lib

api手册地址:http://www.matools.com/api/json-lib

Junit4最新版

api手册地址:http://www.matools.com/api/junit

Kryo

api手册地址:http://www.matools.com/api/kryo

Log4j最新版

api手册地址:http://www.matools.com/api/log4j

Lucene

api手册地址:http://www.matools.com/api/lucene

Maven

api手册地址:http://www.matools.com/api/maven

Windows MFC中文版

api手册地址:http://www.matools.com/api/msdn

Mybatis

api手册地址:http://www.matools.com/api/mybatis

MySql中文版

api手册地址:http://www.matools.com/api/mysql

Netty 3.6

api手册地址:http://www.matools.com/api/netty

Nginx中文版

api手册地址:http://www.matools.com/api/nginx

OpenJPA最新版

api手册地址:http://www.matools.com/api/openjpa

PHP中文版

api手册地址:http://www.matools.com/api/php

POI-apache

api手册地址:http://www.matools.com/api/poi

QuickServer

api手册地址:http://www.matools.com/api/quickserver

redis中文参考文档

api手册地址:http://www.matools.com/api/redis

Ruby

api手册地址:http://www.matools.com/api/ruby

Ruby-library

api手册地址:http://www.matools.com/api/ruby-library

Ruby on Rails

api手册地址:http://www.matools.com/api/rubyonrails

Shiro

api手册地址:http://www.matools.com/api/shiro

Spring最新版

api手册地址:http://www.matools.com/api/spring

Spring for Android

api手册地址:http://www.matools.com/api/spring-android

Spring Boot

api手册地址:http://www.matools.com/api/spring-boot

Spring Cloud中文文档

api手册地址:http://www.matools.com/api/spring-cloud

Spring Security

api手册地址:http://www.matools.com/api/spring-security

Spring中文版

api手册地址:http://www.matools.com/api/spring-zh

Struts 2最新版

api手册地址:http://www.matools.com/api/struts2

Taperstry

api手册地址:http://www.matools.com/api/taperstry

TensorFlow中文

api手册地址:http://www.matools.com/api/tensorflow

Tomcat

api手册地址:http://www.matools.com/api/tomcat

Ubuntu

api手册地址:http://www.matools.com/api/ubuntu

Velocity 1.7

api手册地址:http://www.matools.com/api/velocity

VelocityTools2.0

api手册地址:http://www.matools.com/api/velocity-tools

Vue Router中文参考

api手册地址:http://www.matools.com/api/vue-router

vue.js中文文档

api手册地址:http://www.matools.com/api/vuejs

XMLBeans

api手册地址:http://www.matools.com/api/xmlbeans

Yahoo UI中文版

api手册地址:http://www.matools.com/api/yui

Zend Framework中文版

api手册地址:http://www.matools.com/api/zend-framework

Zookeeper

api手册地址:http://www.matools.com/api/zookeeper