please build sentence builder game in p5.js using this list of sentence models: 1. The…
- User
please build sentence builder game in p5.js using this list of sentence models: 1. The [building/place] is located on [Street Name]. 2. Turn [left/right] at the [building/place]. 3. Go straight for [number] blocks. 4. The [building/place] is next to the [another building/place]. 5. The [building/place] is across the street from the [another building/place]. 6. The [building/place] is at the corner of [Street 1] and [Street 2]. 7. The [building/place] is behind the [another building/place]. 8. The [building/place] is close to the [another building/place]. 9. Take the [bus/train] to [Street Name] and then walk [direction]. 10. Can you tell me how to get to the [building/place]?
- Assistant
In the code below, I've created a simple sentence builder game using p5.js framework. It uses the provided sentence models and some example data to replace the placeholders. When you click the canvas, a new sentence using the given sentence models will appear on the screen.
- User
please make this more fun by dragging words into place or something
- Assistant
- User
please build a program in javascript for codepen that plays a randomized robot sound with a the synthesis for 2 seconds
- Assistant
Here's a simple program using the Web Audio API to create a randomized robot sound using a synthesizer. You can copy and paste the code below into CodePen or any other online JavaScript editor:
HTML:
html