Author Topic: A top-down 2D StarWars game with zoom  (Read 853 times)

Galleon

  • Administrator
  • Hero Member
  • *****
  • Posts: 4672
  • QB Forever
    • Email
A top-down 2D StarWars game with zoom
« on: September 09, 2011, 06:34:19 AM »
A 'top-down 2D rotation engine' method is what I used for my Starwars game. As I never released it, I thought I would share what has been done so far. As it is, the game is still challenging, playable and finishable. I planned to add lasers to the tie fighters and Falcon but other things got the better of me. Still, this game is enjoyable for the challenge factor alone! Today I added some WAV file voice effects to make it more authentic. I hope you try it:
http://www.qb64.net/EscapeHoth.zip


--------------------------------------------------------------------------------------------------------------

Quote
Not working too well here for me using .942 on Ubuntu 10.04 - I see a window (changed it from fullscreen to the windowed style - I have a dual-head system with TwinView, and fullscreen spans both monitors - ugh); with a starfield and the ship, but I have no keyboard or mouse input - "w" doesn't accelerate the ship, and the mouse movement does nothing (rotation, based on the code comments). My x-window session is useless at that point, so I have to login to a separate virtual text console to kill the process.
If possible, can you work out where things go wrong?

Quote
Galleon, a bit rough around the edges, but I'll admit, it's challenging and fun. The music is distracting as well as zooming, but that makes the game more tricky. :) Trying for the 4th time....

EDIT: Yay! Reached the randenvous point! But, the game didn't end. I had to kill myself to exit the game. ESC button?
Well, I did say it wasn't finished. The zoom is extreme.
« Last Edit: September 15, 2011, 01:19:08 PM by Galleon »
Something old... Something new... Something borrowed... Something blue...

cr0sh

  • Full Member
  • ***
  • Posts: 149
  • QB64 rox the box!
    • phoenixgarage.org || crazy ideas, irrational projects
    • Email
Re: A top-down 2D StarWars game with zoom
« Reply #1 on: September 11, 2011, 09:27:58 PM »
Quote
Not working too well here for me using .942 on Ubuntu 10.04 - I see a window (changed it from fullscreen to the windowed style - I have a dual-head system with TwinView, and fullscreen spans both monitors - ugh); with a starfield and the ship, but I have no keyboard or mouse input - "w" doesn't accelerate the ship, and the mouse movement does nothing (rotation, based on the code comments). My x-window session is useless at that point, so I have to login to a separate virtual text console to kill the process.
If possible, can you work out where things go wrong?

I'll try to play around with it some more if I get some free-time to do so; I'll post to this thread on what I find out if/when I do...

:)

LeChuck

  • Hero Member
  • *****
  • Posts: 895
  • 18 * 37
Re: A top-down 2D StarWars game with zoom
« Reply #2 on: September 15, 2011, 02:39:59 AM »
Nice one.

It is quite enjoyable,

I really like the double layered starfield background. The zooming in that occurs when you get close to the asteroids actually make the game harder because you can't see whats coming ahead. I don't really need a zoom on my 46 inch screen. So I unremarked z = 0.5 to get rid of the zoom.
« Last Edit: September 15, 2011, 02:55:45 AM by LeChuck »
Two or more, use a FOR!

Aramis

  • Newbie
  • *
  • Posts: 27
Re: A top-down 2D StarWars game with zoom
« Reply #3 on: September 15, 2011, 11:21:39 AM »
I load it up, hit f5, and get great music, my cursor goes away, and a black blank window.

Using QB64 0.942 Mac on OSX 10.6 on a MacBook Pro.