Skip to content

Avilekhk/playgame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

playgame

Adventure game;Languages and Technologies Used: - JavaScript (core logic, DOM manipulation) - HTML & CSS (basic UI structure and styling) What I Learned:

Handling dynamic game state using objects and arrays Event handling with buttons and onclick functions Using Math.random() and conditional logic for game mechanics Manipulating DOM elements (innerText, innerHTML) to update game UI Working with functions and control flow (if/else, loops, ternary operators) How I Implemented It:

Created location objects containing button texts and corresponding functions for navigation Managed player and monster stats dynamically, including health, gold, and experience Developed battle mechanics including attacking, missing, and weapon durability Implemented random number generation for gameplay unpredictability Updated UI text and elements in response to game events and user actions This commit represents a functional interactive game prototype with core features and logic.

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors