Gabryelf / Gabryelf/StartCours
Создание первых классов в проекте.
- Dominant language
- HTML
- Stars
- 0
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
Загрузка и отрисовка Image на Canvas
---
## Загрузка изображений на канвас.
- [x] Создать файл `Hero.js` и перенести логику отрисовки персонажа туда.
- [x] Создайте класс `Hero` с `constructor()` и методом `init()`.
- [x] Реализуйте в классе героя загрузку изображения которую перенесли ранее.
- [x] В скрипте `game.js` переделайте константу GAME в класс Game.
- [x] Реализуйте запуск создания персонажа в `Game` в виде экземпляра класса `Hero`.
- [x] Протестируйте на работоспособность функции работающие ранее!
- [x] Залить изменения на git hub и скинуть ссылку на репозиторий!
---
---
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with Hero.js and game.js, where the issue says the character rendering and GAME logic were moved into classes. Review the existing canvas image-loading behavior and verify that Game creates a Hero instance. Done means the previously working image rendering still works after the class conversion; no specific test file is named.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html, javascript
- Domain
- frontend
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100