c游戏脚本
1. 游戏脚本是什么意思
脚本是批处理文件的延伸,是一种纯文本保存的程序,一般来说的计算机脚本程序是确定的一系列控制计算机进行运算操作动作的组合,在其中可以实现一定的逻辑分支等。
2. 如何做单机游戏挂机脚本 (c语言)
c不是脚本语言 极不方便
3. C/C++ 怎么实现脚本功能,游戏脚本怎么实现
用脚本语言Lua进行扩展就行了啊!很简单的,Lua这个高效简单的脚本语言可以好好的学学,Python其实也是可以的,效果也不错,作为程序员,多学点,总会是有好处的啊!
4. 是不是所有的汇编语言都能写游戏脚本比如说用c语言或者java写梦幻西游的押镖跑商脚本之所以用这
c 和 汇编语言 是相当 底层的语言 了,不可能来写 游戏脚本,java 一般写服务端, 游戏脚本 一般是 用专门的脚本语言 比如lua javascript ,魔兽世界 插件脚本全是 lua~ 语法清晰 好懂~
5. 游戏中常说的用脚本是什么意思
脚本简单地说就是一条条的文字命令,这些文字命令是可以看到的,脚本程序在执行时,是由系统的一个解释器,将其一条条的翻译成机器可识别的指令,并按程序顺序执行。
因为脚本在执行时多了一道翻译的过程,所以它比二进制程序执行效率要稍低一些。
游戏脚本的意思,就是一个模拟鼠标、键盘的程序。
比如玩家要按一下A键, 移动鼠标点击一下。这个动作,用脚本可以直接帮玩家执行,省了手动操作。但使用游戏脚本在游戏中是作弊行为,会严重影响其他玩家的体验,因此需要严厉抵制。
(5)c游戏脚本扩展阅读:
脚本的编写都是采用某一种编程语言。
如 LoadRunnert 测试工具用的 C 语言;WebLoadt 测试工具用 JavaScript 或者是接近编程语言的方式;Robot 测试工具用SQABasic, 一种类似于VB的语言;
QTPt 测试工具所用到的是VBScript;WinRunnert 测试工具所用到的是类 C 的语言。这些测试脚本的易读性相对较低,编写相对复杂, 当设备的功能需求发生变化时,测试脚本不易被维护。
常见的脚本语言有:Scala、JavaScript,VBScript,ActionScript,MAX Script,ASP,JSP,PHP,SQL,Perl,Shell,Python,Ruby,JavaFX,Lua,AutoIt等。
6. T语言 Y语言 C语言哪个写游戏脚本好
看到这三个选项,心情真的不太好形容,对T语言和Y语言不是特别了解,大概说一下自己的感觉。
C语言是更贴近底层的编程语言,全英文的字母的那种,属于面向过程的语言,个人认为用C语言写游戏脚本有点儿求虐,因为接口什么的都要自己写。不是很建议用。当然,前提是你说的是纯C语言,而不是C++、VC++这种C语言的衍生品。
T语言虽然有点儿过时,不过确实有很多人用TC做出过很炫的游戏效果,应该也容易找到一些例子,方便借鉴。
Y语言不是很了解,只知道是中文编程的典范,全中文内核,不太清楚是不适合写游戏脚本。
但是我觉得如果选用T语言和Y语言之前,应该考虑一下你要做什么游戏的脚本,如果是全英文的游戏内核,就要考虑中文编程和英文游戏的对接问题了,特别是Y语言。不是我崇洋媚外,但是事实证明国内出的一些计算机相关的东西确实都有很多不足之处,有时候可能会很坑。
最后建议还是选用一下现在主流的语言做游戏脚本,想javascript之类的,这些语言其实语法没比T或Y语言难多少,但是因为大家都在用,可以找到很多资料,还可以有更多的人让你请教。
7. 用c语言做网络游戏脚本怎么做
c语言不方便。用java c# vb吧
8. C++或者C可以写游戏脚本吗
只能写小游戏· ···稍微大型的游戏都需要所谓游戏引擎来带动··脚本编写改成了游戏所用引擎的代码!
9. c语言游戏编程实例
生命游戏
/* ------------------------------------------------------ */
/* PROGRAM game of life : */
/* This is a finite implementation of John H. Conway's */
/* Game of Life. Refere to my book for detail please. */
/* */
/* Copyright Ching-Kuang Shene July/25/1989 */
/* ------------------------------------------------------ */
#include <stdio.h>
#include <stdlib.h>
#define MAXSIZE 50 /* board size */
#define OCCUPIED 1 /* occupied flag */
#define UNOCCUPIED 0
#define YES 1
#define NO 0
char cell[MAXSIZE][MAXSIZE]; /* the board */
char work[MAXSIZE][MAXSIZE]; /* a working */
int row; /* No. of rows you want */
int column; /* no. of columns you want */
int generations; /* maximum no. of generation*/
/* ------------------------------------------------------ */
/* FUNCTION read_in : */
/* This function reads in the number of generations, */
/* the number of rows, the number of columns and finally */
/* the initial configuration (the generation 0). Then put*/
/* your configuration to the center of the board. */
/* ------------------------------------------------------ */
void read_in(void)
{
int max_row, max_col; /* max # of row and col. */
int col_gap, row_gap; /* incremnet of row and col */
int i, j;
char line[100];
gets(line); /* read in gens, row and col*/
sscanf(line, "%d%d%d", &generations, &row, &column);
for (i = 0; i < row; i++)/* clear the board */
for (j = 0; j < column; j++)
cell[i][j] = UNOCCUPIED;
max_col = 0; /* read in the config. */
for (max_row = 0; gets(line) != NULL; max_row++) {
for (i = 0; line[i] != '\0'; i++)
if (line[i] != ' ')
cell[max_row][i] = OCCUPIED;
max_col = (max_col < i) ? i : max_col;
}
row_gap = (row - max_row)/2; /* the moving gap */
col_gap = (column - max_col)/2;
for (i = max_row + row_gap - 1; i >= row_gap; i--) {
for (j = max_col + col_gap - 1; j >= col_gap; j--)
cell[i][j] = cell[i-row_gap][j-col_gap];
for ( ; j >= 0; j--)
cell[i][j] = UNOCCUPIED;
}
for ( ; i >= 0; i--)
for (j = 0; j < column; j++)
cell[i][j] = UNOCCUPIED;
}
/* ------------------------------------------------------ */
/* FUNCTION display : */
/* Display the board. */
/* ------------------------------------------------------ */
#define DRAW_BOARDER(n) { int i; \
printf("\n+"); \
for (i = 0; i < n; i++) \
printf("-"); \
printf("+"); \
}
void display(int gen_no)
{
int i, j;
if (gen_no == 0)
printf("\n\nInitial Generation :\n");
else
printf("\n\nGeneration %d :\n", gen_no);
DRAW_BOARDER(column);
for (i = 0; i < row; i++) {
printf("\n|");
for (j = 0; j < column; j++)
printf("%c", (cell[i][j] == OCCUPIED) ? '*' : ' ');
printf("|");
}
DRAW_BOARDER(column);
}
/* ------------------------------------------------------ */
/* FUNCTION game_of_life : */
/* This is the main function of Game of Life. */
/* ------------------------------------------------------ */
void game_of_life(void)
{
int stable; /* stable flag */
int iter; /* iteration count */
int top, bottom, left, right; /* neighborhood bound */
int neighbors; /* # of neighbors */
int cell_count; /* # of cells count */
int done;
int i, j, p, q;
display(0); /* display initial config. */
done = NO;
for (iter = 1; iter <= generations && !done; iter++) {
memmove(work, cell, MAXSIZE*MAXSIZE); /**/
stable = YES; /* assume it is in stable */
cell_count = 0; /* # of survived cells = 0 */
for (i = 0; i < row; i++) { /* scan each cell...*/
top = (i == 0) ? 0 : i - 1;
bottom = (i == row - 1) ? row-1 : i + 1;
for (j = 0; j < column; j++) {
left = (j == 0) ? 0 : j - 1;
right = (j == column - 1) ? column-1 : j + 1;
/* compute number of neighbors */
neighbors = 0;
for (p = top; p <= bottom; p++)
for (q = left; q <= right; q++)
neighbors += work[p][q];
neighbors -= work[i][j];
/* determine life or dead */
if (work[i][j] == OCCUPIED)
if (neighbors == 2 || neighbors == 3) {
cell[i][j] = OCCUPIED;
cell_count++;
}
else
cell[i][j] = UNOCCUPIED;
else if (neighbors == 3) {
cell[i][j] = OCCUPIED;
cell_count++;
}
else
cell[i][j] = UNOCCUPIED;
stable = stable && (work[i][j] == cell[i][j]);
}
}
if (cell_count == 0) {
printf("\n\nAll cells die out.");
done = YES;
}
else if (stable) {
printf("\n\nSystem enters a stable state.");
done = YES;
}
else
display(iter);
}
}
/* ------------------------------------------------------ */
void main(void)
{
read_in();
game_of_life();
}
10. 游戏脚本什么意思
其实脚本的意思大多数还是楼上说的模拟类 第二第三类都是直称外挂