Assault on the xStar - Trench Run

A forum to share your demonstrations stacks, fun stacks, games, etc.
Post Reply
xAction
Posts: 285
Joined: Thu Sep 16, 2021 1:40 pm
Contact:

Assault on the xStar - Trench Run

Post by xAction »

Trench_Run_Simulation.oxtstack
(32.75 KiB) Downloaded 81 times
xStarAssault_v001.gif
xStarAssault_v001.gif (281.28 KiB) Viewed 1579 times
Got a little sidetracked and put this together. Maybe can be made faster using less or better timed iteration of the 'walls'
I'm sure there's a whole science to the old Star Wars vector Arcade game, that could improve this sort of thing. Actually reading the 2.5D code in the old make games book might be enlightening.

Anyway in 'browse' mode click the window to begin/end the simulation.
Move the mouse around to experience 3D-ishness

Tool will switch back to developer mode when simulation ends.
User avatar
OpenXTalkPaul
Posts: 1866
Joined: Sat Sep 11, 2021 4:19 pm
Contact:

Re: Assault on the xStar - Trench Run

Post by OpenXTalkPaul »

Cool.
I loved that StarWars Arcade game when I was an 80s Arcade Kid.
There was an official port SW Arcade to the original black & white Macintosh so it can be done on very limited hardware (Moto 68K clock speed was only 0.9MHz IIRC).
xAction
Posts: 285
Joined: Thu Sep 16, 2021 1:40 pm
Contact:

Re: Assault on the xStar - Trench Run

Post by xAction »

Perspective_03_13_2024.oxtStack
(17.7 KiB) Downloaded 53 times
PerspectiveTunnel03132024.gif
PerspectiveTunnel03132024.gif (232.75 KiB) Viewed 1551 times
This is something I started a month or two ago and abandoned.
But maybe it can be useful eventually.
Essentially:
  • a rectangle distorted to a vanishing point at the center of the card
  • Then offset that by some amount based on the mouse loc
Easy enough.
Then draw something inside the distorted rectangle, and make it look like it's moving toward us. wooo!
Rocket science, this is not, but fake it 'til you make it.

The left side of the 'tunnel' remains with the default distortion, I figured I needed a control in case I wrecked everything with my confabulations on the right side.

Ideally should be able to have some flat 2D vector graphics like a wall panel with some buttons on it, or so it looks, that can travel up the perspective distortion...array?

And of course duplicate the same kind of activity in a ceiling or floor scenario without all the 'tunnel' coming to pieces.

The "INIT PLEASE" button is probably redundant now that openCard and mouseDown trigger the init. Of course that mouseDown trigger would need to be removed for some game action.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests