"""Check collision detection in Player sprite.""" import json d = json.load(open('extracted/project.json', encoding='utf-8')) player = [t for t in d['targets'] if t['name'] == 'Player'][0] blocks = player.get('blocks', {}) print("=== PLAYER COLLISION BLOCKS ===") for bid, b in blocks.items(): op = b.get('opcode', '') if 'touch' in op.lower() or 'color' in op.lower(): inputs = b.get('inputs', {}) print(f"{op}: {str(inputs)[:150]}")