Skip to content

Shriram2005/Doraemon-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Doraemon 3D Interactive World

A fully interactive 3D website featuring Doraemon as the main character in a realistic recreation of Nobita's house. Built with Three.js and modern web technologies.

Doraemon 3D World

Features

🎮 Interactive Controls

  • Movement: WASD keys for directional movement
  • Actions: Space to jump, Shift to run
  • Camera: Mouse movement for free-look camera control
  • View Toggle: V key to switch between 1st and 3rd person views
  • Pause: Esc/Tab to open pause menu
  • Day/Night: N key to toggle between day and night modes

🏠 Realistic Environment

  • Nobita's House: Detailed interior with multiple rooms
    • Living room with sofa, TV, and coffee table
    • Nobita's bedroom with bed, desk, and chair
    • Kitchen with appliances and counter
  • Garden: Beautiful outdoor area with flowers, trees, and pathways
  • High-Quality Graphics: HD textures, realistic lighting, and shadows
  • Weather System: Dynamic day/night cycle with appropriate lighting

🤖 Doraemon Character

  • 3D Animated Character: Fully rigged Doraemon with smooth animations
  • Multiple Animations: Idle, walking, running, jumping animations
  • Physics-Based Movement: Realistic character movement with gravity
  • GTA-Style Controls: Smooth character rotation and movement

🔊 Audio System

  • Background Music: Peaceful ambient music loop
  • Sound Effects: Footsteps, jumping, and ambient sounds
  • Spatial Audio: 3D positioned audio effects
  • Ambient Sounds: Birds chirping, wind effects

📱 Cross-Platform Support

  • Desktop: Full keyboard and mouse support
  • Mobile: Touch controls with virtual joystick
  • Responsive Design: Adapts to different screen sizes
  • WebGL Optimization: Optimized for performance across devices

Installation

Option 1: Direct Browser Usage

  1. Download or clone this repository
  2. Open index.html in a modern web browser
  3. Start exploring Doraemon's world!

Option 2: Local Web Server

# Using Python 3
python -m http.server 8000

# Using Node.js (if you have http-server installed)
npx http-server

# Using PHP
php -S localhost:8000

Then open http://localhost:8000 in your browser.

Option 3: Live Server (Recommended for Development)

  1. Install Live Server extension in VS Code
  2. Right-click on index.html
  3. Select "Open with Live Server"

Browser Requirements

Minimum Requirements

  • Chrome: Version 60+
  • Firefox: Version 55+
  • Safari: Version 12+
  • Edge: Version 79+

Required Features

  • WebGL 1.0 support
  • Web Audio API
  • Pointer Lock API (for first-person view)
  • ES6 JavaScript support

Performance Optimization

Level of Detail (LOD)

  • Automatic quality adjustment based on device performance
  • Reduced polygon count for distant objects
  • Texture compression for mobile devices

Rendering Optimizations

  • Frustum culling for off-screen objects
  • Shadow map optimization
  • Efficient texture usage
  • Minimal draw calls

Controls Reference

Key/Action Function
W Move Forward
A Move Left
S Move Backward
D Move Right
Space Jump
Shift Run
Mouse Look Around
V Toggle View (1st/3rd Person)
N Day/Night Toggle
Esc/Tab Pause Menu

Mobile Controls

  • Virtual Joystick: Bottom-left for movement
  • Action Buttons: Bottom-right for jump and run
  • Touch Gestures: Swipe to look around

File Structure

doraemon-3d-world/
├── index.html              # Main HTML file
├── js/
│   ├── main.js             # Main initialization script
│   ├── game.js             # Core game engine
│   ├── character.js        # Doraemon character logic
│   ├── environment.js      # 3D environment creation
│   ├── controls.js         # Input handling and camera controls
│   └── audio.js            # Audio management system
├── assets/                 # Game assets (textures, models, sounds)
├── README.md              # This file
└── package.json           # Project configuration

Technical Details

Graphics Engine

  • Three.js: Modern WebGL-based 3D graphics
  • Shader Support: Custom shaders for advanced effects
  • Post-Processing: Screen-space effects and filters
  • Shadow Mapping: Real-time dynamic shadows

Physics System

  • Gravity: Realistic physics simulation
  • Collision Detection: Character-environment interaction
  • Ground Detection: Proper character grounding
  • Jump Mechanics: Natural jumping behavior

Audio Engine

  • Web Audio API: High-quality spatial audio
  • Procedural Generation: Runtime audio synthesis
  • 3D Positioning: Distance-based audio falloff
  • Multi-channel: Separate channels for music, effects, and ambient

Customization

Adding New Features

  1. New Rooms: Extend the Environment class to add more rooms
  2. Character Animations: Add new animation sequences in character.js
  3. Interactive Objects: Implement object interaction system
  4. Weather Effects: Add rain, snow, or other weather systems

Modifying Graphics

  1. Textures: Replace texture generation functions with custom images
  2. Models: Load external 3D models using GLTFLoader
  3. Lighting: Adjust light parameters in the game initialization
  4. Post-Effects: Add bloom, SSAO, or other effects

Development

Building from Source

# Clone the repository
git clone <repository-url>
cd doraemon-3d-world

# Install dependencies (if using build tools)
npm install

# Start development server
npm start

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Test thoroughly
  5. Submit a pull request

License

This project is licensed under the MIT License. See LICENSE file for details.

Credits

  • Three.js: 3D graphics library
  • Web Audio API: Audio processing
  • Doraemon: Character inspired by the anime series
  • Modern Web Standards: HTML5, CSS3, ES6+

Support

For issues, questions, or suggestions: mange.shriram@gmail.com


Enjoy exploring Doraemon's 3D world! 🤖✨

About

3D Doraemon Simple simulation web, just made for fun

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors