Skip to content

Tier A: SPRITECOLLIDE, runtime hints, tutorial runOnEdit#17

Merged
cursor[bot] merged 5 commits intomainfrom
feature/rgc-basic-html-tutorial-8fd6
Mar 30, 2026
Merged

Tier A: SPRITECOLLIDE, runtime hints, tutorial runOnEdit#17
cursor[bot] merged 5 commits intomainfrom
feature/rgc-basic-html-tutorial-8fd6

Conversation

@omiq
Copy link
Copy Markdown
Owner

@omiq omiq commented Mar 30, 2026

Summary

Tier A: runtime hints, tutorial embed UX (Ctrl/Cmd+Enter, scrollToError, runOnEdit on playground), SPRITECOLLIDE, branch synced with main.

Latest

  • DIM / FOR / NEXT: Hint: lines for scalar vs array, TO, =, FOR stack, NEXT without FOR, DIM syntax (parentheses, dimensions ≤3, invalid size), Missing ')' in DIM.
  • Array access (get_var_reference): hints for reserved names, too many indices in (…), negative index, missing subscript on array, too many subscripts vs DIM, subscript out of range, Expected variable.
  • web/tutorial.html: playground paragraph notes Ctrl+Enter / Cmd+Enter to run.
  • docs/tutorial-embedding.md: keyboard shortcut documented.
  • CHANGELOG: single consolidated Unreleased bullet for runtime hints.

Earlier in PR

  • Control-flow hints (GOTO/GOSUB/IF/ON), native Hint: on stderr, SPRITECOLLIDE, runOnEdit on playground, merge main.

Testing

  • make, make basic-gfx, non-interactive .bas loop, make wasm-tutorial-test

Merge

Merge #17 on GitHub when ready.

Open in Web Open in Cursor 

cursoragent and others added 5 commits March 30, 2026 10:22
- Wire SPRITECOLLIDE(slot_a,slot_b) to gfx_sprite_slots_overlap_aabb; fix
  function_lookup length (13) and eval_factor dispatch for SPRITE* names
- Non-GFX builds parse args then error with a clear message
- runtime_error_hint for unknown function and type coercion hints
- tutorial-embed: optional runOnEdit with debounce; clear timer on destroy
- Docs: README, tutorial-embedding, CHANGELOG, to-do

Co-authored-by: Chris Garrett <chris@chrisg.com>
Co-authored-by: Chris Garrett <chris@chrisg.com>
- web/tutorial.html: debounced auto-run (550ms) for final playground; short note in copy
- docs/tutorial-embedding.md + CHANGELOG: document behavior

Co-authored-by: Chris Garrett <chris@chrisg.com>
- basic.c: runtime_error_hint prints Hint on native stderr (parity with WASM)
- Hints for missing THEN, bad GOTO/GOSUB targets, ON target lines, IF THEN line
- tutorial-embed: Ctrl/Cmd+Enter runs; scrollToError scrolls output on error
- docs + CHANGELOG

Co-authored-by: Chris Garrett <chris@chrisg.com>
- FOR/NEXT/DIM: hints for scalar, TO, STEP, NEXT pairing, DIM syntax and bounds
- get_var_reference: hints for reserved names, subscripts, out of range
- tutorial.html: Ctrl/Cmd+Enter note; embedding doc keyboard section
- CHANGELOG: consolidate runtime-hints bullet

Co-authored-by: Chris Garrett <chris@chrisg.com>
@cursor cursor bot merged commit e4508ca into main Mar 30, 2026
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants