Author Topic: RNG Rooms possible? - Isaac Style Game  (Read 4334 times)

Storm_Lakitu2

  • Wannabe
  • Posts: 14
  • King Kirby
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 29.0.1 Firefox 29.0.1
    • View Profile
    • Twittah
  • Playstyle: Keyboard
RNG Rooms possible? - Isaac Style Game
« on: May 31, 2015, 03:11:07 PM »
Hello, i just wanted to ask a quick question to see if why imagining is possible in Game Maker.

I once had the idea a while ago to make a "Binding of Isaac" Like Fangame. So there is a pool of rooms, and with pool i mean giant pool, and the rooms always get picked in a random order, after all rooms are done, the fangame is over.

To do it a bit more shaped up, maybe i could do something like "the first 10 rooms are always the same", and to make it even more interesting, i would LOVE to make it possible, that a room can not appear twice troughout a playtrough.

So to sum it up: i want to make fangame where the rooms get picked randomly from a pool, till every room or a certain number of rooms is complete, then you get sent to and ending screen. A room cant appear twice, and the first 10 rooms are always the same.

So: is it possible and is it amazingly fucking shit difficutly and i shouldnt even try it? if it is possible, plz leave me some coding suggestions because i suck at coding. Like, really bad.

 :atkHappy:
"Restarting Music? pff, my game restarts if you die!"

patrickgh3

  • Spike Dodger
  • Posts: 169
  • stay optimistic! :D
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 43.0.2357.81 Chrome 43.0.2357.81
    • View Profile
    • Github
  • Playstyle: Keyboard
Re: RNG Rooms possible? - Isaac Style Game
« Reply #1 on: May 31, 2015, 04:20:59 PM »
That's a nice idea. I love it when I have an idea and am excited about it, and I enjoy seeing other people feel that way too :)

This is definitely possible to implement in Game Maker, and it shouldn't be that complicated. However, since you say you "suck at coding. Like really bad," this might be too hard a challenge for you right now. But, here's how I might implement this:

At the start of the game, create a ds_list and add to it all the rooms in the pool:
Code: [Select]
pool = ds_list_create()
ds_list_insert(pool,0,room1)
ds_list_insert(pool,0,room1)
etc.
When the player finishes a room, or they just started a new game, pick a random room from the pool, go to that room, and remove it from the pool:
Code: [Select]
var chosenindex, chosenroom;
chosenindex = irandom(ds_list_size(pool))
chosenroom = ds_list_find_value(pool, chosenindex)
ds_list_delete(pool, chosenindex)
room_goto(chosenroom)
And when the player finishes a room, you should also check for the win condition, which could be no more rooms in the pool (ds_list_size(pool) == 0), the player completed X amount of rooms, or whatever other win condition. Also, I think it makes sense for the pool list to be a global variable. So yeah, that's how I might implement this. Good luck with your fangame and Game Maker adventures!

Storm_Lakitu2

  • Wannabe
  • Posts: 14
  • King Kirby
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 29.0.1 Firefox 29.0.1
    • View Profile
    • Twittah
  • Playstyle: Keyboard
Re: RNG Rooms possible? - Isaac Style Game
« Reply #2 on: May 31, 2015, 05:13:29 PM »
First of, i want to complete my current fan game (completion status: 5%), then im gonna sit on this. but already thank you.
"Restarting Music? pff, my game restarts if you die!"

Storm_Lakitu2

  • Wannabe
  • Posts: 14
  • King Kirby
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 29.0.1 Firefox 29.0.1
    • View Profile
    • Twittah
  • Playstyle: Keyboard
Re: RNG Rooms possible? - Isaac Style Game
« Reply #3 on: June 01, 2015, 10:47:23 AM »
Yesterday Night i thought about it some more and i got to the conclusion, that the game might be a bit boring or maybe even too hard.

So i got up with another bonus idea: How about making it severeal worlds.

So you start in a Tutorial World, where the first 10 rooms are always the same, as said, after the 10 rooms, you get thrown into world 1, where there is a pool of rooms. If you completed enough rooms of the pool (lets say you have to complete 30 rooms and in the pool is something like 300), you get thrown into world 2, where there is a completely new pool, where the other levels of pool 1 cant be in anymore. If you complete enough rooms there, you go on, and so on.

I would love to keep the feature of making it impossible to meet a room twice or even more often in a playtrough.

Would THAT still be possible, and how? ;)

Thanks already, Storm.

 :atkHappy:
"Restarting Music? pff, my game restarts if you die!"

pieceofcheese87

  • Global Moderator
  • The Kid
  • Posts: 346
  • Personal Text
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 43.0.2357.65 Chrome 43.0.2357.65
    • View Profile
    • Twitch Tv Channel
  • Playstyle: Keyboard
Re: RNG Rooms possible? - Isaac Style Game
« Reply #4 on: June 02, 2015, 07:24:54 AM »
I had this idea a while ago but never did anything with it.

edit: https://pastebin.com/TyPamx6D this is something dumb i put together when i was planning it. maybe you can make something out of it.
« Last Edit: June 02, 2015, 07:30:09 AM by pieceofcheese87 »
Signature

Storm_Lakitu2

  • Wannabe
  • Posts: 14
  • King Kirby
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 29.0.1 Firefox 29.0.1
    • View Profile
    • Twittah
  • Playstyle: Keyboard
Re: RNG Rooms possible? - Isaac Style Game
« Reply #5 on: June 02, 2015, 07:58:55 AM »
Thanks for the paste bin (it made me laugh several times xD) but i think i nwould be more happier if i get some pieces or ideas of code i could use, since i dotn have a single fucking clue and steal every code i need from other games (you could call me a pirate if you want, Arr) or Ask for help on this forums (thats why no one likes me  :atkWut: )

But thanks :)

 :atkHappy:
"Restarting Music? pff, my game restarts if you die!"

patrickgh3

  • Spike Dodger
  • Posts: 169
  • stay optimistic! :D
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 43.0.2357.81 Chrome 43.0.2357.81
    • View Profile
    • Github
  • Playstyle: Keyboard
Re: RNG Rooms possible? - Isaac Style Game
« Reply #6 on: June 02, 2015, 04:16:40 PM »
The method I posted using ds_lists should work just fine with multiple pools; just create multiple lists and keep track of which one you're using.

Yesterday Night i thought about it some more and i got to the conclusion, that the game might be a bit boring or maybe even too hard.

Brainstorming ideas is a lot of fun, especially when you can't stop thinking about an idea you just had. But, I would caution against making too detailed of plans or design decisions based just on brainstorming before building the first iteration of your game. Getting your hands on it and playing it gives you insight that thought experiments just can't give you. This is mostly true when you're experimenting with new ideas, or a design area that you aren't familiar with (e.g. this room pool idea). It doesn't really apply to design you're very familiar with, since your intuition without having the physical game there is quite good. But yeah, that's my opinion and advice to you. There's no substitute for seeing how the game actually feels. If anyone disagrees or wants to discuss this, please reply!

Storm_Lakitu2

  • Wannabe
  • Posts: 14
  • King Kirby
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 29.0.1 Firefox 29.0.1
    • View Profile
    • Twittah
  • Playstyle: Keyboard
Re: RNG Rooms possible? - Isaac Style Game
« Reply #7 on: June 07, 2015, 03:57:20 PM »
Thanks everyone. This idea is now patented.
If anyone steals it and it is not from Storm_Lakitu or twitch.tv/storm_lakitu2 , its not real Kappa

 :atkHappy:
"Restarting Music? pff, my game restarts if you die!"

Anon70000

  • Cherry Eater
  • Posts: 50
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 38.0 Firefox 38.0
    • View Profile
  • Playstyle: Keyboard
Re: RNG Rooms possible? - Isaac Style Game
« Reply #8 on: June 07, 2015, 04:33:16 PM »
Thanks everyone. This idea is now patented.
If anyone steals it and it is not from Storm_Lakitu or twitch.tv/storm_lakitu2 , its not real Kappa

 :atkHappy:
Don't wanna upset you but there's already ongoing project in chinese community with same concept