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