Skip to content

Added image support#35

Open
spj2401Dev wants to merge 3 commits into
brianyu28:mainfrom
spj2401Dev:main
Open

Added image support#35
spj2401Dev wants to merge 3 commits into
brianyu28:mainfrom
spj2401Dev:main

Conversation

@spj2401Dev
Copy link
Copy Markdown

Hi,
For a game with friends, I wanted to extend the game a bit to be able to include pictures, to have a braughter catalogue of clues. Now you can specify an image source for each clue.

A clue with an image will now look something like this

image

I appreciate your efforts on this project, and perhaps this is something worth adding to the project.

@sophxreg-cmd
Copy link
Copy Markdown

hey! this looks awesome. would it be possible to add images to the solution too?

@spj2401Dev
Copy link
Copy Markdown
Author

How about some sort of "game bundle" which is a zip file which includes the .json and the images. Then I can load them either externally or load them from this game bundel. Let me go implement that real quick

@spj2401Dev
Copy link
Copy Markdown
Author

So just pushed changes which now allow you to create as mentioned "Game Bundels". Basically you put your game.json and a images folder into a zip archive and upload. In your game.json you can access files in that Game Bundle via the $ operator. So you can do $images/Picture1.jpg.
I added it to my fork and added it to this PR, but you will probably need to grab this off my fork since this project seems pretty dead.

@sophxreg-cmd
Copy link
Copy Markdown

thank you!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants