B
Bryan Richardson
Hello all,
I'm trying to get a Rubygame example to zoom, and can't seem to do so.
Right now, I'm simply drawing a single pixel at the center of the
screen, then trying to zoom when I press the space bar. I have my event
queue set up right, because if I tell it to print something when the
space bar is pressed it works. Here's how I'm trying to zoom:
@screen.zoom_to(@screen.w / 2, @screen.h / 2) if event.key ==
Rubygame::K_SPACE
@screen.update
Anyone know why this isn't working? The pixel at the center of the
screen stays the same size...
I'm trying to get a Rubygame example to zoom, and can't seem to do so.
Right now, I'm simply drawing a single pixel at the center of the
screen, then trying to zoom when I press the space bar. I have my event
queue set up right, because if I tell it to print something when the
space bar is pressed it works. Here's how I'm trying to zoom:
@screen.zoom_to(@screen.w / 2, @screen.h / 2) if event.key ==
Rubygame::K_SPACE
@screen.update
Anyone know why this isn't working? The pixel at the center of the
screen stays the same size...