smartolz.blogg.se

How to rotate map in pharaoh game
How to rotate map in pharaoh game












It looks like you no longer need an explanation of how to rotate a game world, but in case anyone else stumbles on this thread, I'll go ahead and answer how the rotating world version could be done. You can tell the aesthetics I'm going for from it, though: It's just some basic drawing graphics on screen stuff. If anyone wants a look at the code I have so far, knock yourself out. I've been looking around in vain for a while for things that come close to explaining what I want to do here. If anyone has links to tutorials that explain at least part of this, I'd be grateful. How do I define a section of ocean a few screens wide in all directions and then spawn enemies there? And how do I rotate the view around the sub (including the enemy sprites) and then keep track of their position relative to the rotating camera? I can tackle that later, when I have this other stuff in place. I might actually just fake movement of the player boat by moving the enemy ships in a relative direction accordingly. I've decided the boat will just move at a fixed pace so all the turning is doing is changing the view of the world (which is what you see on screen). And I want my boat to be able to turn around slowly with the camera locked to the boat. But I want to spawn in ships randomly off screen and then have them move slowly across the game world. How do I rotate the game world around my boat and keep track of enemy ships I spawn? The game world itself is empty (it's just the blue ocean). You can dive (which just hides the boat) and fire torpedoes.

how to rotate map in pharaoh game

It's a WWII submarine simulation game where you have a top-down view of your sub. I am very new to this and not a good programmer in general (language comes much more naturally to me than maths) so I need your help.














How to rotate map in pharaoh game