Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

"Warped Space" - A Hybrid Space Shooter (Entry for Unity Student Awards 2012)

Discussion in 'Works In Progress - Archive' started by Code_Of_Honour, Jun 8, 2012.

  1. Code_Of_Honour

    Code_Of_Honour

    Joined:
    May 28, 2012
    Posts:
    293
    Warped Space: A space shooter with a twist(literally)!

    ATTENTION MODERATORS

    As I am not one of the Unity Awards Finalists (not a huge surprise :p), please change the title of this thread to this: "Warped Space" - A Hybrid Space Shooter (WIP Thread)



    ** Click here to play this super awesome game!!**

    This is what I've been working on for the last few months. I'm going to release it as an app on the apple/android app stores once I'm finished development, but for now, it's just in a WebPlayer. :D Give it a try, and let me know what you think, so I can continue to improve it!

    Now, let me describe how my game works:

    Warped Space is similar to any other 2D space shooter, such as Galaga, or Space Invaders, in that the player and enemies can only move on a 2D plane. However, in Warped Space, this plane has been "Warped" into 3 dimensions, kind of like how a 2D texture is mapped onto the surface of a 3D object. This way, the player can circle all the way around the outside of a cylinder, or any other 3D object. This allows for levels of varying complexity, from a typical cylinder, to a sphere, to a circular object with hills and valleys(not sure how else to describe this object :p). Confusing? It's a lot easier to understand when you're playing it :)

    In addition to this revolutionary new system(lol), there is a player customization system, where players can choose their weapons, spaceship type, and colour/special ability. There are currently 45 different player setups that can be chosen.

    **RECENT UPDATE**

    NEW GAME CONCEPTS

    -The "Star Map" (Level Selection Screen).


    CHANGES TO GAMEPLAY

    -Level is no longer "Survive until you are overwhelmed by enemy hordes" -type gameplay. Instead, you are given a time limit, and an amount of enemies to destroy. You must destroy at least the target number of enemies before the time runs out. At the same time, you must survive until the time runs out.

    -Level is now considered a tutorial level. As such, only one type of enemy (one of the easy types) is present in this level.

    -Enemy fire rate has been reduced by half. It is now possible to dodge in-between enemy fire bursts without getting hit, which was previously impossible.

    -Many minor health, stats, and GUI tweaks.


    NEW FEATURES

    -A new level selection screen, known as the "Star Map", is present. The Star Map allows you to choose which Warp Tunnel (level) you want to play. The longer the Warp Tunnel, the more time you have to complete it. Currently the Star Map is not very polished looking or pretty, but it works. NOTE** Clicking on the RED warp tunnel will load the (currently) only level in the game. CLICKING ON OTHER WARP TUNNELS WILL DO ABSOLUTELY NOTHING.

    -An explosion sound now plays when an enemy has been destroyed.

    -A win screen is has been added, and it appears if you manage to beat the level. If you do manage to beat it, let me know! It's definitely not super easy :p

    -If you fail to destroy enough enemies by the end of the alloted time, a planet (the one you are travelling to on the Warp Tunnel) will appear in your path, and cause the failure of the level.


    NEW VISUALS

    -The Level has had a HUGE visual makeover. Instead of 4 enemy spawners, now there are only two. The Warp Tunnel (Cylinder) that you move around on now has a visual presence, to make it easier for the player to understand the movement scheme. Stationary, background planets have been removed, as the player is moving through space at a rapid rate. Other visual elements that accentuate the feeling of movement through space have also been added.



    Here are some awesome screenshots:

    Screenshots

    Main Menu Screen(Animated with sound!)


    **NEW** Gameplay


    **NEW** Gameplay


    **NEW** Failure Screen


    **NEW** Win Screen


    **NEW** Star Map


    **NEW** 5 Seconds Before Failure


    Some Enemy types and colours:


    Some Player types and colours:




    Questions? Comments? Critiques? Let me know what you all think!
     
    Last edited: Sep 1, 2012
  2. lkdriver22

    lkdriver22

    Joined:
    Jun 8, 2012
    Posts:
    5
    Cool screens! I'm looking forward for the webplayer and then playing it, hope it works soon :) And i hope you will win the student award! ;)
    And nice idea with the cylinder!
     
  3. Torsh

    Torsh

    Joined:
    Sep 26, 2011
    Posts:
    553
    Looks interesting. It will be interesting to see how this game works.
     
  4. Code_Of_Honour

    Code_Of_Honour

    Joined:
    May 28, 2012
    Posts:
    293
    Bump...Working on AI. Customization system is fully integrated with the rest of the game now, WebPlayer also working, should have some sort of playable demo sometime later today.
     
  5. henry96

    henry96

    Joined:
    Sep 28, 2011
    Posts:
    582
    This looks pretty good!!! Looking forward to play demo on web! :)
     
  6. Code_Of_Honour

    Code_Of_Honour

    Joined:
    May 28, 2012
    Posts:
    293
    Finally finished the WebPlayer! It's not perfect...I'll be doing some more work on it after school today...but it works! I'm mainly looking for feedback on how the customization system flows, and how the actual gameplay feels. Please ignore any visual elements that suck(that stuff is coming next! :D ). Click here to play it!

    Here's a summary of the whole thing:

    Summary

    -Controls

    Customization System Controls
    -Left Arrow Key to select the next player configuration to the left;
    -Right Arrow Key to select the next player configuration to the right;
    -Up Arrow Key when you're happy with your choice in body type, weapon type, or colour type, and are ready to advance to the next type of customization;
    -Down Arrow Key to return to the previous type of customization;

    Game Controls
    -Left Arrow Key to move the player left around the cylinder-space;
    -Right Arrow Key to move the player right around the cylinder-space;
    -Space Bar to fire projectiles(depending on weapon type, you may have to press the button once each time to fire, or hold it down to fire)


    -Main Menu
    -Only "Start Game" is functional right now (except for "Homepage", for some reason that leads to www.realestate.com, lol);
    -GUI isn't pretty yet, so don't criticize it please :D;

    -Customization System(The super awesome part)
    -45 different possible combinations of body type, weapon type, and colour type
    -Cool "Camera-look-at" interface;
    -Integrates into Level One;
    -Weapon scripts not all finished yet (so some weapons will function the same as others in the Level);
    -When finished Customizing, the GUI popup for entering the level is off to the side, almost out of sight. If you're happy with your selection, press the top button to enter Level One :) ;

    -Level One
    -AI spawn in increased numbers over time
    -Awesome camera view
    -Full rotation around semi-invisible cylinder-space
    -Once Player is destroyed, you are re-directed to the Customization System(need win/loss screen still);

    -One type of AI(four more in the works)
    -Move forward, backward, left and right at random;
    -Lively and animated;
    -Shoot when moving left or right;
    -Do a ninja attack on the Player when close enough to the Player;
    -Doesn't go behind the player and out of sight
    -Each enemy has different strenghts, weaknesses, and amount of health points
    -Each type of weapon effects enemies differently;

    That pretty much sums it up. Let me know what you all think please!(Especially about the AI, the customization system, and the way the player can go around the cylinder) :)
     
    Last edited: Jun 12, 2012
  7. Code_Of_Honour

    Code_Of_Honour

    Joined:
    May 28, 2012
    Posts:
    293
    Working on making the game "look" better right now. Adding some art elements, music, and setting up the other 4 AI types. Should be finished everything sometime tomorrow.

    Any feedback?
     
  8. Code_Of_Honour

    Code_Of_Honour

    Joined:
    May 28, 2012
    Posts:
    293
    Main Menu is now completely finished. Making GUI stay in the center of the screen no matter what is painfully hard...Here's a screenshot from the Windows build on fullscreen. The WebPlayer build doesn't have quite as many planets visible...should fix that I guess, but still, it's finally starting to look awesome :D

     
  9. bigmisterb

    bigmisterb

    Joined:
    Nov 6, 2010
    Posts:
    4,221
    My only complaint thus far is the handling on the spacecraft. It is very hard to know what is in front of you and where the enemy bullets are. As far as i can tell it is like you are riding on a cylinder. The camera is on the outside so all sense of bearing is lost. There is no 3d control, just left and right. So if I wanted to shoot the guy who is shooting me, I have to be in his bullet trail. (which mind you I have no bearing on)
     
  10. Code_Of_Honour

    Code_Of_Honour

    Joined:
    May 28, 2012
    Posts:
    293
    Thanks for the feedback :D

    Yes, you are riding on a cylinder, that is intentional, as it is the main thing that separates it from a 2D space shooter. It's supposed to be a 2D shooter with a 3D environment. So the 2D controls are supposed to be that way. I see what you mean though, it's impossible to hit the enemy without getting hit yourself. I think I'll fix that by giving the enemy a decreased rate of fire, so you can "dodge and shoot" like in any other classic 2D space shooter (think Galaga).

    As for the camera, you are right, I originally had it attached to the player, and you could see a lot better, with a proper line of sight, but I changed it to make it a bit harder. I guess it just made it impossible to see, lol :D Will change camera back to the way I had it before :p

    Thanks for the feedback/criticism! Changes/updates coming soon!
     
  11. bigmisterb

    bigmisterb

    Joined:
    Nov 6, 2010
    Posts:
    4,221
    the shots themselves are on a flat plane. (so you fire 8 bullets in a spread and the fly off the cylinder, thus never hitting the target.) is this intentional? Seems like 99% of your bullets never even travel towards the enemy. (for that matter, it doesn't appear that the enemy is even on the same cylinder you are)
     
  12. Code_Of_Honour

    Code_Of_Honour

    Joined:
    May 28, 2012
    Posts:
    293
    Aha, forgot to give the same cylinder-snapping physics to the bullets. The bullets are supposed to snap to the cylinder like everything else...forgot to implement that. Thanks for noticing :)

    About the enemies not being on the same cylinder...hmm, why does is look that way to you? I can assure you that they most definitely are....is it the way they dance around when they are moving left/right? Please clarify :)
     
  13. lkdriver22

    lkdriver22

    Joined:
    Jun 8, 2012
    Posts:
    5
    With the new menu and the "moving" stars its now much better :) Realy cool!
     
  14. bigmisterb

    bigmisterb

    Joined:
    Nov 6, 2010
    Posts:
    4,221
    OK, I see that part now. I think its more that I have to hit them with 10 shots or so, and they feed out the same number of bullets as I do. (and there are like 10 of them on the screen shooting) makes it real hard to kill anything before they just overwhelm you.

    Course, I am old... lol

    The biggest part that got me is the ships that shoot in a spread, you can never hit anything because no bullets ever stayed straight. Very big disadvantage when all of theirs do.

    Next, make a small visual explosion where the bullet hits. As it sits they just disappear. That would help people recognize their efforts.
     
  15. Code_Of_Honour

    Code_Of_Honour

    Joined:
    May 28, 2012
    Posts:
    293
    Yes, I accidentally changed the WebPlayer's amount of enemies...I need to fix that. They're not supposed to overwhelm you, only wear you down bit by bit until you die :p Lol.

    I've currently got the spread sort of working...but not really. Still working on it :p

    More visual elements are in the works; gotta fix the bugs in the code first :D Lol @ "recognizing their efforts" :D
     
  16. bigmisterb

    bigmisterb

    Joined:
    Nov 6, 2010
    Posts:
    4,221
    As far as the bullets. I assume that you are using just direction and forward momentum. Perhaps you could add RotateAround (the center of the cylinder) in place of any horizontal movement.

    And enforce the radius from the cylinder center.
     
  17. Code_Of_Honour

    Code_Of_Honour

    Joined:
    May 28, 2012
    Posts:
    293
    Yes, that's what I'm doing. I've run into what appears to be a technical limitation though...maybe you could help? Here's what's wrong.

    I have 5 GameObjects as spawn positions for each of the 5 bullets from the spread weapon. Each has a different rotation on the z axis.
    I Instantiate 5 "bullets" at the position and rotation of the GameObjects. This creates a spread effect.

    Problem is, I have the GameObjects rotating towards the center of the cylinder on the Z axis. This effectively negates whatever Z rotation for spread that there was before, causing no spread.

    Hmm, I'll check out RotateAround. It's not what I'm using right now...but it just might work.

    **EDIT**
    I really don't have time to fix this right now. I've got to concentrate on polishing up the rest of the game itself and getting it ready for the awards, so I think I'll scrap the shotgun at this point and replace it with a guided-missile weapon. I'll fix it (eventually), but right now, I've got to concentrate on other things.
     
    Last edited: Jun 14, 2012
  18. bigmisterb

    bigmisterb

    Joined:
    Nov 6, 2010
    Posts:
    4,221
    Fairly easy:

    untested but you get the point.
    Code (csharp):
    1.  
    2. using UnityEngine;
    3. using System.Collections;
    4.  
    5. public class bullet : MonoBehaviour{
    6.    
    7.     private float moveSpeed = 0;
    8.     private float angularSpeed = 0;
    9.    
    10.     // use this to modify the angular speed to get good results
    11.     private float angularModifier = 10;
    12.    
    13.     public Init(Vector3 startPoint, Transform shooter, float speed, float angle){
    14.         transform.position = startPoint;
    15.         transform.rotation = shooter.rotation;
    16.         Vector3 offset = shooter.InverseTransformPoint(transform.rotation * transform.forward);
    17.         moveSpeed = offset.z;
    18.         angularSpeed = offset.x * angularModifier;
    19.     }
    20.    
    21.     void Update(){
    22.         lastPosition = transform.position; // use this for Raycasts to see if it hit something.
    23.         transform.postion += Vector3.forward * moveSpeed * Time.deltaTime;
    24.         transform.RotateAround(Vector3.zero, Vector3.forward, angularSpeed * Time.deltaTime);
    25.     }
    26. }
    27.  
     
  19. Code_Of_Honour

    Code_Of_Honour

    Joined:
    May 28, 2012
    Posts:
    293
    Final Day! Working hard on putting the final touches on this project...added some GUI to the customization system. Just need to tweak the AI, add some sound effects, and visual explosions now!
     
  20. Code_Of_Honour

    Code_Of_Honour

    Joined:
    May 28, 2012
    Posts:
    293
    Aaaand...Finished! It's finally finished!!! It's also 11:58 PM. Lol. I am tired. Been working on this all day. But it's finished! Can't believe I actually made it...

    Anyway, here are some new screenshots from the final build!











    I know that last picture isn't right, but I'm too tired to fix it right now lol.

    **Feels triumphant at having beaten the deadline**
     
  21. syauqy

    syauqy

    Joined:
    Jul 23, 2011
    Posts:
    3
    cool, looks promising, i think u should make this game more epic :D
     
  22. Code_Of_Honour

    Code_Of_Honour

    Joined:
    May 28, 2012
    Posts:
    293
    Why thank you :D Of course, I plan on adding more epic-ness before releasing it officially. :D
     
  23. Code_Of_Honour

    Code_Of_Honour

    Joined:
    May 28, 2012
    Posts:
    293
    Aaand I'm back. Took a short break from working on this project, but I'm back at it again :p Just finished with a huge update to the game. A lot of things have changed/been added, including some new visuals. See the changelog below, and try out the WebPlayer!

    WEBPLAYER - Here



    NEW GAME CONCEPTS

    -The "Star Map" (Level Selection Screen).


    CHANGES TO GAMEPLAY

    -Level is no longer "Survive until you are overwhelmed by enemy hordes" -type gameplay. Instead, you are given a time limit, and an amount of enemies to destroy. You must destroy at least the target number of enemies before the time runs out. At the same time, you must survive until the time runs out.

    -Level is now considered a tutorial level. As such, only one type of enemy (one of the easy types) is present in this level.

    -Enemy fire rate has been reduced by half. It is now possible to dodge in-between enemy fire bursts without getting hit, which was previously impossible.

    -Many minor health, stats, and GUI tweaks.


    NEW FEATURES

    -A new level selection screen, known as the "Star Map", is present. The Star Map allows you to choose which Warp Tunnel (level) you want to play. The longer the Warp Tunnel, the more time you have to complete it. Currently the Star Map is not very polished looking or pretty, but it works. NOTE** Clicking on the RED warp tunnel will load the (currently) only level in the game. CLICKING ON OTHER WARP TUNNELS WILL DO ABSOLUTELY NOTHING.

    -A win screen is has been added, and it appears if you manage to beat the level. If you do manage to beat it, let me know! It's definitely not super easy :p

    -If you fail to destroy enough enemies by the end of the alloted time, a planet (the one you are travelling to on the Warp Tunnel) will appear in your path, and cause the failure of the level.


    NEW VISUALS

    -The Level has had a HUGE visual makeover. Instead of 4 enemy spawners, now there are only two. The Warp Tunnel (Cylinder) that you move around on now has a visual presence, to make it easier for the player to understand the movement scheme. Stationary, background planets have been removed, as the player is moving through space at a rapid rate. Other visual elements that accentuate the feeling of movement through space have also been added.



    Again, please try it out and let me know what you think! Any/all feedback is very valuable and appreciated :D Thanks!


    **SCREENSHOTS**


    **NEW** Gameplay


    **NEW** Gameplay


    **NEW** Failure Screen


    **NEW** Win Screen


    **NEW** Star Map


    **NEW** 5 Seconds Before Failure
     
    Last edited: Sep 1, 2012
  24. Code_Of_Honour

    Code_Of_Honour

    Joined:
    May 28, 2012
    Posts:
    293
    Quick update on my progress: Although I haven't actually updated the WebPlayer yet, I have been working on the game a lot. It's just not quite ready for the WebPlayer yet. Anyway, I've made 3 types of power-ups (Health, Shield, and the classic Double-Shot), and made them appear sometimes when you destroy enemies. These powerups have made it significantly easier to beat the game; before it was nearly impossible. Currently I'm working on fixing the level selection system/Star Map (it looks really ugly in its current state) and adding new levels/enemies. Will update the WebPlayer, and this thread, when I've got those completed.
     
  25. Rofldude27

    Rofldude27

    Joined:
    Dec 31, 2012
    Posts:
    8
    Really well done and love the visuals 4/5 from me !
     
  26. Marrt

    Marrt

    Joined:
    Feb 7, 2012
    Posts:
    613
    I Love it!, i thought about this old classic while trying your game, do you know it?
    http://psxmedia.ign.com/media/reviews/image/nanotek.6_640w.jpg
    http://www.youtube.com/watch?v=Sps0rpX4ZCU

    things i noticed:
    -it took me some time to figure out how i can change my loadout selection since they looked like clickable buttons but where controlled through arrow keys, maybe you can give the active selection a tint and add something like these on the edge of the screen: //←↖↑↗→↘↓↙ (check if your script saves as UTF-8 if you are suing them)
    -why do so much guys implement arrow keys? WASD is standard for a good reason (there are at least 8 other buttons easily reachable from WASD), i would at least consider making both usable
    -the blaster sound was too loud compared to the rest of the audio (i used machine gun i think), check you volume setting if you are using 3D-sound if the source is on the same object as the listener, for your setup you could also use non 3D-sound on the blasters i guess

    -took forever to load (your server gave me 650kbit download rate)
    -most of the times music takes a huge part of the size
    --do you use compression settings? i claim that in most small games the sounds aren't that polished, so a compression quality loss would not destroy the experience
    --there is the possibility to stream music from a WWW download. That reduced my webplayer to ~2MB(i have no textures yet :D) while having access to a 50MB tracklist.

    so speed up things a little, add obstacles and different camera modes and this game will rock
     
  27. Kelde

    Kelde

    Joined:
    Feb 28, 2012
    Posts:
    629
    i know who's gonna win that thing! YOOOOUUUU!!!!
     
  28. Code_Of_Honour

    Code_Of_Honour

    Joined:
    May 28, 2012
    Posts:
    293
    Wow, thanks for the feedback Maart. I'm not currently working on this project; I took a break from it and started on another one. However I am planning on polishing it up sometime in the near future, and that information will be invaluable to me. Thanks!

    On another note, my inspiration actually came from a small minigame hidden inside some obscure old Xbox racing game. It wasn't nearly as polished or complex as that thing there. Thanks for that too, now I have another source of inspiration :D
     
  29. reefwirrax

    reefwirrax

    Joined:
    Sep 20, 2013
    Posts:
    137
    thread starter-check out the-play the game link-it leads to some crazy experiment, not space game. Thanks!