On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(1 edit)

Hey! Thanks for taking the time to read my devlog and also share some of your wisdom too. I really appreciate it. You know what, I've tried actually doing the 2 dimensional array. And you're totally right, it's a lot more efficient to get it to work like this, Not only that, now that I think about it, this pretty much sets me up too for adding more properties on the tiles if there are other things i want it to do other than walkable or not.  What I did not think about that time was actually considering all 8 tiles like you mentioned, doing so will allow me to solve the edge case. Since i have velocity as well, it should be easy enough for me to determine which 3 tiles at most i'm likely to intersect with. I'm inclined to look into this again, but at the same time i'm worried too that i'd keep working on this one thing and not move on to other things and not finish. hehe


Actually I feel like i'm just not doing a good job at the moment keeping the state of the player, and that might be messing up my logic and checks for accepting the velocity. I've been asking myself if i really want to go the route of really disabling movement for the player when holding the action key.  if say for example the player wanted to dust the kid to sleep and requires 2-3 seconds of it holding the action key, I was thinking whether it would be easier and a better idea where if you pressed any movement keys while in action, it just cancels the action in progress. and still makes you move. 


Something I'm working on right now is to do a bit of clean up with my code. It's a bit of a mess and some refactoring could do me some good, and allow me to see clearly what's happening in my code. So I guess i'll do that first before fiddling with these two things again.  Thanks also on the offer on helping debugging stuff, I appreciate it! Are you on the discord server too?


Yeah! I totally remember the time i played the first diablo using a modern pc, damn it was so fast, it was virtually impossible to play. impossible to also do the item duplication trick haha~