Lunarovich It's awesome to hear that you're back developing this plugin, because i love it !
I have a couple of questions and suggestions about rot.js and the c2 plugin
- License
- More wall infos
- More floor infos
- Nested level generation
- Corridors wider then 1 tile
- Corridors start/end point
- Is corridor a dead-end
- Corridor list (like rooms) for each corridor
- Zones/sections
- Is a circle FOV possible
- Some more rot.js features
1.
Do you know what I need to take care of in terms of the rot.js license?
Do I just have to credit it somewhere or do I have to do something else if I want to use it in a commercial project?
2. + 3.
The problem with level generation in c2 is that with events big loops or nested loops are slow compared to loops directly executed in js,
therefore would it be great to produce more information directly in js and output it to the c2 plugin.
for example:
v This would help v
*********************
*########***########*
*#......#***#......#*
*#......#####......#*
*#......D...D......#*
*#......#####......#*
*#......#***#......#*
*########***########*
*********************
*=filled #=wall .=floor D=door
v This would be better v
*********************
*########***########*
*#......#***#......#*
*#......#####......#*
*#......D,,,D......#*
*#......#####......#*
*#......#***#......#*
*########***########*
*********************
*=filled #=wall .=floor D=door ,=CORRIDOR
v This would be almost perfect v
*********************
*#TTTTTT#***#TTTTTT#*
*L......R***L......R*
*L......#TTT#......R*
*L......D,,,D......R*
*L......#BBB#......R*
*L......R***L......R*
*#BBBBBB#***#BBBBBB#*
*********************
*=filled .=floor D=door ,=corridor
#=CORNER T=TOP-WALL B=BOTTOM-WALL L=LEFT-WALL R=RIGHT-WALL
[/code:2kw35ik9]
But the best would be a [url=http://www.saltgames.com/2010/a-bitwise-method-for-applying-tilemaps/]bitwise method[/url] to get a [url=http://www.cr31.co.uk/stagecast/wang/blob.html]"blob tileset"[/url] output
4.
It would be great if nested level generation was possible.
e.g. In the 1st run you create a couple of big rooms and in the 2nd run you fill these rooms with different level generation ( maze, cellular automata ...)
5.
Is it possible to create corridors that are wider then 1 tile with rot.js
6. + 7.
To know where a corridor starts and ends and if it is connected to a room or a dead-end is a good way to bring interresting gameplay to a dungeon crawler or roguelike, you can place loot in dead-ends so the player didn't walk the whole way for nothing and you can place traps or monsters on the start or end of a corridor.
8.
A corridor list (like the room list) would help shorten the event loop count
9.
With zones/sections I mean closed of parts of the level creation,
for example two "lumps" of rooms and they are only connected to each other with one door. In the first "lump" you could hide a key to the next section.
There is a Template in the scirra store that does the same thing but its made with events and thus is not that fast but it shows good what I mean [img="https://static3.scirra.net/images/newstore/products/1500/download%20%282%29.png"]
10.
Is a circular FOV possible with rot.js ?
11.
Do you plan on adding some more of the rot.js functionality.
What I particular have in mind is:
[url=http://ondras.github.io/rot.js/manual/#lighting]Global lighting[/url]
[url=http://ondras.github.io/rot.js/manual/#noise]Noise generation[/url]
[url=http://ondras.github.io/rot.js/manual/#rng]some of the RNG stuff, especially "Picking a weighted value"[/url]
Omg what a post
I know this is a huge list and I hope you dont get me wrong, the plugin right now is very usefull as it is and i love it !
Nevertheless or better especially because I like it so mutch would I greatly appreciate if you could get as mutch features from this list added to the plugin as possible,
because each of them would make the plugin this mutch more usefull.
Thanks for taking the time to read this and if something is unclear (english isn't my native language, if you couldn't tell ) or you need someone to test , feel free to pm me directly or just submit an answer here, I'm follow this topic anyway.