Drop the adventure dialog workaround, and screenshot five more tests - #1036
Merged
Conversation
The NPCs no longer count as being talked to by default, so the level starts with no dialog up and the player free to walk. Both tests dismissed that dialog with "no" before they could do anything; they now assert that no dialog is in the way instead, which checks the fixed default rather than working around it. The talking test also ends with a screenshot of the scene once the NPC has agreed to leave. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M2jc7PVAvmMmirAQude2v1
The 3D adventure scene once the NPC has agreed to leave, the survival crafting inventory holding the log that was harvested, the card drawn in front of the deck, and the beat'em up enemy taking the hit. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M2jc7PVAvmMmirAQude2v1
Contributor
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.
Follow-up to #1034, on top of #1035 (
NPC.Selectedno longer defaults totrue).The point-and-click adventure no longer needs its workaround
Both of its tests used to dismiss a dialog with "no" before they could do anything: the player spawned overlapping two NPCs that counted as being talked to, so the level opened with the dialog up and the player frozen. With #1035 in, the level starts clean — verified:
dialog=false act=trueon the first frames.The workaround is gone from both tests. What replaces it is an assertion rather than nothing, so the fixed default is now covered:
That trims the walking test from 112 to 100 lines and the talking one from 78 to 70, and both got faster (the walking test went from 71 to 63 stepped frames).
One thing that did not change: the talking test still uses an NPC the player already stands next to, rather than walking across the level to a distant one. That is not left over from the bug — the player's bounding box is 310×510 in a 1280×720 level, so it overlaps NPCs from a long way off (it still touches one at 312px away). Reaching a "distant" NPC would be walking a handful of pixels, so clicking a neighbour is the honest version. The 3D adventure, whose objects are sensibly sized, does test the walk.
Screenshots on five more tests
Still one test out of the two in each game:
starting-point-and-click-adventurestarting-3d-point-and-click-adventurestarting-first-person-survival-craftingstarting-card-gamestarting-beatemupThat makes 15 games with a screenshot, out of 45.
All 10 tests of the five games pass. The screenshots are 9–17 KB each and cost a couple of seconds at most:
starting-3d-point-and-click-adventure's test measured 28.0s once, which looked alarming, but three further runs gave 11.5s, 14.0s and 18.6s against a ~11s baseline — that was a loaded machine, not the screenshot.🤖 Generated with Claude Code
https://claude.ai/code/session_01M2jc7PVAvmMmirAQude2v1
Generated by Claude Code