roguelike

[转] Roguelike开发建议

放肆的年华 提交于 2020-03-25 22:39:30
该文所述的Roguelike为典型的Roguelike游戏,而非带着Roguelike元素的游戏。 以下内容为他在今年Roguelike开发者大会上的发言文字版。 引言 几年前召开的首届Roguelike开发者大会上,我发表了一个关于自己如何走上开发者道路的演讲,而今天,我想谈谈如何成为一名Roguelike游戏开发者。在玩游戏的过程中,我们总会产生一种冲动,创造一个更好的游戏或是自己的游戏。此番演讲并不是一个教程,更多的是Roguelike游戏的入门与建议。 制作一个Roguelike游戏可能会非常艰难,如同穿越一个障碍重重的地牢。在下面这张图表中,你将在最底层开始自己的开发之旅,而顶部则是你的目标——一个有趣的的游戏。 你的开发之旅很可能就像这张图一样,缺乏明确的设计思路,想到了个什么有意思的玩法就往游戏里面塞,导致整个系统显得臃肿不堪。 你可能竭尽全力也无法到达图中所在的目的地,而代价却是你那一头秀发与大把的光阴。你自己走向了那些力所不逮的领域然后止步不前,最后被现实所挫败,留下一堆烂摊子退出项目。 开发者首先要做的是直奔目标。项目开始前开发者应当有个基本的计划以及开发方向,从一些基本的内容开始做起,等到游戏的核心建立起来后才去考虑拓展那些你认为有趣的内容。 在这篇文章中,我将主要介绍游戏制作的一些基本知识,如何提高建造一个随机地牢的成功率

How could I implement body parts in a Java roguelike game [closed]

浪子不回头ぞ 提交于 2019-12-12 01:29:38
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . I am making a Roguelike game in java, and I want every creature to have bodyparts (as in Dwarf fortress). I was just wondering what the best way to implement this might be. 回答1: Like most things in Java you could

Initiating a derived class with specific variable values

本小妞迷上赌 提交于 2019-12-11 16:57:47
问题 For the below code snippet, how do I initialize instances of class Enemy with variables (such as x, y, type)? I have it working correctly, it triggers the instances no matter how many of them I insert... I just need to know the best way of creating an enemy with certain variables that will differ for each of my instances... particularly when some of those variables are in the base class and others are not. class BaseObject { public: virtual void Render() = 0; int x; int y; }; class Enemy :

Batch Roguelike Game

喜夏-厌秋 提交于 2019-12-08 02:04:23
问题 I've been learning some batch programming, and decided to make a roguelike, as it's one of my favorite types of games. I have researched any information on making a roguelike in batch, but haven't found much. From the little bit I've gathered, this is the code I have so far: @echo off rem init starting position set pos=6 :level set c1=# set c2=# set c3=# set c4=# set c5=# set c6=. set c7=. set c8=# set c9=# set c10=. set c11=. set c12=# set c13=# set c14=# set c15=# set c16=# echo %c1%%c2%%c3

Batch Roguelike Game

心不动则不痛 提交于 2019-12-06 11:45:39
I've been learning some batch programming, and decided to make a roguelike, as it's one of my favorite types of games. I have researched any information on making a roguelike in batch, but haven't found much. From the little bit I've gathered, this is the code I have so far: @echo off rem init starting position set pos=6 :level set c1=# set c2=# set c3=# set c4=# set c5=# set c6=. set c7=. set c8=# set c9=# set c10=. set c11=. set c12=# set c13=# set c14=# set c15=# set c16=# echo %c1%%c2%%c3%%c4% echo %c5%%c6%%c7%%c8% echo %c9%%c10%%c11%%c12% echo %c13%%c14%%c15%%c16% This works so far, and

Very simple RogueLike in F#, making it more “functional”

蓝咒 提交于 2019-12-04 23:13:51
问题 I have some existing C# code for a very, very simple RogueLike engine. It is deliberately naive in that I was trying to do the minimum amount as simply as possible. All it does is move an @ symbol around a hardcoded map using the arrow keys and System.Console: //define the map var map = new List<string>{ " ", " ", " ", " ", " ############################### ", " # # ", " # ###### # ", " # # # # ", " #### #### # # # ", " # # # # # # ", " # # # # # # ", " #### #### ###### # ", " # = # ", " # =

Very simple RogueLike in F#, making it more “functional”

落爺英雄遲暮 提交于 2019-12-03 14:39:08
I have some existing C# code for a very, very simple RogueLike engine. It is deliberately naive in that I was trying to do the minimum amount as simply as possible. All it does is move an @ symbol around a hardcoded map using the arrow keys and System.Console: //define the map var map = new List<string>{ " ", " ", " ", " ", " ############################### ", " # # ", " # ###### # ", " # # # # ", " #### #### # # # ", " # # # # # # ", " # # # # # # ", " #### #### ###### # ", " # = # ", " # = # ", " ############################### ", " ", " ", " ", " ", " " }; //set initial player position on

_curses.error: add_wch() returned an error

僤鯓⒐⒋嵵緔 提交于 2019-12-02 00:53:52
I have the following code rendering the display for my roguelike game. It includes rendering the map. def render_all(self): for y in range(self.height): for x in range(self.width): wall = self.map.lookup(x,y).blocked if wall: self.main.addch(y, x, "#") else: self.main.addch(y, x, ".") for thing in self.things: draw_thing(thing) It errors out every time. I think it's because it's going off the screen, but the height and width variables are coming from self.main.getmaxyx(), so it shouldn't do that, right? What am I missing? Python 3.4.3 running in Ubuntu 14.04 should that matter. That's expected

How to make an array of struct in C?

限于喜欢 提交于 2019-11-30 16:28:21
I am making a roguelike game. I want to represent the map as an array of structs, for example having 256 structs in an array. The map is a 16*16 grid of tiles, and each tile has attributes, such as whether there is an item on top of it. So say that I want an array of 256 of the struct tiles : struct tiles { char type; /* e.g. dirt, door, wall, etc... */ char item; /* item on top of it, if any */ char enty; /* entity on top of it, e.g. player, orc if any */ } Then, I need to access an array of that structs something like this: int main(void) { unsigned short int i; struct tiles[256]; for (i = 1

How to make an array of struct in C?

前提是你 提交于 2019-11-29 23:32:39
问题 I am making a roguelike game. I want to represent the map as an array of structs, for example having 256 structs in an array. The map is a 16*16 grid of tiles, and each tile has attributes, such as whether there is an item on top of it. So say that I want an array of 256 of the struct tiles : struct tiles { char type; /* e.g. dirt, door, wall, etc... */ char item; /* item on top of it, if any */ char enty; /* entity on top of it, e.g. player, orc if any */ } Then, I need to access an array of