same
Viewing post in UNDER A STAR CALLED SUN comments
hey! the hacks i used in this are:
- transparent sprites
- avatar by room
- dialog choices
- exit from dialog
i didn't use borksy this time but instead copied the hacks from sean's repo: https://github.com/seleb/bitsy-hacks
and used elkie's bitsy savior: https://aloelazoe.itch.io/bitsy-savior to patch them in. bitsy savior is great because you can update the game data of your game without having to copy the hacks again and again the way you would in the regular editor. and you get to test it in-browser too which is cool.
i added music with candle's tool: https://kool.tools/bitsy/tools/add-bitsy-audio/
and i also make art on aseprite on a 128x128 canvas first then convert it to rooms with max's tool pixsy. this makes the art making process a lot faster: https://ruin.itch.io/pixsy
feel free to download and look at the game files to see whats goin on in here too!
hey GlitchedGod!
this tool is a slightly more complex version that allows you to use different audio files for different rooms and such, and you can toggle looping as well... https://kool.tools/bitsy/tools/bitsymuse-ui/
but if you're using just one track in your game, the add bitsy audio tool (https://kool.tools/bitsy/tools/add-bitsy-audio/) is still what i'd recommend and I'm pretty sure it does make the audio loop!
either way, getting a basic understanding how audio works in html might be even more helpful:
- https://www.w3schools.com/html/html5_audio.asp
- https://www.w3schools.com/TAGS/tag_audio.asp
in the second link there you'll see that you can add attributes to a html tag including "loop" or "autoplay" etc.
in my code for Under a Star Called Sun here's how both those tags are implemented in the <body>:
<body onload='startExportedGame()'> <body onload='startExportedGame()'> <audio loop="loop" autoplay="autoplay"> <source src="music.wav"> </audio> <!-- GAME CANVAS --> <canvas id='game'></canvas> </body>i guess what you can do is make sure the loop attribute is in your <audio> tag? it's hard to know where the problem comes from without seeing your code so this is the extent of how i can help for now.