-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|478|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> C/C++/C#/Other -> Flap Happy and Fancy Free!

Posted : Monday, 06 November 2017, 16:46
rychan

Flap Happy and Fancy Free!


My port of Flapadiddle is beginning, after taking my last NES game attempt as more extended learning than an actual game, I'm attempting to do that lovely procedural generation of levels on a 6502, with a proper,seeded PRNG, Demo levels viewable here, with limits to 8-bit integers for testing.

refreshgames.co.uk/randomness.php



Hopefully the game can fit nicely into 32kb, with many, MANY levels! Gooo proc gen!

-=-=-
Web / Game Dev, occasionally finishes off coding games also!

Refresh Games - Game Dev Blog
Posted : Monday, 06 November 2017, 17:21
Jayenkai
Good luck!!

The way the original works.
Fill screen with random spikes.
Place 5 platforms within certain X sections. Eg, leftmost platform in somewhere in first 20% of screen, rightmost in last 20%, others inbetween.
Next, erase any spikes within an X radius of platforms.
Next, pick a random y value for each of the 20%s, and erase spikes within a certain height of that y value, to create a horizontal corridor at y.
Then, create a vertical shaft from platform to the y, to ensure each platform can reach a horizontal area.
Last, cut additional vertical shafts between the midpoints of each 20%

It’s VERY formulaic, but given a "not completely full" random set of spikes, the level looks random enough.

-=-=-
''Load, Next List!''
Posted : Tuesday, 07 November 2017, 02:17
rychan
Thanks, I'm going to need it! I'm planning on using this approach for the moment, it'll need some tweaking but it's essentially:

Fill screen with spikes
Place verticals up from the platforms
Carve a random path out left to right with a set height ( maximum height change of 1 or 2 blocks per column)
Carve another, shorter path out left to right (max height change of 1)
Then once more, same height, left to right (max height change of 1).

Dot some spikes around randomnly.
Dot some blank spaces around
Place up to 5 platforms where they can appear, based on surrounding blocks being empty.

Bit compress it down so each tile is only 2 bytes
Output to the screen.

It does need some changing, mainly in the placing of the platforms I reckon.

-=-=-
Web / Game Dev, occasionally finishes off coding games also!

Refresh Games - Game Dev Blog