Human-written demonstration (OpenAssistant volunteers)· OpenAssistant (human-written)
OpenAssistant Conversations (oasst2)
Please give me the minimum code necessary to create a Phaser.js game within an HTML…
In OpenAssistant data, “assistant” turns were written by human volunteers as demonstrations. They are not model outputs.
- User
Please give me the minimum code necessary to create a Phaser.js game within an HTML document. It should be a window of at least 1024x1024 pixels.
- Assistant
Sure! Here is an example of how to draw a stick figure sprite using Phaser and JavaScript:
function preload() { // Preload any assets you need for your game here } function create() { var graphics = this.add.graphics({ lineStyle: { width: 2, color: 0x00ff00 } }); // Draw head graphics.fillCircle(512, 100, 40); graphics.strokeCircle(512, 100, 40); // Draw body graphics.lineBetween(512, 140, 512, 240); // Draw arms graphics.lineBetween(472, 180, 512, 140); graphics.lineBetween(552, 180, 512, 140); // Draw legs graphics.lineBetween(512, 240, 472, 320); graphics.lineBetween(512, 240, 552, 320); } function update() { // Use the update function to implement any game logic that needs to change over time } </script>
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Identical first prompt
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →