r/processing • • Jul 02 '25

Games built using AI and the Processing API

1 Upvotes

Built several games using Generative AI and the Processing API.

The AI handled most of the code and even generated the graphics, requiring only minor adjustments on my part. This showcased how GenAI can significantly accelerate creative development work.

Here they are:

https://codeguppy.com/code.html?t=asteroids

https://codeguppy.com/code.html?t=invaders

https://codeguppy.com/code.html?t=space_blaster

https://codeguppy.com/code.html?t=spring_leap

https://codeguppy.com/code.html?t=froggy

https://codeguppy.com/code.html?t=flappy_shark

https://codeguppy.com/code.html?t=underwater_maze


r/processing • • Dec 18 '22

Why is this an error? What did I actually do wrong?

Post image
2 Upvotes

r/processing • • May 07 '21

Please explain it like Im five

0 Upvotes

Ive spent two months watching and rewatching my lecture slides for this stupid coding class, and nothing makes sense. What the hell is a variable?? What do arrays do?? What is an interval??

So please can someone explain this hell like Im 5 because Im this close to dropping out due to stress and just taking an automatic fail


r/processing • • Jun 03 '25

What on Earth went wrong with Processing 4.4.4's UI?

Post image
6 Upvotes

So I just installed Processing 4.4.4 on my new Linux box, and there is something VERY wrong with the UI. It doesn't respect my window decoration settings AT ALL (See picture, Dolphin on the left, Processing on the right). The previous versions, on my other Linux box DO respect my window decoration settings, and look like all my other applications.

Why does the new Processing look like micro$oft™ windows™ on my Linux machine?

More importantly, how do I fix it?


r/processing • • Sep 29 '19

how long can you last? game i made in unity fallowing courses from udemy.com link in comments. runs in your web brouser

0 Upvotes

r/processing • • Jun 09 '23

How Do I Code Roles For GPT in Processing (Java)?

0 Upvotes

I'm working on a project where I want to create a chat-like application which is capable of conversation with ChatGPT via GPT API using HTTP requests. At the beginning, a user can choose the role that the ChatGPT will respond in.

Like, the Bourgeois role makes the chat respond with high self-esteem, yet when the interlocutor answers with intelligent words, the chat considers him an equal and communicates as usual.

But I have some troubles with coding the roles themselves.

Does anybody know a way to apply directly to the GPT, so it will know how to respond?

I also want to store the chat history of each role and the role info itself via JSON files.

Using programming languages other than Java are welcome.


r/processing • • Feb 20 '22

My first crayon code generative nft minted on openprocessing.org

Post image
0 Upvotes

r/processing • • May 30 '19

Has anyone here made pong using java in processing? If you have, would you be willing to post your code? It's for personal use.

4 Upvotes

I just really need to impress my girlfriend, I lied and said I knew how to code and that I made pong and now she wants to see. Hard to explain but it needs to be original.


r/processing • • Dec 17 '18

Collision Struggles

0 Upvotes

Hi. I have to finish my Schoolproject but ive got a problem. I want my character to be able to stand on a table ( so i do gravity = 0).... but it appears every time the same problem in the end of my program (void kollision)

"Cannot make a static reference to the non-static field Tisch.XPosition/Schueler.y/Tisch.YPosition

I would be very happy if anyone could give me some details why it isnt possible .. thanks a lot

final float gravity = 0.7; // Gravitation

boolean jumping = false;

float x_speed = 0;

float y_speed = 0;

//Objekte deklarieren

Schueler schueler1;

ArrayList<Tisch> tische = new ArrayList<Tisch>();

int TischlastTime = 0;

ArrayList<Aufgestuhlt> aufstuhlen = new ArrayList<Aufgestuhlt>();

int AufgestuhltlastTime = 0;

void setup(){

size(1024, 768); //, P2D //<-- Für Vollbildmodus

noCursor();

fill(255);

smooth();

//Objekte initialisieren

schueler1 = new Schueler(width/7, 330);

}

void draw(){

background(100);

create();

for(int i = tische.size()-1; i>= 0; i--){

Tisch tischx = tische.get(i);

tischx.entgegenkommen();

tischx.render();

if(tischx.XPosition>width){

tische.remove(i);

}

}

for(int i = aufstuhlen.size()-1; i>= 0; i--){

Aufgestuhlt gestuhltx = aufstuhlen.get(i);

gestuhltx.entgegenkommen();

if(gestuhltx.XPosition>width){

aufstuhlen.remove(i);

}

}

schueler1.display();

fill(0);

rect(0,740, 1024, 768);

}

void create(){

if((millis() - TischlastTime) > random(5000,20000)){

tische.add(new Tisch(1000,500,1,1));

TischlastTime = millis();

}

if((millis() - AufgestuhltlastTime) > random(10000,31000)){

aufstuhlen.add(new Aufgestuhlt(1000,500,1,1));

AufgestuhltlastTime = millis();

}

}

//Objekt-Prozeduren

//Plattform

//Tasteneingaben

void keyPressed(){

if(keyCode == CONTROL){

}

if(keyCode == LEFT){

}

if(keyCode == RIGHT){

}

if(keyCode == UP && !jumping){

y_speed = -21;

jumping = true;

}

if(keyCode == DOWN){

}

if(keyCode == 'X'){

}

}

class Schueler{

//Datenfelder

int x;

int y;

//Konstruktor

Schueler(int xpos, int ypos){

x = xpos;

y = ypos;

}

//Display-Prozedur

void display(){

fill(200,60,0);

rect(x,y,150,300);

noStroke();

y_speed += gravity; //Gravitation wird bestimmt

y += y_speed;

if (y >= height -330) { //Kollisionsabfrage mit dem Boden

y_speed *= 0; //Da es in diesem Moment nicht am Boden ist

jumping = false;

}

}

}

class Tisch{

//Datenfelder

float XPosition;

float YPosition;

float XSpeed;

float YSpeed;

//Konstruktor

Tisch(int x, int y, int xs, int ys){

XPosition = x;

YPosition = y;

XSpeed = xs;

YSpeed = ys;

}

//Entgegenkommen-Prozedur

void entgegenkommen(){

XPosition = XPosition - XSpeed;

render ();

}

//Tisch darstellen

void render() {

fill(130, 130, 130);

rect(XPosition, YPosition, 15, 400);

fill(130, 130, 130);

rect(XPosition + 210, YPosition, 15, 400);

fill(255, 255, 255);

rect(XPosition, YPosition, 225, 20); //Hier: Nur dieses Rechteck für Kolisionsabfrage!

}

}

class Aufgestuhlt extends Tisch{

//Konstruktor

Aufgestuhlt(int x, int y, int xs, int ys) {

//bezieht sich auf Variablen der Superklasse (Tisch)

super(x,y,xs,ys);

}

//gleiche Methoden bleiben erhalten (man muss nicts schrtieben)

//Bei Methoden, die von Vaterklasse abweichen, neu definieren

void render(){

fill(130, 130, 130);

rect(XPosition, YPosition, 15, 400);

fill(130, 130, 130);

rect(XPosition + 210, YPosition, 15, 400);

fill(255, 255, 255);

rect(XPosition, YPosition, 225, 20); //Hier: Nur dieses Rechteck für Kolisionsabfrage!

//AbHierStuhl

fill(180, 180, 180);

rect(XPosition + 45, YPosition - 150, 140,10);

rect(XPosition + 45, YPosition - 150, 10, 150);

rect(XPosition + 180, YPosition - 150, 10, 150);

rect(XPosition + 45, YPosition - 250, 145,100);

}

}

//PROBLEM!!!!

void kollision(){

if(width/7 == Tisch.XPosition && Schueler.y == Tisch.YPosition){

gravity = 0;

} else {

gravity = 0.7;

}

}

//if(width/7 ==Tisch.XPosition && Schueler.y < Tisch.YPosition){

// Gameover-Screen


r/processing • • Jan 20 '23

Help with ads integration in my processing videogame (https://mgdsstudio.itch.io/blue-beret). I think the ad is not working

0 Upvotes

r/processing • • Nov 28 '22

Beginner help request is there a point in using arrayLists over arrays since arrays length is not final in initialization on contrary to java ?

0 Upvotes

Title basically, if you don't understand I will try to reformulate in comments


r/processing • • Nov 09 '22

Need help!

0 Upvotes

Please, can anybody help me to learn processing from scratch?


r/processing • • Feb 11 '20

New Generative Audio Painting in Processing song Billie Ellish - Oscars 2020 Yesterday

Thumbnail
youtu.be
0 Upvotes

r/processing • • May 14 '21

Hi guys need HELP!!!!!

0 Upvotes

Hi can anyone tell me how to have two separate key pressed events in your code in processing.

Currently I have 2 seperate keypressed events.

I want the 2 keyPressed events to occur 1 at a time.

But at the moment they occur at the same time when a key is pressed.


r/processing • • Jan 01 '16

Help plz

0 Upvotes

Hello processing,

If some one could help that would be nice.

I am currently trying to make a program that does this but at random positions after a set number of turns.

[This is currently my try at creating it but.....] (http://www.openprocessing.org/sketch/285819)

as you can see its not doing what the original was.


r/processing • • Jan 19 '24

Beginner help request Need a help plss (ultra beginner)

Thumbnail
gallery
1 Upvotes

Hi, im stuck on the third exercise in the book Generative Design(2009)…Ive copied the code but still dont work…why? :(


r/processing • • Jul 17 '26

Tutorial why is the whole ide great but the debuggers so shit

1 Upvotes

like who thought it was just gonna be 1 long list ohh you have 100 variables good luck finding the one you need


r/processing • • Mar 04 '21

I made a car in processing. I need help as to how to make it follow my mouse. Does anyone know how to do this?

Post image
0 Upvotes

r/processing • • Dec 19 '19

A kid in my class who isn't the brightest at coding wanted me to make a Pong game based off of his idea. I want to surprise him when we get back from break. Which idea should I go with?

Post image
0 Upvotes

r/processing • • Sep 25 '19

Need some help im really new to coding

Post image
0 Upvotes

r/processing • • Sep 03 '24

How to export a processing file as a PDF ?

0 Upvotes

I wrote import processing.pdf*; at the beginning but I can't import this on Illustrator, does anybody know why ?

Thanks


r/processing • • Nov 30 '21

Problems with Strings

Post image
0 Upvotes

r/processing • • Jun 08 '14

Why is this all that gets displayed when I click Run?

Thumbnail
imgur.com
0 Upvotes

r/processing • • Jul 21 '22

Some quick questions

0 Upvotes

So I have this code and I want the circles to drop at different times but at the same speed, I want the circles to loop back to the top after they disappear from the bottom, and I also want to know how to change the speed of the circles... I know that's quite a bit but any sort of help is appreciated :)


r/processing • • Mar 27 '17

JUST MY ANIMATION - WITH CODE BUT NO TUTORIAL

Thumbnail
youtube.com
0 Upvotes