American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

6 PM – Android Game Dev – Gamas

August 6 @ 6:00 pm - 7:00 pm

Today We Did
  1. We converted from View to SurfacedView.
  2. We made the snake and apple to be drawn once every 200 milliseconds.
Homework
  1. Move the snake according to direction attribute.
  2. Draw snake head image according to its direction. For example if direction == RIGHT, then you need to use the R.drawable.snake_green_head_32_r image.
  3. When the snake move UP and hit the edge, it needs to appear on the BOTTOM.
  4. When the snake move DOWN and hit the edge, it needs to appear on the TOP.
  5. For UP and BOTTOM edge behavior, you need rely on rowCount which you calculated in the onSizeChanged(..) method.
  6. When the snake move LEFT and hit the edge, it needs to appear on the RIGHT.
  7. Make sure you run your code for each of the 4 directions and confirm that they are working.

Details

Date:
August 6
Time:
6:00 pm - 7:00 pm