Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Version 1 (modified by landauf, 17 years ago) (diff)

Vertical Scroller

This is an archived page!
This page is very old and the content is not up to date.
Not everything (if any) which is written here will be in the final game!

Author

Michel Mueller

Ticket Description

here

Developer's Journal

here

Goals

  • Creation of an appropriate implementation to handle the vertical/horicontal - scroller gamemode. "Done"
  • Implement Playership- Animations. "Done"
  • Find well-balanced settings for camera view, movement speed and animations. "Done"
  • Implement a nice-looking interface that prevents the player with all the informations necessary. "Depends on what the user defines as 'nice-looking', but except that: Done ;-)"

Achievements

Playmode

  • to set the appropriate playmode for the spaceship (only the playmode "Horizontal" has been implemented already), just set the tag <playmode>Horizontal</playmode> to the SpaceShip that is mounted by the player inside the level-xml- file.
  • this handles basically the camera settings to begin with and also it sets up the tracknode as the center-point of the screen.

Player Movement

  • inside this playmode the player can move only relatively to the tracknode. the final movement is an addition of the tracknode movement (through parenting) and the player movement, which is implicated through the key events up, down, left and right.
  • the acceleration of the playermovement is currently simply fixed through the local variable "airCoeff" inside the movement- function of SpaceShip.
  • the maxspeed of the playermovement can be influenced through the character- values: engineSpeedBase, reactorOutput and engineEnergyShare. These Values are currently just fixed values that are being initialised to a standard value. changing those requires recompiling.
  • the borders of possible movement ("travelDistance") are restricted to the screen size that is visible in the top-down perspective. changing the resolution, camera distance or camera field of view will lead to a recalculation of this movement field.
  • also the movements can be restricted in its width by the xml- loadable variable "actionWidthPercentage" (to be loaded as a tag of SpaceShip). for example an actionWidthPercentage of 80 will restrict the player to 80 percent of the screen's width. the rest of the screen are used for the HUD- blendovers. tough less than 20percent space for the HUD will set the HUD- blendovers to a minimum width of 10 percent for each side of the screen, which means, that the player will be able to fly behind the HUD.

Camera Handling

  • the distance and field of view of the camera in top-down mode can be set by the xml-tags <cameraDistance> and <cameraFovy>. they have to be attached to the SpaceShips tough, since the camera has never been thought to be loadable by xml.
  • during the flight, the player can switch through the camera views by the number keys 1 to 6, while 6 is the standard- top down view. the handling of the camera settings and parenting had to be overwritten by the SpaceShip event handler, since the scroller- playmode requires a different approach, than the first-person mode for instance.

HUD

History

first ideas by nicolas, according to board discussion:
http://people.ee.ethz.ch/~nicolasc/HUD2.png
first achievements in showing the interface vertically:

some sketch, how i imagined the assembling of the huds (sizes not representative)
No image "interface1.2.jpg" attached to ~archive/VerticalScroller
current state:

Description

  • the hud has been programmed as a blendover on left / right screen side. right side: ammunition stats, left side: radar, player stats. stat bars are growing vertically and align themselves horicontally. this leads to a better use of the given space, that is rather vertical in nature. the ammunition bars align themselves from the right border and switch to a next line when reaching the left border of the blendover.
  • it resizes itsself according to the screen resolution and the actionWidthPercentage (see Player Movement). except some bugs the resizing works well.
  • each gui- element has its own logo. the logos have been designed by me, so they are under the licensed of orxonox.

Interface Logos

  • player stats:
electronicsshieldshealth
  • human weapons: (mostly extracted from the existing textures)
light blastermedium blasterheavy blasterswarm missiles
  • noxon weapons:
acid launcherspike thrower

Attachments (17)

Download all attachments as: .zip