Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Core Structure #4

Open
39 of 57 tasks
SirAlabar opened this issue Nov 29, 2024 · 0 comments
Open
39 of 57 tasks

Core Structure #4

SirAlabar opened this issue Nov 29, 2024 · 0 comments
Assignees

Comments

@SirAlabar
Copy link
Owner

SirAlabar commented Nov 29, 2024

Core Structure - Makefile and Headers Setup

Makefile Requirements

  • Create basic Makefile structure
  • Add compilation flags (-Wall -Wextra -Werror)
  • Add rules:
    • $(NAME)
    • all
    • clean
    • fclean
    • re
    • bonus
  • Configure libft compilation
  • Add MiniLibX linking
  • Add Math library linking (-lm)
  • Configure proper header dependencies
  • Ensure no relink

Header Organization

  • Create main header (cub3d.h)
  • Add necessary include guards
  • Include external libraries:
    • stdio.h
    • stdlib.h
    • unistd.h
    • fcntl.h
    • math.h
    • MLX headers
  • Define constants:
    • Window dimensions
    • Texture paths
    • Key codes
    • Colors
    • Error messages
  • Create basic structures:
    • Player struct
    • Map struct
    • Ray struct
    • Window/MLX struct
    • Texture struct
    • Game state struct

Project Architecture

  • Create project directories:
    • src/
    • include/
    • lib/
    • assets/
    • maps/
  • Configure .gitignore
  • Add basic source files structure:
    • main.c
    • init.c
    • parser.c
    • render.c
    • events.c
    • utils.c

Documentation

  • Add header documentation
  • Add function prototypes
  • Add structure documentation
  • Add README.md with build instructions

Dependencies

  • Configure MinilibX
  • Set up libft
  • Check all required system libraries

Notes:

  • Follow 42 Norm style
  • Ensure proper memory management
  • Keep modularity in mind for future features
@SirAlabar SirAlabar added enhancement New feature or request help wanted Extra attention is needed setup core and removed enhancement New feature or request help wanted Extra attention is needed labels Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants