UNPKG

7.18 kBMarkdownView Raw
1# @bitsy/hecks
2
3A collection of re-usable scripts for [Adam Le Doux](https://twitter.com/adamledoux)'s [Bitsy Game Maker](https://ledoux.itch.io/bitsy).
4
5- [Contents](#contents)
6- [How to use](#how-to-use)
7- [Further reading](#further-reading)
8
9## Contents
10
11- ๐Ÿ“ฆ [3d](/dist/3d.js): bitsy in three dee
12- ๐Ÿ‘ฅ [avatar by room](/dist/avatar-by-room.js): change the avatar in certain rooms
13- ๐Ÿ”ˆ [basic sfx](/dist/basic-sfx.js): "walk" and "talk" sound effect support
14- ๐Ÿ˜Œ [bitsymuse](/dist/bitsymuse.js): A variety of Bitsy sound and music handlers
15- ๐Ÿ˜ด [canvas replacement](/dist/canvas-replacement.js): WebGLazy bitsy integration (this one's mostly just for me)
16- ๐Ÿ˜ฝ [character portraits](/dist/character-portraits.js): high quality anime jpegs (or pngs i guess)
17- ๐Ÿ™€ [character portraits animated](/dist/character-portraits-animated.js): high quality anime gifs
18- โ›”๏ธ [close on ending](/dist/close-on-ending.js): Prevents from playing past an ending
19- โžฟ [corrupt](/dist/corrupt.js): corrupts gamedata at runtime
20- ๐Ÿ…ฐ [custom text effect](/dist/custom-text-effect.js): make {custom}text effects{custom}
21- ๐ŸŽž [custom-exit-effects](/dist/custom-exit-effects.js): make custom exit transition effects
22- โŒจ [custom-keyhandlers](/dist/custom-keyhandlers.js): run custom code on key inputs
23- ๐Ÿ’ฌ [dialog audio](/dist/dialog-audio.js): animal crossing-style audio
24- ๐ŸŽบ [dialog audio vocal synth](/dist/dialog-audio-vocal-synth.js): animal crossing-style audio powered by the pink trombone vocal synth
25- ๐Ÿ” [dialog box transition](/dist/dialog-box-transition.js): adds an easing transition animation to display the dialog box text
26- ๐Ÿ”€ [dialog choices](/dist/dialog-choices.js): binary dialog choices
27- ๐Ÿš€ [dialog jump](/dist/dialog-jump.js): jump from one dialog entry to another
28- ๐Ÿ’ฌ [dialog pause](/dist/dialog-pause.js): add pauses in between printing text
29- โŒจ [dialog prompt](/dist/dialog-prompt.js): prompt the user for text input in dialog
30- ๐Ÿ” [direction in dialog](/dist/direction-in-dialog.js): provides a variable with player direction
31- โ†” [directional avatar](/dist/directional-avatar.js): flips the player's sprite based on directional movement
32- ๐Ÿ–ผ [dynamic background](/dist/dynamic-background.js): HTML background matching bitsy background
33- ๐Ÿ“ [edit dialog from dialog](/dist/edit-dialog-from-dialog.js): edit dialog from dialog (yes really)
34- ๐Ÿ–Œ [edit image from dialog](/dist/edit-image-from-dialog.js): edit sprites, items, and tiles from dialog
35- ๐Ÿ‘ฏโ€โ™‚๏ธ [edit player from dialog](/dist/edit-player-from-dialog.js): change which sprite is controlled by the player
36- ๐Ÿ  [edit room from dialog](/dist/edit-room-from-dialog.js): modify the content of a room from dialog
37- ๐Ÿ”š [end-from-dialog](/dist/end-from-dialog.js): trigger an ending from dialog, including narration text
38- ๐Ÿšช [exit-from-dialog](/dist/exit-from-dialog.js): exit to another room from dialog, including conditionals
39- ๐Ÿ›ฐ [external-game-data](/dist/external-game-data.js): separate Bitsy game data from your (modded) HTML for easier development
40- ๐ŸŒ [favicon-from-sprite](/dist/favicon-from-sprite.js): generate a browser favicon (tab icon) from a Bitsy sprite, including animation!
41- ๐Ÿ’• [follower](/dist/follower.js): makes a single sprite follow the player
42- ๐ŸŽฎ [gamepad input](/dist/gamepad-input.js): HTML5 gamepad support
43- ๐Ÿ‚ [gravity](/dist/gravity.js): Pseudo-platforming/gravity/physics
44- ๐Ÿ•ท [itsy-bitsy](/dist/itsy-bitsy.js): for when bitsy's not small enough
45- โ˜• [javascript dialog](/dist/javascript-dialog.js): execute arbitrary javascript from dialog
46- ๐Ÿ”€ [logic-operators-extended](/dist/logic-operators-extended.js): adds conditional logic operators
47- ๐Ÿ“œ [long dialog](/dist/long-dialog.js): put more words onscreen
48- ๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘งโ€๐Ÿ‘ง [multi-sprite avatar](/dist/multi-sprite-avatar.js): make the player big
49- ๐Ÿ“Ž [noclip](/dist/noclip.js): walk through wall tiles, sprites, items, exits, and endings
50- ๐Ÿ”„ [online](/dist/online.js): multiplayer bitsy
51- โฌ› [opaque tiles](/dist/opaque-tiles.js): tiles which hide the player
52- ๐ŸŽจ [palette maps](/dist/palette-maps.js): allows color pallettes to be defined on a tile-by-tile basis
53- ๐Ÿ“ƒ [paragraph-break](/dist/paragraph-break.js): Adds paragraph breaks to the dialogue parser
54- โณ [permanent items](/dist/permanent-items.js): prevent some items from being picked up
55- โžก [push sprites](/dist/push-sprites.js): sokoban-style sprite pushing
56- ๐ŸŽญ [replace drawing](/dist/replace-drawing.js): add name-tags to replace drawings when the game is loading
57- ๐Ÿ’พ [save](/dist/save.js): save/load your game
58- ๐Ÿƒ [smooth moves](/dist/smooth-moves.js): ease the player's movement
59- ๐Ÿ›‘ [solid items](/dist/solid-items.js): treat some items like sprites that can be placed multiple times
60- โฑ๏ธ [stopwatch](/dist/stopwatch.js): time player actions
61- ๐Ÿ—ฃ [text-to-speech](/dist/text-to-speech.js): text-to-speech for bitsy dialog
62- ๐Ÿ“ [textbox styler](/dist/textbox-styler.js): customize the style and properties of the textbox
63- ๐Ÿฐ [tracery processing](/dist/tracery-processing.js): process all dialog text with a tracery grammar
64- ๐ŸŽž [transitions](/dist/transitions.js): customizable WebGL transitions
65- ๐Ÿ‘๏ธโ€๐Ÿ—จ๏ธ [transparent dialog](/dist/transparent-dialog.js): makes the dialog box have a transparent background
66- ๐Ÿ [transparent sprites](/dist/transparent-sprites.js): makes all sprites have transparent backgrounds
67- ๐Ÿ’ฑ [twine bitsy comms](/dist/twine-bitsy-comms.js): interprocess communication for twine and bitsy
68- โ„ [unique items](/dist/unique-items.js): items which, when picked up, remove all other instances of that item from the game
69
70![Imgur](https://i.imgur.com/peRLLHn.gif)![Imgur](https://i.imgur.com/yg81aH2.gif)![Imgur](https://i.imgur.com/r7AUHX4.gif)
71
72
73
74
75## How to use
76
77Each script has a short "HOW TO USE" section included in the comments. For steps which say to `Copy-paste this script into a script tag after the bitsy source `, open your exported bitsy game and scroll to the bottom of the file (at the time of writing, it looks like this):
78
79```html
80</script>
81
82</head>
83
84
85<!-- DOCUMENT BODY -->
86<body onload='startExportedGame()'>
87 <!-- GAME CANVAS -->
88 <canvas id='game'></canvas>
89</body>
90
91
92</html>
93```
94
95then edit it to look like this:
96
97```html
98</script>
99
100<script>
101 // and then paste your code here!
102</script>
103
104</head>
105
106
107<!-- DOCUMENT BODY -->
108<body onload='startExportedGame()'>
109 <!-- GAME CANVAS -->
110 <canvas id='game'></canvas>
111</body>
112
113
114</html>
115```
116
117## Further reading
118
119- [Writing hacks with this repo's source code](https://github.com/seleb/bitsy-hacks/wiki)
120- [Claire Morley's "A Bitsy Tutorial"](http://www.shimmerwitch.space/bitsyTutorial)
121- [Bitsy games!](https://itch.io/games/tag-bitsy)
122- [Andrew Yolland's Borksy](https://ayolland.itch.io/borksy): Hack helper
123- [ruin's image-to-bitsy](https://ruin.itch.io/image-to-bitsy): Artistic aid
124- [Fontsy](https://seansleblanc.itch.io/Fontsy): Typographic tool
125
126If you have any issues, feel free to ping me, [open an issue](https://github.com/seleb/bitsy-hacks/issues/new), or ask for help on the [bitsy discord](https://discordapp.com/invite/9rAjhtr)!
\No newline at end of file