123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|341|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> JSE -> JSE ChatBot

Sun, 08 Oct 2023, 12:37
Jayenkai

JSE ChatBot


I've been doing a lot of back&forthing with the Chatbots this week, and have finally got some kind of half-assed chatbot working, thanks to Poe.com

It's got to the point where I can ask it for Pong...



Can you code a version of Pong?

Of course! I can help you code a version of Pong using the GotoJSE language. Here's an example code to get you started:


  --v



This code sets up the game screen, paddles, ball, and implements the game logic for moving the paddles, moving the ball, and checking for collisions. It also keeps track of the players' scores and displays them on the screen.
Feel free to modify the code to add more features or customize the game to your liking. Let me know if you have any questions!



It's not foolproof, of course.
It often tries to predefine arrays and such, but for the most part it "almost" works!!
..and Almost is ok, right!?!

You can Try out JSEChat here.
Let me know how you get on.

-=-=-
''Load, Next List!''
Sun, 08 Oct 2023, 12:58
spinal
Its a bit odd having the left controls move the right paddle and the right controls moe the left paddle

-=-=-
Check out my excellent homepage!
Sun, 08 Oct 2023, 13:06
Jayenkai
If you're playing in wasd/jkli mode it's the right way round.
If you're playing with a gamepad, it's also the right way round.

But, yeah, these are the kinds of annoying quirks you get when trying to write a single Gamepad() function to do everything!!!!

-=-=-
''Load, Next List!''