Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Suggestion: Controls #11

Open
nevzheng opened this issue Feb 28, 2017 · 4 comments
Open

Suggestion: Controls #11

nevzheng opened this issue Feb 28, 2017 · 4 comments

Comments

@nevzheng
Copy link

move shooting to a multidirectional scheme so you can move and shoot in different directions.
Move the aim to WASD or mouse.
Have either 360 degree shooting based on mouse, our NSEW, + diagonals based on wasd

@evanbowman
Copy link
Owner

Anything beyond what I'm doing now would be an enormous investment of my time into drawing new animations, which is why the controls are the way the are. To give you an idea, this is how many keyframes there are for the player character as of right now:

https://github.com/evanbowman/blind-jump/blob/master/res/textures/gameObjects.png

Adding support for moving and shooting in different directions would require me to make many multiples of the current set of animations, I would need to rotate the top half of the player to shoot in a certain direction and have the legs go in a different direction, and still have the top and bottom halves match up correctly, which would involve drawing more animations.

@nevzheng
Copy link
Author

Cool! Never really thought about that

@evanbowman
Copy link
Owner

evanbowman commented Feb 28, 2017

Yeah and as a side note the reason most of the game's textures are in one file is that texture switches on the graphics card result in tons of cache misses, so it's faster to throw them into all one file (commonly called a texture atlas), and then draw a huge batch of stuff by selecting sub rectangles from the same texture. Like the 4 directional shooting, a lot of this stuff is the way it is for performance and complexity reasons.

@JBobda
Copy link

JBobda commented Aug 10, 2018

Maybe add a quick guide in the settings? I saw your game on YouTube and played it and I thought it was pretty good. Getting into C++ myself (moving from Java) and I think your game is something I want to strive towards.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants