Ric k Posted December 9, 2022 Share Posted December 9, 2022 Guide Sophie around the puzzles and try to reach the exit while using special tiles to your advantage. The game includes crates, breakable tiles portals and many more obstacles you need to overcome to complete the maze. Play the game: https://www.medalgames.com/play/sophie-the-slug/ To add the game to your website, use the .zip file in the attachment or embed the game: <iframe src="https://www.joypadmedia.com/apps/html5/sophie-the-slug/" width="100%" height="100%" frameborder="0" allowfullscreen></iframe> web.zip Quote Link to comment Share on other sites More sharing options...
Oliver77 Posted December 10, 2022 Share Posted December 10, 2022 Nice game and concept! Ric k 1 Quote Link to comment Share on other sites More sharing options...
Oliver77 Posted December 10, 2022 Share Posted December 10, 2022 Which framework did you use ? Quote Link to comment Share on other sites More sharing options...
Ric k Posted December 10, 2022 Author Share Posted December 10, 2022 Thanks! It's made with some help of Phaser. Quote Link to comment Share on other sites More sharing options...
Oliver77 Posted December 20, 2022 Share Posted December 20, 2022 I took a look at your sourcecode. You didn't use arcade-physics. How did you manage the collision? Quote Link to comment Share on other sites More sharing options...
Ric k Posted December 20, 2022 Author Share Posted December 20, 2022 The movement happens using tweens. I use a grid to keep track of Sophie and all obstacles, when making a move I calculate the amount of empty spaces you can move through before you hit a wall. Sophie moves at 50ms per tile, so I change the tween duration depending on the amount of steps you take. Crates also use tweens for movement, where a delay is added so it only starts moving when Sophie reaches the crate. The system worked quite well at first, but it got a bit messy when adding those green buttons because you need to check for every step if the button is pressed. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.