simon_says.lua: - Removed hardcoded button positions - Added get_buttons() function that calculates button size and position based on screen dimensions - Buttons now use 10% screen padding and scale to fill available width - 2x2 grid automatically scales with screen size tic_tac_toe.lua: - Replaced hardcoded CELL_SIZE with dynamic calculation - Added get_cell_size() to compute size based on screen width - Added get_grid_start_x/y() to center grid both horizontally and vertically - Grid now scales to fill available space while maintaining 3x3 layout - All cell positions updated to use dynamic functions Both games now work on any screen size and scale proportionally.
6.6 KiB
6.6 KiB