-
Notifications
You must be signed in to change notification settings - Fork 73
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
[feat]Construct a more complex setting with more balls, more cubes, and direct exit once the player loses or wins. #91
Open
chenzunh23
wants to merge
23
commits into
Yao-class-cpp-studio:main
Choose a base branch
from
chenzunh23:Resolve_conflicts
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
… of halting, and ball activities such as jumping, mass adjustments, etc.
…re cubes, and direct exit once the player loses or wins
chenzunh23
changed the title
Construct a more complex setting with more balls, more cubes, and direct exit once the player loses or wins.
[feat]Construct a more complex setting with more balls, more cubes, and direct exit once the player loses or wins.
Jan 18, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
A more difficult setting
This game involves 1 player ball, 3 enemy balls of different sizes and masses, 8 stationary cubes with infinite masses, changeable texture of balls and cubes in command line, and some basic keyboard extensions. There is more fun!
Changing Textures:
There are 7 textures of balls, namely blue1, blue2, white, orange, tile, grey, and Moon, based on the immutable assets of GameX. It would have been even funnier had there been more textures of planet surfaces! Simply type the names of these textures, and you can set the color of all four balls. To set the floor tiles, simply type 0-8. You can only set the colors of the basic playground and the starting block.
Keyboard Extensions:
In addition to AWSD, we have:
B: Enhanced by only allowing braking while the player is not jumping.
J: Jump on the surface of the blocks.
1:Add mass by 10% in the supply base(0,0,0).
0:Lower mass by 10% at will anywhere.
R:Return to the supply base at (0,0,0) and increase mass to 1.0f if the player ball has mass lower than 0.5f. This can be used to handle falls. But there are only 2 chances.
ESCAPE:Leave the program when it is not halted.
E:The player can choose to exit the program if its mass is higher than 2.0f. This is safer than a brutal escape.
H:Halt the game, enter a four-digit password, and return by entering again. This halt also provides an option to exit the game, which is more stable than a brutal escape. If you entered the wrong password three times, the game would automatically end.
T:Halt the player only. Return by pressing T again.
Winning or Losing:
Each time the player pushes off an enemy ball, the game removes that enemy ball.
If there is an enemy ball out of reach of the player ball, or the player ball has gone into an irreversible fall, the game destroys the player and declares failure.
The player wins if and only if it has pushed all enemy balls off the edge of the main block. Then the program will destroy the player, declare success and exit.
Known Issues: