Languages / Nyelvek: English | Magyar
Hi! This is your starter video game project where you can learn to code with help from Claude Code (an AI coding assistant).
Right now, the game shows a player character that you can move around using the arrow keys. But this is just the beginning - you can add enemies, power-ups, sounds, and so much more!
The best part? You don't need to know everything about coding. Claude Code will help you learn and build new features step by step.
To work on this game, you need to copy it from GitHub to your computer. Here's how:
Git is a tool that helps you download and manage code projects.
On Mac:
- Open "Terminal" (you can find it by pressing
Command + Spaceand typing "Terminal") - Type this command and press Enter:
git --version - If you don't have Git, your Mac will ask if you want to install it. Click "Install"!
On Windows:
- Go to https://git-scm.com/download/win
- Download the installer
- Run the installer and click "Next" for all the options (the defaults are fine!)
"Cloning" means making a copy of the game on your computer.
- Open your Terminal (Mac) or Command Prompt (Windows)
- Decide where you want to save your game. For example, you might want to save it in your Documents folder
- Type these commands one at a time:
cd Documents git clone https://github.com/evatapai/oopvideogame.git - This will create a new folder called
oopvideogameinside your Documents folder with all the game files!
Now you need a program to view and edit your code files. We'll use VS Code - it's free and very popular!
What is VS Code? VS Code (Visual Studio Code) is like a super-powered text editor made specifically for writing code. It helps you see your files, edit them, and shows your code in nice colors to make it easier to read.
How to Install VS Code:
- Go to https://code.visualstudio.com
- Click the big "Download" button
- Install it just like any other program
- Open VS Code after it's installed
Opening Your Game in VS Code:
- Open VS Code
- Click on "File" in the top menu
- Click "Open Folder..."
- Navigate to your Documents folder
- Select the
oopvideogamefolder and click "Open"
Now you can see all your game files in the left sidebar! You can click on any file to open it and see the code.
Let's get your game running! You'll need Node.js (a tool that runs JavaScript code).
- Go to https://nodejs.org
- Download the version that says "LTS" (Long Term Support)
- Install it just like any other program
Your game needs some extra tools to run. Let's install them:
- Open your Terminal (Mac) or Command Prompt (Windows)
- Go into your game folder:
cd Documents/oopvideogame - Install the packages:
This might take a minute or two. It's downloading all the tools your game needs!
npm install
- In the same Terminal/Command Prompt, type:
npm run dev - You should see a message like "Local: http://localhost:5173/"
- Open your web browser (Chrome, Safari, Firefox, etc.)
- Type this in the address bar:
localhost:5173 - Your game should appear! Try using the arrow keys or WASD to move the character around. Press the Space bar to attack!
To see your changes: After you make changes to the code with Claude's help, save the file and then refresh your browser (press F5 or Cmd+R on Mac / Ctrl+R on Windows). The game will update with your new changes!
To stop the game: Press Ctrl + C in your Terminal/Command Prompt
Claude Code is like having a coding teacher right there with you! It can help you:
- Add new features to your game
- Fix bugs (problems in your code)
- Explain how things work
- Answer your coding questions
- Go to https://docs.anthropic.com/en/docs/claude-code
- Follow the installation instructions for your computer
- You'll need to create an Anthropic account (it's free to try!)
Now let's use Claude Code to work on your game!
On Mac:
- Open Finder
- Go to your Documents folder
- Find the
oopvideogamefolder - Right-click (or Control + click) on the folder
- Hold down the
Optionkey and you'll see "Open in Terminal" - click it!
On Windows:
- Open File Explorer
- Go to your Documents folder
- Find the
oopvideogamefolder - Right-click on the folder
- Choose "Open in Terminal" or "Open Command Prompt here"
In your Terminal, type:
claude
Press Enter, and Claude Code will start! You can now type questions or ask Claude to help you add features to your game.
- "Can you help me add an enemy character to the game?"
- "How do I make my character jump?"
- "Can you add a score counter?"
- "Why isn't my game working?"
- "Can you explain what this code does?" (and then select some code)
If you'd rather speak to Claude than type, you can use Wispr Flow!
- Go to https://wisprflow.ai
- Click "Download for free" and install it for your computer (Mac or Windows) or iPhone
- Once installed, you can speak your questions and it will type them for you in Claude Code!
This is great if typing is hard, or if you want to explain your ideas by talking. Wispr Flow works in over 100 apps, including Claude Code!
If you get stuck:
- Ask Claude Code for help! That's what it's there for.
- Check if the game is running (did you do
npm run dev?) - Make sure you're in the right folder (use
pwdon Mac orcdon Windows to check where you are)
Remember: coding is all about trying things, making mistakes, and learning. Don't worry if something doesn't work the first time - that's how everyone learns to code!
Happy coding!
Ez egy kezdő videojáték projekt, ahol megtanulhatsz programozni a Claude Code (egy mesterséges intelligencia programozó asszisztens) segítségével.
A játékban jelenleg egy játékos karaktert es nehany ellenseget látsz. A jatekosod a nyílbillentyűkkel tudod mozgatni es a space-szel tudsz loni. De ez csak a kezdet - hozzáadhatsz meg tobb ellenséget, erősítéseket, hangokat, és még sok minden mást!
A legjobb az egészben? Nem kell mindent tudnod a programozásról. A Claude Code lépésről lépésre segít tanulni és új funkciókat építeni.
Ha elakadsz, semmi baj, ez teljesen normalis. Keresd meg a valaszt Google-ben, az AI-val, de vegso esetben en is segitek (Evi).
Ahhoz, hogy dolgozhass a játékon, át kell másolnod a GitHubról a saját számítógépedre. Így kell csinálni:
A Git egy program, ami segít letölteni és kezelni a kódprojekteket.
Mac-en:
- Nyisd meg a "Terminal" alkalmazást (megtalálod, ha megnyomod a
Command + Spacebillentyűket és beírod, hogy "Terminal") - Írd be ezt a parancsot és nyomj Enter-t:
git --version - Ha nincs Git a gépeden, a Mac megkérdezi, hogy szeretnéd-e telepíteni. Kattints a "Telepítés"-re!
Windows-on:
- Menj erre a weboldalra: https://git-scm.com/download/win
- Töltsd le a telepítőt
- Futtasd a telepítőt és kattints a "Következő"-re minden lépésnél (az alapbeállítások jók!)
A "klónozás" azt jelenti, hogy lemásolod a játékot a saját számítógépedre.
- Nyisd meg a Terminal-t (Mac) vagy a Parancssort (Windows)
- Döntsd el, hová szeretnéd menteni a játékot. Például mentheted a Dokumentumok mappába
- Írd be ezeket a parancsokat egyenként:
cd Documents git clone https://github.com/evatapai/oopvideogame.git - Ez létrehoz egy új mappát
oopvideogamenéven a Dokumentumok mappádban, benne az összes játékfájllal!
Most szükséged van egy programra, amivel megnézheted és szerkesztheted a kódfájljaidat. A VS Code-ot fogjuk használni - ingyenes és nagyon népszerű!
Mi az a VS Code? A VS Code (Visual Studio Code) olyan, mint egy szuper-erős szövegszerkesztő, ami kifejezetten kódírásra készült. Segít látni a fájljaidat, szerkeszteni őket, és szép színekkel mutatja a kódodat, hogy könnyebb legyen olvasni.
Hogyan telepítsd a VS Code-ot:
- Menj erre a weboldalra: https://code.visualstudio.com
- Kattints a nagy "Download" gombra
- Telepítsd, mint bármely más programot
- Nyisd meg a VS Code-ot, miután települt
A Játékod Megnyitása VS Code-ban:
- Nyisd meg a VS Code-ot
- Kattints a "File" menüre felül
- Kattints az "Open Folder..." opcióra
- Navigálj a Dokumentumok mappádba
- Válaszd ki az
oopvideogamemappát és kattints az "Open" gombra
Most láthatod az összes játékfájlodat a bal oldali sávban! Kattinthatsz bármelyik fájlra, hogy megnyisd és lásd a kódot.
Indítsuk el a játékot! Szükséged lesz a Node.js-re (egy program, ami futtatja a JavaScript kódot).
- Menj erre a weboldalra: https://nodejs.org
- Töltsd le azt a verziót, amelyiken "LTS" (Long Term Support) felirat van
- Telepítsd, mint bármely más programot
A játéknak szüksége van néhány extra eszközre, hogy működjön. Telepítsük őket:
- Nyisd meg a Terminal-t (Mac) vagy a Parancssort (Windows)
- Menj be a játék mappájába:
cd Documents/oopvideogame - Telepítsd a csomagokat:
Ez eltarthat egy-két percig. Letölti az összes eszközt, amire a játékodnak szüksége van!
npm install
- Ugyanabban a Terminal-ban/Parancssorban írd be:
npm run dev - Látnod kell egy üzenetet, mint például: "Local: http://localhost:5173/"
- Nyisd meg a webböngésződet (Chrome, Safari, Firefox, stb.)
- Írd be ezt a címsorba:
localhost:5173 - A játékodnak meg kell jelennie! Próbáld meg a nyílbillentyűkkel vagy a WASD billentyűkkel mozgatni a karaktert. Nyomd meg a Szóköz billentyűt a támadáshoz!
A változások megtekintéséhez: Miután Claude segítségével módosítottál a kódon, mentsd el a fájlt, majd frissítsd a böngésződet (nyomd meg az F5 gombot vagy Cmd+R Mac-en / Ctrl+R Windows-on). A játék frissül az új változtatásokkal!
A játék leállításához: Nyomd meg a Ctrl + C billentyűket a Terminal-ban/Parancssorban
A Claude Code olyan, mintha egy programozó tanár lenne veled! Segíthet neked:
- Új funkciókat hozzáadni a játékodhoz
- Hibákat javítani (problémákat a kódodban)
- Elmagyarázni, hogyan működnek a dolgok
- Válaszolni a programozási kérdéseidre
- Menj erre a weboldalra: https://docs.anthropic.com/en/docs/claude-code
- Kövesd a telepítési utasításokat a számítógépedhez
- Létre kell hoznod egy Anthropic fiókot (ingyen ki lehet próbálni!)
Most használjuk a Claude Code-ot a játékodon való munkához!
Mac-en:
- Nyisd meg a Finder-t
- Menj a Dokumentumok mappádba
- Keresd meg az
oopvideogamemappát - Jobb gombbal kattints (vagy Control + kattintás) a mappára
- Tartsd lenyomva az
Optionbillentyűt és megjelenik a "Megnyitás Terminalban" - kattints rá!
Windows-on:
- Nyisd meg a Fájlkezelőt
- Menj a Dokumentumok mappádba
- Keresd meg az
oopvideogamemappát - Jobb gombbal kattints a mappára
- Válaszd a "Megnyitás Terminalban" vagy "Parancssor megnyitása itt" opciót
A Terminalba írd be:
claude
Nyomj Enter-t, és a Claude Code elindul! Mostantól kérdezhetsz vagy kérheted Claude-ot, hogy segítsen funkciókat hozzáadni a játékodhoz.
- "Tudnál segíteni hozzáadni egy ellenség karaktert a játékhoz?"
- "Hogyan tudom a karakteremet ugratni?"
- "Tudnál hozzáadni egy pontszámláló-t?"
- "Miért nem működik a játékom?"
- "El tudnád magyarázni, mit csinál ez a kód?" (és aztán jelölj ki valamilyen kódot)
Ha inkább beszélnél Claude-hoz, mint gépelni, használhatod a Wispr Flow-t!
- Menj erre a weboldalra: https://wisprflow.ai
- Kattints a "Download for free" gombra és telepítsd a számítógépedre (Mac vagy Windows) vagy iPhone-ra
- Ha telepítve van, beszélhetsz a kérdéseidről és begépeli neked a Claude Code-ban!
Ez remek, ha a gépelés nehéz, vagy ha szeretnéd az ötleteidet beszélve elmagyarázni. A Wispr Flow több mint 100 alkalmazásban működik, beleértve a Claude Code-ot is!
Ha elakadtál:
- Kérdezd meg Claude Code-ot segítségért! Azért van ott!
- Ellenőrizd, hogy a játék fut-e (lefuttattad az
npm run devparancsot?) - Bizonyosodj meg róla, hogy a megfelelő mappában vagy (használd a
pwdparancsot Mac-en vagy acdparancsot Windows-on, hogy megnézd, hol vagy)
Ne feledd: a programozás arról szól, hogy kipróbálsz dolgokat, hibázol és tanulsz. Ne aggódj, ha valami nem működik elsőre - így tanul meg mindenki programozni!
Jó kódolást!