feat: update book for DragonRuby v7 - #38
Merged
Merged
Conversation
Modernizes all 12 chapters to match what readers see when they unzip DragonRuby v7.x: - Replaces chapter_01/01_default with the actual v7.1 hello world (uses module Main, size_px, anchor_x/anchor_y, Kernel.tick_count). - Rewrites the Chapter 1 walkthrough to match. - Converts every positional array primitive ([x, y, w, h, path], [x, y, text, size, align]) to hash form across chapters 1-12. - Replaces size_enum with size_px using the docs' formula (size_px = 22 + 2 * size_enum). - Replaces alignment_enum / vertical_alignment_enum with anchor_x / anchor_y. - Switches args.state.tick_count to Kernel.tick_count. - Rework Chapter 3's "switching to hashes" arc into "a closer look at hashes" + "refactoring the player into a hash" since fireballs are now hashes from the start. - Introduces module Main as a refactor step in Chapter 11; wrap the refactor, title, and release samples (chapters 11-12) in it. - Updates mdbook to latest version. Lots of find and replace. But I did manually test all changed code examples with DR v7.1, so hoping this is all good!
This file contains hidden or 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
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.
Modernizes all 12 chapters to match what readers see when they unzip
DragonRuby v7.x:
(uses module Main, size_px, anchor_x/anchor_y, Kernel.tick_count).
[x, y, text, size, align]) to hash form across chapters 1-12.
(size_px = 22 + 2 * size_enum).
anchor_y.
at hashes" + "refactoring the player into a hash" since fireballs
are now hashes from the start.
refactor, title, and release samples (chapters 11-12) in it.
Lots of find and replace. But I did manually test all changed code
examples with DR v7.1, so hoping this is all good!