Propositions de jeu à ajouter à coté du Space Invader #2
Answered
by
cyrilnapo
estebanstb
asked this question in
Q&A
-
Proposez moi des idées pour mon projet :Préférablement des idées pas trop compliquées. |
Beta Was this translation helpful? Give feedback.
Answered by
cyrilnapo
Dec 8, 2023
Replies: 2 comments
-
import {apple} from './main.js'; let score = 0; class Snake {
} export { Snake }; |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
estebanstb
-
Ajout d'une map responsive |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
import {apple} from './main.js';
import { RandomPositionX, RandomPositionY } from './apple.js';
let score = 0;
class Snake {
constructor(x, y, size) {
this.x = x;
this.y = y;
this.size = size;
this.segments = [{ x, y }];
}