A core loop should be as simple or complex as it needs to be in order to achieve what you're trying to do. I would say it tends to be more on the simple side of things though. I guess it depends on what type of thing you're making.
I break it down in to objectives or moments, that are essentially just primary/secondary loops etc and how they interact with each other. I sometimes draw it out to help see how it all fits together, kind of like a Frankenstein's flowchart.
Once I've got an idea about how each of these loops is going to work with each other I just make notes on each thing to try and keep at least some sense of organisation then start trying to implement them one by one until I've got something that resembles what I'm going for.
EG say I'm making an FPS. My primary loop is probably going to be running around shooting stuff. On a second to second basis that's what you're going to be doing the most of.
For this I can break it down into its individual elements. Movement, shooting, basic enemies to test if nothing else, health etc.
Now this on its own may not be especially engaging, so my next thought is how do I add complexity or variation to this, while retaining that core loop. What can I do to make this more interesting?
For an FPS this could be resource management, ammo, abilities on a cooldown, whatever it may be. It's something the player has to think about and take into account while still doing the core shooting, and there's your secondary loop. For this I'd try to break it down into the individual components - the actual ammo pickup, adding it to a count, UI etc.
Next it could be how it fits into a level (Tertiary loop.) Is it an arena shooter? Traditional level based or whatever. Setting an completing an over-arching (but not ultimate) goal - hour to hour gameplay for what the other stuff is doing - you get the idea.
Some of these loops will overlap with each other, some will be dependent on other loops or systems. You can break it down as much as you want or feel you need to. It's just a method of managing what you're trying to do to make it as easy to visualise and complete as possible.
To me anyway, I'd be interested in other peoples thoughts.
It sounds like you've not defined a way for it to know if it's facing a specific direction.
A quick way of fixing it would be to flip your sprite based on its current x velocity.
A core loop should be as simple or complex as it needs to be in order to achieve what you're trying to do. I would say it tends to be more on the simple side of things though. I guess it depends on what type of thing you're making.
I break it down in to objectives or moments, that are essentially just primary/secondary loops etc and how they interact with each other. I sometimes draw it out to help see how it all fits together, kind of like a Frankenstein's flowchart.
Once I've got an idea about how each of these loops is going to work with each other I just make notes on each thing to try and keep at least some sense of organisation then start trying to implement them one by one until I've got something that resembles what I'm going for.
EG say I'm making an FPS. My primary loop is probably going to be running around shooting stuff. On a second to second basis that's what you're going to be doing the most of.
For this I can break it down into its individual elements. Movement, shooting, basic enemies to test if nothing else, health etc.
Now this on its own may not be especially engaging, so my next thought is how do I add complexity or variation to this, while retaining that core loop. What can I do to make this more interesting?
For an FPS this could be resource management, ammo, abilities on a cooldown, whatever it may be. It's something the player has to think about and take into account while still doing the core shooting, and there's your secondary loop. For this I'd try to break it down into the individual components - the actual ammo pickup, adding it to a count, UI etc.
Next it could be how it fits into a level (Tertiary loop.) Is it an arena shooter? Traditional level based or whatever. Setting an completing an over-arching (but not ultimate) goal - hour to hour gameplay for what the other stuff is doing - you get the idea.
Some of these loops will overlap with each other, some will be dependent on other loops or systems. You can break it down as much as you want or feel you need to. It's just a method of managing what you're trying to do to make it as easy to visualise and complete as possible.
To me anyway, I'd be interested in other peoples thoughts.
That's super interesting to hear. I assumed it was an industry standard rather than localised in the indie space.