r/proceduralgeneration • u/Bergasms • Feb 11 '16
Challenge [Monthly Challenge #3 - Feb, 2016] - Procedural Side Scroller Level
Grab a snack and get your IDE/Vim/Emacs/Magnetized Needle warmed up /r/proceduralgeneration, it's time for the third monthly challenge. The winner of the first challenge, /u/BreezeNox, Picked this one out but is leaving the heavy lifting of running things to me. No matter! I'm enjoying myself. You guys continue to impress and amaze me with the skill and creativity.
Once again, before we get to the guts of this months challenge, I'd like you to all vote for the winner of last months challenge.
Challenge #2, Procedural Castle
Because some notable participants from last month have not made any sort of final submission comment (They probably missed the post I made about it), instead of getting you guys to make a seperate post I will make a link to anyone who did a WIP post. However, if you made a final submission post/comment I will link to that and you have my eternal thanks.
Composit image by Starbeamrainbowlabs
Voting is now open. This time you can select multiple options, so if you have multiple favourites then vote for them all. Personally there are so many entries that impressed me that I think it is only fair to do it this way. The names are in random order, so make sure you pay attentions when you are voting.
Voting to close at Sunday 21st of Feb, 23:30 UTC
PLEASE VOTE HERE ArdorDeosis is the winner
Challenge Brief: copied from BreezeNox over here Design a program that procedurally generates a level layout for a side-scrolling platformer.
Examples
Mandatory Items
- A start and end
- The level should be solvable. As in, you should always be able to reach the end from the start regardless of the generated content in between
Features to consider
- Reachability of areas (according to an arbitrary movement mechanic)
- Entity placement (enemies, treasure, traps, ...)
- Multiple paths.
- Themes for levels
Feel free to use any visual style.
That's it for now. Please let me know of anything you think I've missed out. The due date for this challenge is Friday, March 11th.
Also, feel free to share, shout out and link this post so we get more people participating and voting.
Works in Progress
Extra stuff
Writeup on challenge also by Starbeamrainbowlabs
And another by Slashie
Ardordeosis found some interesting stuff
Announcement
From here on out, any WIP post comment will be treated as an entry we can judge at the end to be the winner unless you explicitly don't want it to be (eg, let me know).
5
u/fvandepitte Feb 11 '16
x-posted to /r/dailyprogrammer
3
u/Vrixyz Feb 11 '16
"This is to give you an idea of the different ways you could represent your castle, and also the different styles of castle that exist around the world."
references to previous challenge (castle)
Good luck to everyone, maybe I'll have time :)
3
u/Mathgeek007 Feb 11 '16
Forgot about this subreddit, glad I come back to some awesome challenge.
Sounds fun! Any specific rules? I assume not besides "must be procedurally generated, and is a sidescroller with an end".
So, I'll post right now my goal for this game that I am making.
Forced speed, you're in the middle of the screen. You're always moving right. Obstacles and enemies will come from the right, and you need to hit the correct button to react. WASD; W to jump, A to dodge, S to slide down, D to attack forward. The procedure will have specific obstacles, namely;
Then there would be a mix of these, slowly speeding up, procedurally generated (such that the next obstacle you encounter will be legal, at a legal position to be able to proceed, and not necessarily incredibly difficult to pass (breakneck speeds). The "end" is a score-based end. When you have a flawless minute (or something) then you reach the end.
I'm awful with creating permanent worlds, so I think this is a small workaround.
Won't get it done, but time to try!
3
u/Starbeamrainbowlabs Feb 14 '16
I played around with a few bash commands, and half an hour later I had all the PCG#2 entries in a single labelled image (thanks to imagemagick). Since it makes voting so much easier, here's a link [WARNING 15MB]:
http://i.imgur.com/bBDnnrU.jpg
2
u/Bergasms Feb 13 '16 edited Mar 08 '16
Bergasms WIP
Ok, here are the humble beginnings. I have a character, and i have a level that generates. I can assign blocks to locations, and I have a texture atlas for those blocks. The character has a velocity, and he can collide with non solid blocks.
WIP Image one
Now for some actual procedural generation. Currently the map is just a stone boundary with wooden crossbeams every 16 blocks. The map data is an array of wxh longs. Where the w of the level is block_width/8, because I am splitting each long into 8 bytes and using the byte to assign block information.
I have a fun idea for the puzzle that will fill the map :)
Jeez, that was a bit crazy haha.
You can download and play the game from here
UDLR or WASD to move about. Check pass condition at door on the right of the room, collect bits from jars to add to your body, shift them left or right or flip them till you can pass the exit condition for the room.
2
u/NotAGameCompany Feb 14 '16
NotAGameCompany WIP:
I'm very excited to start working on this challange. That has mostly to do with the fact that I had already started a kind of similar project.
The level generator is based on generating a non linear overworld via regions. I'm trying to build the generator as a framework, such that it can be used for any project that uses procedural generation for its levels. I'm now at the point that my framework can instantiate, extend and move each of the regions. This can be seen in the following images:
WIP images
My next goal is to set requirements for each region like its dimension and its place in the world. The overworld generator looks at those recruiments and tries to fulfill them. After that I'm going to implement passageways between the regions. So that the region generator knows how his region needs to be filled in.
It should also be noted that this system works in 3d too.
2
u/Kameisan Feb 17 '16
WIP KameiSan
Here's a very early stage in development. I'm going to try to generate a path from one exit to another, then trace the path while generating terrain around it. Features such a chests and what-not shall be 'layerer' on later, after multiple passes. Let's see how it goes.
3
u/Arandmoor Feb 14 '16 edited Feb 14 '16
Arandmoor WIP
Background: I'm trying to generate the levels with a kind of Statistical L-System.
Current iteration is outputting to console at a very high level and is merely mapping rooms to exits. I'll get more in-depth with room strategies in a future iteration (assuming I can find more than today to work on anything).
Currently, characters represent exits using the following language...(yeah...yeah...N should be "Up"...etc. 2D is 2D)
Overall Room Language-Exits Mapping:
Language:
Level Construction Rules:
Example Step-by-step Construction on GitHub (because I don't want to spam quite that much text...)
...because, apparently, 40 runs won't break the console :)
...Metroid...eat your fucking heart out.
5
u/moosekk The Side Scrolling Mountaineer Feb 25 '16 edited Sep 15 '17
WIP moosekk
Update 2. Added some sprites from Kenney's Platformer Pack.
Update 3. Added Start/End platforms, using a small state machine to determine what direction to build platforms out in.
1
u/slashie_ Feb 11 '16
Awesome entries for PCG#2! Congrats to all, still dunno if I'll have time to hit #3... may be with something super simple.
Posted about the entries on my blog http://blog.slashie.net/2016/02/11/entries-for-rproceduralgeneration-monthly-challenge-2-castles/
3
u/TotesMessenger Feb 11 '16 edited Feb 11 '16
I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:
If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / ^Contact)
2
u/ArdorDeosis The King of the Castle Feb 15 '16
During my research I found an interesting article about procedurally generating platformer levels.
1
u/self_me The Texturizer Feb 24 '16
since I recently made a physics engine, if I can finish this in time I might have physics
0
u/[deleted] Feb 14 '16
[deleted] — view deleted comment