This is the part of the code i've been having trouble with... It prints a string but it runs off the left side when it becomes larger. I don't know where I'm going wrong with this. The cursor can stay between two strings 's' and 's2' which are divided up in an Arraylist full of characters typed.
I thought this wouldn't be too difficult considering Processing PApplet extends applet. Maybe I'm grossly overlooking something, but this has proved to be very very difficult.
After trying to run the applet directly, I started with trying to draft all the objects into objects PApplet likes to work with.
I ran into some pitfalls concerning the way things were calculated. Sprites needed to be Shapes but had to be images too...
^I need a way to translate their sprites, and preform the same manipulations;
Realizing that what a disaster manually converting things was I thought of using PApplet as a wrapper.
my high hope was synchronizing the applet with a PApplet, allow applet to do display calculations and return a pixel array and the PApplet to send control input.
This method I hoped could be a way to convert any applet not just the one I was working on.
Here's where I came to realizing that I have no real idea how to sync and Applet with a PApplet. I have experience using locks and semaphores, but thats all in C/C++.
I think communication between threads can be established with pipes, how to implement that between a PApplet and an Applet is still to be determined. Anyone with experience with this would be a great help.
I'm really looking for any way possible to translate or run a Applet in a processing PApplet environment.