Hello everyone ^w^ know I've been out of the threads for a while, school and life stuff, I did keep to my projects though; which is why I'm asking about Sliding Tile Puzzles ^^
I'm still very new to coding and am trying to make a sliding tile puzzle similar to Bioshock's Hacking mini-game, any ideas how to format the code besides a massive "if" tree? So far I'm just sketching out pseudo-code in a notebook and all I can kinda think of is having a bunch of, (if x block is above y block or c or d or cd or sck).. and I'm getting the sense I'm doing it the harder-not-smarter way. Can anyone explain(baby-code talk, because I'm a simply person) how they set up their matrix's or whatnot to work for Sliding Tiles? mostly the 'how to store the info of what has moved where' and 'making specific patterns trigger stuff'. I thought it was going to be so easy as just copying a sliding tile game and making multiple win states, but ehhh, code is hard.
Your time and suggestions are very much appreciated ^^ thanks all and good day.
I'm still very new to coding and am trying to make a sliding tile puzzle similar to Bioshock's Hacking mini-game, any ideas how to format the code besides a massive "if" tree? So far I'm just sketching out pseudo-code in a notebook and all I can kinda think of is having a bunch of, (if x block is above y block or c or d or cd or sck).. and I'm getting the sense I'm doing it the harder-not-smarter way. Can anyone explain(baby-code talk, because I'm a simply person) how they set up their matrix's or whatnot to work for Sliding Tiles? mostly the 'how to store the info of what has moved where' and 'making specific patterns trigger stuff'. I thought it was going to be so easy as just copying a sliding tile game and making multiple win states, but ehhh, code is hard.
Your time and suggestions are very much appreciated ^^ thanks all and good day.