... | @@ -118,8 +118,8 @@ V 2D grafike sa často používajú tzv. sprites [(wiki link)](https://en.wikipe |
... | @@ -118,8 +118,8 @@ V 2D grafike sa často používajú tzv. sprites [(wiki link)](https://en.wikipe |
|
|
|
|
|
```csharp
|
|
```csharp
|
|
Animation animation = new Animation("resources/Cauldron.png", 64, 100);
|
|
Animation animation = new Animation("resources/Cauldron.png", 64, 100);
|
|
Cauldron.SetAnimation(animation); //set animation for Cauldron
|
|
cauldron.SetAnimation(animation); //set animation for Cauldron
|
|
Cauldron.SetPosition(100, 100); //set position of the Cauldron in the game world
|
|
cauldron.SetPosition(100, 100); //set position of the Cauldron in the game world
|
|
```
|
|
```
|
|
|
|
|
|
Ak teraz spustíte program, stále sa nič nestane. Je potrebné ešte svetu povedať, že nejaký kotlík existuje:
|
|
Ak teraz spustíte program, stále sa nič nestane. Je potrebné ešte svetu povedať, že nejaký kotlík existuje:
|
... | | ... | |