A simple Game of Life implementation in Java
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

38 lignes
589 B

  1. package edu.stuy.goldfish;
  2. import java.awt.Color;
  3. public class Render {
  4. public Render (int width, int height) {
  5. }
  6. public Render () {
  7. this(100,100);
  8. }
  9. /**
  10. * Render a color to a position
  11. *
  12. * This should draw to a buffer, which should be
  13. * rendered with render()
  14. *
  15. * @arg x The x coordinate
  16. * @arg y The y coordinate
  17. * @arg c The color to draw
  18. */
  19. public void draw (int x, int y, Color c) {
  20. }
  21. /**
  22. * Renders the stored buffer to the screen.
  23. */
  24. public void render () {
  25. }
  26. }