Résumé de la séquence
This video presents «Asteroids», a simple game with the following rules:
- a vessel must avoid incoming asteroids,
- the vessel moves horizontally thanks to two buttons,
- lThe game difficulty is selected thanks to a UIPickerView,
- the number of avoided asteroids makes the final score of the player ; a name can be associated to a given score (retrieved thanks to a UITextField).
The game remembers the best five scores. The current difficulty is also fixed on a dedicated view and remains until it is changed.
The game will be implemented with Swift and Autolayout.
Keywords : UITextView, UITextViewdelegate, UITextField, UITextFieldDelegate, UITextInputTraits, UIPickerView, UIPickerViewDelegate, UIPickerViewDataSource, NSTimer, Autolayout, NSLayoutConstraint, Visual Format Language.
Accéder à la séquence
If the video does not appear in the frame, please use the link in the table on your right.
Useful links
Here are some references for those who want to get more information:
- Auto Layout Guide (Apple),
- Visual Format Language for Autolayout (Command Shift),
- UIButton Class Reference (Apple),
- UITextView Class reference (Apple),
- UITextViewDelegate Protocol (Apple),
- UITextField Class reference (Apple),
- UITextFieldDelegate Protocol (Apple),
- UITextInputTraits Protocol Reference (Apple),
- UIPickerView Class Reference (Apple),
- UIPickerViewDelegate Protocol (Apple),
- UIPickerViewDataSource Protocol (Apple).
- NSTimer Class Reference (Apple),
- UIInterpolatingMotionEffect, Class Reference (Apple),
- UIMotionEffectGroup, Class Reference (Apple),
- UIVisualEffectView Class Reference (Apple).


