Vai al contenuto

Challenge 2016-01

Basic Challenges

Write prgrams to:

  1. Count down from 10 seconds, displaying the time counting down
  2. Modify the countdown timer to play a sound with increasing pitch frequency as the timer reaches zero
  3. Add a visual display of some kind to show the countdown, perhaps an egg timer or decreasing bar or something fun
  4. Read an option from the user to select a GraphicsWindow background colour from a list.
  5. Consider the best way to make it easy for the user to change the colour, maybe by keys, mouse or buttons
  6. Move an ‘X’ in the TextWindow
  7. Load a GraphicsWindow layout of some shapes from a file, so the shapes can then be read and drawn as specified by the file.
    You will need to define the format for the data stored in the file, try to make it so that you can edit the file in notepad to define the layout as easily as possible

Graphics Challenges

Write prgrams to:

  1. Move an image smoothly with the arrow keys
  2. Move an image or shape with the mouse, try to make a ‘click and drag’ feature
  3. Add a feature to rotate a selected shape with the right mouse button down
  4. Finally you can check if the Shift or Control key is down to zoom or fade the shape
  5. Draw a dynamic picture of a moving river.
    Hint: try using a Timer or ‘game loop’ to move, rotate, zoom or change opacity of some wave type objects to give a flowing effect.
  6. Try making some other dynamic visual effects like fire, fog etc.

Physics Challenge

Write a program to calculate and draw a ball that bounces with gravity and gradually slows with each bounce.

Game Challenges

  1. Write a simple slalom skiing game.
  2. Write a card ‘snap’ game where random cards played in turn by each player.
    When 2 cards with the same face value are shown the player first to press their key wins the cards.
    The player that wins all the cards is the winner of the game.
    The cards can be images like below or ordinary palying cards.

Community Suggestion

  1. (By Zock77) Write a pathmapping program.
    If you want to do a hard one, you might try to use the A-star algorithm, or for something a little easier, the Breadth-first algorithm.
  2. (By Nonki) Make a calendar program with holidays 2016 in your country.

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *

Questo sito usa Akismet per ridurre lo spam. Scopri come i tuoi dati vengono elaborati.