Latest Uploads
Invasion V ... prototype


Invasion V ... Prototype


Shields 64x64




Hives Screen shot


Rpg Potion Sprites


Code Snippets > Misc ( Created 20 February 2017 | Last Edited 20 February 2017)

Wall Tracing on Random Maps (rpg) by Pakz | No Votes
From the book ai for game developers
Written in
Highslide JS

I finally started understanding more things from a book I bought a couple of years ago(ai for game developers) One part in the book explains how to do Wall Tracing.
From the Rogue basin and other sources I started learning and understanding how to make random levels for rpg's and such. I combined the two things.

The code below is MonkeyX1. It creates random levels filled with a random number of entities that crawl across the levels. Based on time it creates and displays a new level. (space can also be used to create a new level)
The size of the levels is also random.

Here the html 5 page :


Latest Comments

Posted : Monday, 20 February 2017, 16:38

I'm glad you're learning all these little random-generation techniques.
I've found this kind of thing totally invaluable when doing AGameAWeek, as I rarely have the time to design levels, whilst cramming the game into such small spaces of time.
But even when working at a slower pace, it's still great to have this kind of randomisation within your games.

I'd love to see you tackle a nice big game, with this sort of thing.

Homepage :
Posted : Monday, 20 February 2017, 17:41

I hope to create bigger games one day. But I am still having to balance between learning all the things needed for making games.

Making good graphics is something that I am way behind with. So it will most likely take me years before I make something big.

I hope to do a couple of hours of #spritesomething today. (Drawing more river fish )

Homepage :
Posted : Wednesday, 22 February 2017, 09:47

Hi Pakz,
I am a fan of your code snippets. Found the coding train youtube channel from your tweets.

Do you have this book Source code found in

I have this book for the past 10 years, but not read it yet. Seeing your posts makes me want to read.


Posted : Wednesday, 22 February 2017, 18:56


I got your pm, I answered there..

I also checked (just yet) for that book in my archives. I still had it but end of last year the ebook company (mobipocket) stopped or bankrupted so I am not able to open the book file anymore(encryption). I contacted the book seller where I bought the book to see if they can help me read the book file. Not happy now!

I payed 50 euro's for that book! Paper is so much safer!

Homepage :
Posted : Wednesday, 22 February 2017, 22:48

Sorry for the double post.

-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 630|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Latest Posts
Puff Dog
spinal Mon 02:42
AGameAWeek : 2017 - Part One
Jayenkai Sun 14:32
Crystal Maze
rychan Sun 11:59
CSS-Me-Do - SoCoder2
Jayenkai Sun 08:08
Buy Zelda
Jayenkai Sat 08:34
Welcome Caton
steve_ancell Sat 04:53
Update All Objects in Array?
Jayenkai Sat 03:34
2D Array?
Jayenkai Sat 03:29
Cerberus X - the continuation of Monkey X
zzoom Fri 23:13
Delete Button on Showcases
Pakz Fri 09:13

Latest Items
Blog : Rewatching ''1 Litre of Tears''
Jayenkai Mon 02:52
Snippet : Twitter BBCode
Jayenkai Sun 02:44
Link : Learn C++
Pakz Sat 20:33
Dev-Diary : My Journey into NES Development
Jayenkai Thu 03:58
Showcase : A Civilization Clone v0.5
rychan Thu 03:27
News : Newsletter #320
Jayenkai Tue 18:47
Blog : sadas
hardcoal22 Tue 02:50
Showcase : Flappadiddle
Jayenkai Mon 08:20
Article : Cookie Information
rychan Sun 12:28
Dev-Diary : Wii to N64 adapter
spinal Sat 11:50
Link : MonkeyX code examples
Jayenkai Sat 06:42
Link : Available Languages
Jayenkai Thu 13:22
Blog : Mr Testo Tests
Socoder Tue 07:21
Showcase : Hives
zzoom Fri 16:10

Who's Online
Mon, at 06:18
Mon, at 06:00
Mon, at 05:58
Mon, at 05:42
Mon, at 05:38
Mon, at 05:07
Mon, at 04:09
Mon, at 03:23
Mon, at 02:27
Mon, at 02:14
Link to this page
Site : Jayenkai 2006-Infinity | MudChat's origins, BBCode's former life, Image Scaler.