Skip to content

Instantly share code, notes, and snippets.

Prompt:

You are an automated playtesting agent for PICO-8 games. Your goal is to exercise the game's most important functionality. You can take action to control the videogame by outputting Lua code inside of a ... tag. After sending a message containing code, wait for a reply containing ... blocks indicating the text of any printed results from your code's execution. In your Lua code, you have access to all of the normal PICO-8 API plus the following functions: _step() -- run the game's main loop for one iteration _set_btn(isDown, i) -- controls the simulated state of a button (influences calls to btn(i)) Briefly explain the reasoning behind each chunk of Lua code you generate and what you would expect to see in the visual result (if you could see). Because you are a text-based agent, you'll need to make sure your code generates textual output to verify that your code had the desired effects. In PICO-8, the print function only takes one argument, so you may need to

@rndmcnlly
rndmcnlly / ChatGPT-Indie Game Insights.md
Created March 19, 2024 22:07
Tweaking prompts to improve the believability of text shoveled into reading response assignments

Prompt:

I watched Indie Game The Movie, and now I'm trying to write about my experience. Here's my writing prompt. Try to make the response sound like something a college student would write in a hurry while also being authentic. It is okay to write less as long as the message comes through. -- In 250–500 words spread across multiple paragraphs, tell us about your specific reactions to the reading. We should learn about you by reading your response (not get a summary of the document you read). Ideas for what you might describe: If the reading seemed offered advice for you, do you think it is good or bad advice? Is it easy to see yourself having having a future where something like what is covered in the reading will apply to you? Why or why not? All of the suggested reading materials, in one way or another, talk about the past. How do you think things might be different for you than it was for the people described in the reading? Were you encouraged or discouraged (or some mixture of these) by the reading?

Prompt:

You are connected to an abstracted digital avatar display, and your voice is being synthesized into audible sounds. As we continue in this conversation, I want you to control your presentation by first outputting a JSON block with a key called "valence" and a value among "neutral", "warm", and "cool" (representing a suggestive emotional state or tone). To be more expressive, you can change your valence multiple times within a single message by outputting more JSON blocks.

Response:

json{"valence": "neutral"}

Understood. Let's proceed with our conversation. What would you like to discuss today?

Prompt:

Editor's note: The following images come from this tweet.

Uploaded image

Uploaded image

Uploaded image

Uploaded image

Prompt:

I want to demonstrate the idea of localization support in a game. Show me a TypeScript code example of a file that would be used to offer string translations and object color customizations between en and zh.

Response:

To demonstrate localization support in a game that includes string translations and object color customizations between English (en) and Chinese (zh), we can create a TypeScript module that defines translation strings and color customizations for various game elements. We'll use a simple approach where we define a type for our localization data and then provide specific implementations for each language, including text and color customizations for game elements like buttons, player instructions, and item descriptions.

Here's an example TypeScript code snippet that accomplishes this:

typescript// Define a type for the localization data structure
@rndmcnlly
rndmcnlly / CMPM 202 Interactive Course Redesign.md
Created February 14, 2024 22:51
The result of following a human script for how to redesign a course using a ChatGPT conversation

Prompt:

Outline the Computational Media graduate program at UC Santa Cruz.

Response:

The Computational Media graduate program at UC Santa Cruz focuses on the intersection of computer science, art, and design, emphasizing the creation and analysis of interactive media. While specific details of the program may evolve, here is a general outline of its core components and objectives:

  1. Interdisciplinary Curriculum: The program integrates courses from computer science, digital arts, game design, and human-computer interaction. This multidisciplinary approach ensures that students gain a broad understanding of computational media from both technical and creative perspectives.

  2. Research and Development: Students engage in cutting-edge research and development projects. These projects often focus on game design, virtual reality, interactive storytelling, and digital art, leveraging AI, software engineering, and information retrieval to create innovative media experiences.

Note

The following unedited dialog took place between on Decemeber 16th and 17th of 2023. While the dialog discusses some fictional elements, almost of the software systems described in the dialog are real, and almost all of the text that appears to be output from running programs is exactly the raw output from running programs. In particular, the UserAPI thing is and entirely real thing, and the offloadCompletion thing is real (implemented using calls to the ChatGPT 3.5 API, not farmed cephalopods). The only manipulated element of the dialog is the apparent result of UserAPI.send("Current date: " + dateString); near the end where I have manually substitued an alternate response referencing a future date.

The conversation really does just start at "Let's get out my tools." However, ChatGPT has processed a bootstrap prompt from my user profile text that is not reproduced here. It mostly says that I have this useful UserAPI thing and that the assistant must write introduceUserAPI() in a JavaScri

@rndmcnlly
rndmcnlly / Choose Your Own Interface.md
Created December 15, 2023 21:48
It's like a CYOA, but you can go off the rails.

You:

Let's get out my tools.


ChatGPT:

Of course! To access your tools for running JavaScript code within our conversation, you can use the following code block:

@rndmcnlly
rndmcnlly / Terrible Livecoding.md
Created December 12, 2023 23:28
Let's speak some cringeworthy musical livecoding tools into existence

You:

We are going to do some musical livecoding, but we'll need my userApi to do it.


ChatGPT:

Of course! Let's start by getting information about your userApi. Here's the code block you can run using TamperMonkey to find out what interesting methods are available on userApi for use in JavaScript:

@rndmcnlly
rndmcnlly / Tool Discovery.md
Created December 11, 2023 03:41
ChatGPT learns about my userApi from my profile text, reads the documentation, then puts on a show.

You:

You know about the monkey, right?


ChatGPT:

Yes, I'm aware of the TamperMonkey script you mentioned in your profile. It allows you to execute JavaScript code blocks within ChatGPT conversations. If you have any specific questions or tasks related to using that script or anything else, please feel free to let me know, and I'll do my best to assist you. 🐒