I've sent the images I generated and a follow up email with the batch file that I used with Image Magick.
(Image Magick has to be installed and added to your local paths for it to work)
All of the Minigames follow the same basic template:
################################################################################## # Config ################################################################################# minigame_countdown_speed:MEMORY["mgspeed"].value ################################################################################# # View Callback ################################################################################# on view do ################################################################################# # Reset The Minigame ################################################################################# if save.widgets["isdirty"].value = 0 MEMORY["iswin"].value:0 timer.value: 800 play_music["music_tense"] save.widgets["isdirty"].value:1 end ################################################################################# # Minigame Events ################################################################################# ################################################################################# # Run on Win ################################################################################# if MEMORY["iswin"].value if !MEMORY.r1.value MEMORY.r1.value:1 sfx["winsound"] end end ################################################################################# # Countdown The Timer ################################################################################# timer.value:timer.value-minigame_countdown_speed ################################################################################# # If win speed up timer ################################################################################# if MEMORY["iswin"].value timer.value:timer.value-minigame_countdown_speed*2 end ################################################################################# # TImer Text ################################################################################# if timer.value<300 timer.format:"Hurry Up!!!" else timer.format:"Game Time Remaining" end ################################################################################# # Out of time ################################################################################# if timer.value ! 0 go[card] elseif timer.value = 0 go[mg_parent] end end
All of the minigame ideas come from the contraption collections and the collision check from the decker documentation.
on sfx sname do if !home.widgets.nosound.value play[sname] end end on stop_music do play[0 "loop"] MEMORY["current_song"].text:"none" end on music_stop do stop_music[] end on play_music mname do if !home.widgets.nomusic.value play[mname "loop"] MEMORY["current_song"].text:mname else stop_music end end
Hey everyone,
I made DeckerWare - Eggbug party games and I wanted to talk about how I made some of the effects:
I wrote a small batch script that let me drop things on the .bat and turn them into wav files that were placed in C:/temp/
set OUTM=%~n1 set OUTALL=c:/temp/%OUTM%.wav ffmpeg.exe -i "%~1" "%OUTALL%"
I used this to find short loops for game music and the sound effects that I've found online/are from the GDC packs.
In the Decker Project I wrote some Deck Level functions for playing music and sounds. They check if on the home card if music/sounds are disabled before playing.
MEMORY:save.widgets # the MEMORY function is just shorthand for a card that I store widgets on. # I called the card 'save'.