Final Project for AP Computer Science A (APCSA)
Teacher: Ms. Novillo
Student: Rahul Deb (Period 6)
Email: rdeb60@stuy.edu
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.
-
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 aBlocksuperclass with:hardnessbreakableflagtexture
-
Player Controls
W/A/S/Dโ Move forward/left/back/rightSpaceโ JumpShiftโ Sprint1โ5โ Select item in hotbarLeft 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
- Language: Java (Processing)
- Graphics: Processing 3 with
P3Drenderer - Audio: Processing Sound library
Block.javaโ Abstract base class for all blocksCamera.javaโ Handles first-person view and mouse movementInventory.javaโ Tracks item stacks and player selectionHUD.javaโ Renders UI elementsWorld.javaโ Procedural generation of terrainInputManager.javaโ Keyboard input state handling
Developed by Rahul Deb for APCSA
Teacher: Ms. Novillo
Stuyvesant High School | Period 6