foxfire29
10-30-2012, 04:24 PM
Hi all,
I always have stuff in life to do but I seem to always drift back to Adom and its forums. Just saying hi yet again and also that FINALLY I have got to grips with the A* algorithm and I am going to use it to do random dungeon generation.
My current roguelike has some monsters implemented, every monster has all the player abilities. I also have a basic spell system immplemented where you actually see the spell firing and the spell can bounce of walls, believe it or not this feature is what I loved about Adom.
2 final tasks are random dumgeon generation and LOS
For random dungeon generation I plan the following :
the
>while (count < say500)
while(acurrentmaderoom)
{
> using A* pick a random start and end point within the confines
}
>draw a patheoint of the path make a room with door at newendpoint
make new door on opposite side of room and use that as new start path point
create a path to new path endpoint
create a room
rinse/repeat for a set amount of times
Just so happy since I cracked a*nd I have also done breadth first search before so I am doing great nwith my new RL. I am no developer great by any stretch of the imagination but i am starting to love coding as since i started seeing results
Anyways HI all and if anyone has any better ideas than I have or advice fire way!
As it stands i have masde so much progress with my coding i havent been sleeping well so I am spending a night on adom :)
I always have stuff in life to do but I seem to always drift back to Adom and its forums. Just saying hi yet again and also that FINALLY I have got to grips with the A* algorithm and I am going to use it to do random dungeon generation.
My current roguelike has some monsters implemented, every monster has all the player abilities. I also have a basic spell system immplemented where you actually see the spell firing and the spell can bounce of walls, believe it or not this feature is what I loved about Adom.
2 final tasks are random dumgeon generation and LOS
For random dungeon generation I plan the following :
the
>while (count < say500)
while(acurrentmaderoom)
{
> using A* pick a random start and end point within the confines
}
>draw a patheoint of the path make a room with door at newendpoint
make new door on opposite side of room and use that as new start path point
create a path to new path endpoint
create a room
rinse/repeat for a set amount of times
Just so happy since I cracked a*nd I have also done breadth first search before so I am doing great nwith my new RL. I am no developer great by any stretch of the imagination but i am starting to love coding as since i started seeing results
Anyways HI all and if anyone has any better ideas than I have or advice fire way!
As it stands i have masde so much progress with my coding i havent been sleeping well so I am spending a night on adom :)