Skip to content

Rahuldeb5/5DebCraft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

46 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

5DebCraft

Final Project for AP Computer Science A (APCSA)
Teacher: Ms. Novillo
Student: Rahul Deb (Period 6)
Email: rdeb60@stuy.edu


๐Ÿงฑ Project Overview

5DebCraft is a 3D Minecraft-clone sandbox game developed in Processing as a final project for APCSA. The game simulates core Minecraft mechanics, including block placement, destruction with cracking animation, a dynamic HUD, and a first-person camera system.


๐ŸŽฎ Features

  • Procedural Terrain Generation
    World is randomly generated with Perlin noise and includes terrain features like hills and lakes.

  • Block Types
    Includes 6 block types: dirt, stone, sand, wood, leaf, and water. Each is a subclass of a Block superclass with:

    • hardness
    • breakable flag
    • texture
  • Player Controls

    • W/A/S/D โ€“ Move forward/left/back/right
    • Space โ€“ Jump
    • Shift โ€“ Sprint
    • 1โ€“5 โ€“ Select item in hotbar
    • Left Click โ€“ Break block (respecting hardness)
    • Right Click โ€“ Place block from inventory
  • Mining & Cracking Animation
    Blocks take time to break, with a crack texture overlay displayed based on progress.

  • Inventory System

    • Stack up to 64 items per type (except water, which is not collectible)
    • Right-click places the selected block, if available
  • HUD Elements

    • Crosshair
    • Hotbar with selected item highlight

๐Ÿ› ๏ธ Technologies

  • Language: Java (Processing)
  • Graphics: Processing 3 with P3D renderer
  • Audio: Processing Sound library

๐Ÿ—‚๏ธ Project Structure

  • Block.java โ€“ Abstract base class for all blocks
  • Camera.java โ€“ Handles first-person view and mouse movement
  • Inventory.java โ€“ Tracks item stacks and player selection
  • HUD.java โ€“ Renders UI elements
  • World.java โ€“ Procedural generation of terrain
  • InputManager.java โ€“ Keyboard input state handling

๐Ÿ’ก Credits

Developed by Rahul Deb for APCSA
Teacher: Ms. Novillo
Stuyvesant High School | Period 6


About

Final project for APCSA class

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors