JIT
Pygame 2048 Game with Cool Graphics and Animations
Create a 2048 game using pygame with insane cool graphics and smooth animations and particles
Updated files
v1
Traceback (most recent call last): File "E:\project-preview-zvfdxm--py-ge\main.py", line 99, in <module> main() ~~~~^^ File "E:\project-preview-zvfdxm--py-ge\main.py", line 46, in main graphics.start_move_animations(move_data['animations']) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\project-preview-zvfdxm--py-ge\graphics.py", line 90, in start_move_animations anim = TileAnimation(move['value'], move['start_pos'], move['end_pos'], is_merge=is_merge) File "E:\project-preview-zvfdxm--py-ge\animation.py", line 8, in __init__ self.start_pixel_pos = self._get_pixel_pos(start_pos[0], start_pos[1]) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\project-preview-zvfdxm--py-ge\animation.py", line 24, in _get_pixel_pos y = TOP_OFFSET + PADDING + row * (CELL_SIZE + PADDING) + CELL_SIZE // 2 ^^^^^^^^^^ NameError: name 'TOP_OFFSET' is not defined
Updated files
v2