new Food(p_x, p_y)
Parameters:
| Name | Type | Description |
|---|---|---|
p_x |
int | The x position of the item. |
p_y |
int | The y position of the item. |
Extends
Members
-
image :String
-
The image (a mini canvas) of the item.
Type:
- String
- Inherited From:
- Source:
-
size :String
-
The pixel size of an item. This value is equal for all items!
Type:
- String
- Inherited From:
- Source:
-
x :Number
-
The x-position of the item.
Type:
- Number
- Inherited From:
- Source:
-
y :Number
-
The y-position of the item.
Type:
- Number
- Inherited From:
- Source: