Difference between revisions of "Starfield"

From WiiBrew
Jump to navigation Jump to search
m (New video)
Line 38: Line 38:
 
|}
 
|}
  
<youtube>NlPg9S5ocHY</youtube> (kinda looks like the effect in the video)
+
<youtube>NlPg9S5ocHY</youtube>
  
 
== Comments ==
 
== Comments ==

Revision as of 22:26, 23 September 2011

StarField
General
Author(s)Owen
TypeDemo
Version1
LicenseGPL
Links
Download
Source
Peripherals
Wiimote1.svg

Starfield is a small app that was written to demonstrate the starfield effect that I use in Newo Shooter. I wrote this program for beginners who want to get into Wii homebrew. Uses GRRLIB. It is not a game. You can modify the included source to simulate things like warps, rain and various other flying effects.

How it works

Check the source. The C program basically draws some lines in 3d space inside a single GX block. Half the lines are a different colour and are moving slower than the other half. The lines move from the back of the box to the front (-1 to 1) and are placed back at -1 if they become greater than 1. Lines are better than dots because they provide a nice motion blur appearance. You can interact with effect by pressing the appropriate buttons. If you change the angle you can make it look like rain, heavy rain or a slow drizzle. You only need the void draw_stardust() function, the rest of the code is just there to for the demo purpose and is not needed.


Controls

The controls are on the screen

Wiimote.svg Action
Wiimote - Button / Wiimote + Button Nothing
Wiimote A Button Randomly switch the 2 colors
Wiimote B Button Increase the thickness of the lines
Wiimote D-Pad Change the effect angle in 3d
Wiimote 2 Button reduce the number of stars/lines drawn on screen
Wiimote 1 Button increase the number of stars/lines drawn on screen
Wiimote HOME Button Return

Comments

I love to hear your feedback, please leave your comments and experiences on the talkpage!