1 | # @bitsy/hecks
|
2 |
|
3 | A 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 |
|
77 | Each 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 |
|
95 | then 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 |
|
126 | If 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 |