2025-03-26 09:05:12 +01:00
2025-03-26 10:17:43 +01:00
2025-03-26 10:43:07 +01:00
2025-03-26 09:05:12 +01:00
2025-03-26 10:10:36 +01:00
2025-03-26 10:10:36 +01:00

House Drawing Program

en fr

This program draws a simple house with a red square for the main wall, a blue triangle for the roof, colored rectangles for the windows, and a yellow circle for the sun using the MLV graphics library.

Features

  • Draws a red square as the main wall of the house.
  • Draws a blue triangle as the roof of the house.
  • Draws two colored rectangles as the windows of the house.
  • Draws a brown rectangle as the door of the house.
  • Draws a yellow circle as the sun.
  • Displays a message "Press ESC to quit" and waits for the user to press the ESC key to close the window.

Dependencies

  • GCC (GNU Compiler Collection)
  • MLV (Mini Library for Visualization)

Installation

Installing MLV on Ubuntu

  1. Update your package list and install the required packages:
    sudo apt-get update
    sudo apt-get install build-essential gcc make libmlv3-dev
    

Building the Program

  1. Clone the repository or download the source code.
  2. Navigate to the directory containing the Makefile and maison.c.
  3. Run the following command to build the program:
    make
    

This will compile maison.c and create an executable named maison.

Usage

  1. After building the program, run the executable:

    ./maison
    
  2. A window will open displaying the house and the sun. Press the ESC key to close the window.

Cleaning Up

To clean up the build files, run:

make clean

This will remove the object files and the executable.

License

This project is licensed under the GPLv3 License. For more details, see GPLv3 License.

Authors

Acknowledgments

  • Adrien Boussicault and Marc Zipstein for the MLV library.
  • ESIEE Paris for the course materials and guidance.
Description
Development project at school with the objective of making a functioning snake game using the MLV graphic lib
Readme 1.3 MiB
First release Latest
2025-06-02 07:14:10 +00:00
Languages
C 97.6%
Makefile 2.4%