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.

36 lignes
561 B

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