snake game for beginners
-
- Posts: 1
- Joined: May 27th, 2018, 11:44 am
snake game for beginners
At 11:09 of Beginner C++ Game Programming DirectX [Snake Game] Tutorial 14a why is the value of dimension 20 and width and height 10 each? Isn't width and height of the grid and dimension of the cell? So shouldn't grids be bigger than the cell?
Re: snake game for beginners
dont remember the tutorial but i assume dimension 20 means the cells are 20x20 pixels. height and width 10 means the board is 10 cells wide and 10 cells high. so 10x20 pixels wide and high
Re: snake game for beginners
Grid dimensions are in units of cell, cell dimensions in units of pixel. There is no constraint between cell size and grid size.
Chili