Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: flag to adjust speed or difficulty #35

Open
daitangio opened this issue Aug 29, 2021 · 2 comments
Open

Feature: flag to adjust speed or difficulty #35

daitangio opened this issue Aug 29, 2021 · 2 comments

Comments

@daitangio
Copy link

daitangio commented Aug 29, 2021

The game is great!
But my daughter is too young and the game too fast.
I'd like to add an option to adjust speed.
Where should should I start looking for?

@rapiz1
Copy link
Owner

rapiz1 commented Aug 31, 2021 via email

@daitangio
Copy link
Author

daitangio commented Sep 5, 2021

Hi!
I was unable to find something related to "speed" inside gameLoop. I tried to put some unix usleep call but it slowdown entirely the SDL library and it is bad (so I reverted it).
I have noticed there is a snake-slowdown effect and it seems related to updateBuffDuration (see player.h buffs variable inside Snake struct).
Some advices to slow down te entire game (enemies, snake and so on...)?

In the meantime I have increased "herosSetting" which drives the number of heros which appears...
https://github.com/daitangio/DungeonRush/tree/feature/speed-ajust
I am still working on it anyway

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

No branches or pull requests

2 participants