r/Cplusplus • • 3d ago

Question Raylib help

I can’t add images in raylib even tho I’ve tried everything I’m a beginner and my teacher told us to make a game and I want to add music and some pictures. Please help

0 Upvotes

3 comments sorted by

•

u/AutoModerator 3d ago

Thank you for your contribution to the C++ community!

As you're asking a question or seeking homework help, we would like to remind you of Rule 3 - Good Faith Help Requests & Homework.

  • When posting a question or homework help request, you must explain your good faith efforts to resolve the problem or complete the assignment on your own. Low-effort questions will be removed.
  • Members of this subreddit are happy to help give you a nudge in the right direction. However, we will not do your homework for you, make apps for you, etc.
  • Homework help posts must be flaired with Homework.

~ CPlusPlus Moderation Team


I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/buzzon 3d ago

What have you tried so far? Show us your code and the error message

1

u/Discordbothost 1d ago

Try one PNG first. Before calling LoadTexture(path), print GetWorkingDirectory() and FileExists(path). If the file check fails, compare the game's working folder with where you put the PNG. Call LoadTexture after InitWindow().