Quote from: Troff on April 08, 2020, 06:23:08 PM
Thanks, I was thinking of starting off with something very simple, like have max MSP send a few ASCII characters via the usb, like maybe rs232 or something. And have the Vectrex32 listen for the data then do something like display something on the Vectrex screen.
Figured I'd start there and work up.
Any ideas to a newcomer to Vectrex32 as to how to set up a program that monitors the USB port as if it was a rs232 comm port?
controls = WaitForFrame(JoystickNone, Controller2, JoystickNone)
while controls[1,3] = 0
controls = WaitForFrame(JoystickNone, Controller2, JoystickNone)
print "reading stdin"
str = fgetc(Stdin)
call clearscreen()
call TextSprite(str)
print "read "+str
endwhile
Quote from: jaymzjulian on April 08, 2020, 05:46:49 PM
My initial thought around realtime was to using the usb-serial connection from the pc to the vectrex (I've used https://projectgus.github.io/hairless-midiserial/ to do this before), though I'm not sure there is a way from gsbasic to do that right now - Bob should be able to answer that one.
Quote from: Troff on April 07, 2020, 10:00:37 PM
Does anyone know if it's possible to send data from max MSP to the Vectrex 32?
If so does anyone have any example code?
Thanks everyone!
Quote from: Vectrex32 on April 03, 2020, 12:13:59 PM
This is awesome! I'd love to see a video.
- Bob
' Params:
' dimensions - 2 or 3
' obj - the LinesSprite format object
' world_scale - scale of the world
' point - where to explode
' x_impulse - base impulse to hit object with on the x axis
' y_impulse - base impulse to hit object with on the y axis
' x_random - additional random impulse for x
' y_random - additional random impulse for y
' break_apart - true/false - do we break the vectors?
' get the object
rose_object = rose()
' prepare the object for exploding - just expanding variables here for clarity :)
world_scale = 40
x_impulse = 2.5
y_impulse = 5.0
x_random = 2.5
y_random = 5.0
rose_explosion = prepare_explosion(2, rose_object, world_scale, {0,-400}, {x_impulse, y_impulse}, {x_random, y_random}, 9.8, -400, false)
' put it on the screen
LinesSprite(rose_explosion.dest)
controls = WaitForFrame(JoystickNone, Controller1, JoystickNone)
while controls[1,3] = 0
call explode2d(rose_explosion)
' wait for next frame :)
controls = WaitForFrame(JoystickNone, Controller1, JoystickNone)
endwhile