Interesting, how would you do it?
Edit: 100th post!
Last edited by berberberber (like, a million years ago. Where were you?)
Last edited by berberberber (2012-07-14 18:32:43)
Offline
Well, it would either add it to the list as it generates (i have no clue how to do that), or it would generate it and add a 0 or 1 to the list based on what it was touching, and move along the rows scanning.
Offline
I realized that since I am menu maker, I can just make a menu for "Instructions", "solver", and "credits"
Offline
For the maze generator, you start out with a filled screen (a list completely filled with 1's) and then you "carve out" sections of it, with the rule that you can't intersect an already-existing tunnel. So, in each frame, you move turn a random direction (forward, left, or right), and carve the next block, making sure there's no "0" value two spaces ahead in the direction you're traveling.
Offline
I can't program until august, but I'll be sure to try this! One thing, though. How do you know what direction your traveling if it's a list?
Offline
You've got three variables: current x column, current y column, and current direction (you can make it simple by using 0 for right, 1 for up, 2 for left, and 3 for down). When you "carve out" parts of the list, you increment or decrement the value of the x column or the y column (depending on the direction). You tell the script that it is not allowed to move forward into either a tunnel that has already been dug, or any other restricted area (such as the edge of the screen).
The list is just for storing the data. You imagine that the list is actually a two-dimensional table of values. You can use some fairly simple math to turn list elements into positions onscreen and the other way around.
Offline
Hmmm. How would you determine which item of the list should be what?
Offline
It sort of works like this:
01 02 03 04 05 06 07 08 09 10
11 12 13 14 15 16 17 18 19 20
21 22 23 24 25 26 27 28 29 30
31 32 33 34 35 36 37 38 39 40
etc.
That represents a 10 x whatever grid. The numbers show which column/row values represent which items in the list.
In my "Level Editor" project, it converts back and forth between screen coordinates and list position.
Offline
I think I know how to do this, but I'm going to camp and don't/won't have my laptop for about a week. I'll try when I get back, if no one has finished it yet. I'll be able to be on the forums/ main site (no project viewing) until the end of the day if anyone needs me
Offline
Bump. Also, over the next week, can someone bump occasionally? It would be appreciated . Also, we won't be accepting people for a week, until I can look at them, so I FYI want to apply hurry up an do it now
Offline
I thing. Because we're all pretty experinced, maybe we should make a 1s1s project?
Offline
berberberber wrote:
I think. Because we're all pretty experinced, maybe we should make a 1s1s project?
Possibly. However, we should make only a few costumes.
Offline
I'm making a few 1s1s projects on some other accounts right now, and they're pretty easy . Yeah, I think that's a good idea. I think we should do a 3d scroller. If we do, should the buildings turn around the character, or the other way around?
Offline
bump--I couldn't find this without searching in the search bar
Offline
I'm back . We can now start development again .
Offline
bump...
Offline
Can I be somewhere?
It says I am a new scratcher <-- but this is a new account. Can I join?
Offline
Can you send us a link to your old account? I think if you can show us some more projects, you'll be able to get in
Offline
Youre in What position do you want?
Last edited by zubblewu (2012-07-24 11:09:35)
Offline
I will be in Grand Canyon from Aug. 3-7, so do not expect anything from me. I will have no internet connection.
Offline
Oh cool. I hope you have fun . I want to go there some day
Offline
bump
Offline
Guys, I think we're going to close down. No one is checking in, or even thinking about it. Tell me what you think of this
Offline