Kacper Kostka (aider)
80c243ebf8
feat: Implement player block breaking with 10-pixel range and inventory collection
2025-04-05 19:12:11 +02:00
Kacper Kostka (aider)
d765defa9d
feat: Add block breaking, HUD, and inventory system for player
2025-04-05 19:08:28 +02:00
Kacper Kostka
755be2f5a4
refactor: Update player sprite and camera movement parameters
2025-04-05 19:08:24 +02:00
Kacper Kostka (aider)
c5b7f2f224
feat: Implement climbing system and tree collision avoidance for player
...
This commit adds:
1. Player climbing mechanism for small steps
2. Collision avoidance with trees (WOOD and LEAF pixels)
3. Enhanced animation states for climbing and jumping
4. Improved player movement and collision detection
2025-04-05 18:52:50 +02:00
Kacper Kostka (aider)
bb1e25e753
refactor: Reduce player size by 50% to improve pixel collision
2025-04-05 18:49:31 +02:00
Kacper Kostka
d2ab5094ab
refactor: Update player sprite and frame dimensions
2025-04-05 18:49:29 +02:00
Kacper Kostka (aider)
583544840b
feat: Add F3 debug mode with collision boxes and FPS display
2025-04-05 18:39:47 +02:00
Kacper Kostka (aider)
cb62097150
fix: Stretch player sprite to match collision box height and remove levitation
2025-04-05 18:36:27 +02:00
Kacper Kostka (aider)
8e2575f6fc
fix: Align player collision box and sprite rendering precisely
2025-04-05 18:33:19 +02:00
Kacper Kostka
04295f9f9f
refactor: Simplify player animation update logic
2025-04-05 18:33:17 +02:00
Kacper Kostka (aider)
0c8e13d630
feat: Improve player sprite rendering with pixelation and animation fixes
2025-04-05 18:29:24 +02:00
Kacper Kostka (aider)
f592c74412
fix: Adjust player sprite rendering and collision box for proper scaling and alignment
2025-04-05 18:23:38 +02:00
Kacper Kostka (aider)
84e08b397d
feat: Update player sprite to 32x32 with improved animation and collision handling
2025-04-05 18:22:39 +02:00
Kacper Kostka
c853738bbf
refactor: Update player sprite and adjust movement parameters
2025-04-05 18:22:36 +02:00
Kacper Kostka (aider)
0a13dfc0a3
refactor: Optimize camera movement with chunk-aware smooth tracking
2025-04-05 18:15:32 +02:00
Kacper Kostka
afba547fce
fix: Adjust player jump force for more precise movement
2025-04-05 18:13:58 +02:00
Kacper Kostka (aider)
8562c86986
feat: Increase zoom level to show smaller view area when spawning player
2025-04-05 18:08:11 +02:00
Kacper Kostka (aider)
ad90b9320f
fix: Optimize player spawn, camera zoom, and performance to reduce lag
2025-04-05 18:06:39 +02:00
Kacper Kostka (aider)
85a96f153f
fix: Change PIXEL_SIZE from const to let to allow modification
2025-04-05 18:04:44 +02:00
Kacper Kostka (aider)
db5b49ee7f
feat: Add player entity with WASD/space controls and spawn functionality
2025-04-05 18:03:10 +02:00
Kacper Kostka (aider)
d86baa8f99
refactor: Remove cloud rendering from sky function
2025-04-05 17:54:50 +02:00
Kacper Kostka (aider)
f0b00c3ccb
feat: Enhance cloud rendering with larger, more spread-out groups of squares
2025-04-05 17:53:55 +02:00
Kacper Kostka (aider)
724c5907a1
feat: Enhance cloud rendering with more spread and noise
2025-04-05 17:51:37 +02:00
Kacper Kostka (aider)
288c4a8772
refactor: Simplify cloud rendering to use fewer random squares
2025-04-05 17:50:51 +02:00
Kacper Kostka (aider)
03b192ae0a
refactor: Replace cloud circles with static pixel squares
2025-04-05 17:49:02 +02:00
Kacper Kostka (aider)
da895b11df
feat: Enhance cloud rendering with more detailed, larger fluffy clouds
2025-04-05 17:46:22 +02:00
Kacper Kostka (aider)
853da1a61d
feat: Brighten sky, reduce cloud size, and remove color animation
2025-04-05 17:44:58 +02:00
Kacper Kostka (aider)
d2a4927577
feat: Add bluish animated sky background with dynamic colors and clouds
2025-04-05 17:43:12 +02:00
Kacper Kostka (aider)
90650fefdd
fix: Improve rabbit collision, rotation, and jumping mechanics
2025-04-05 17:26:25 +02:00
Kacper Kostka (aider)
61ee259f6b
feat: Add rabbit button to HUD and implement tool selection
2025-04-05 17:24:10 +02:00
Kacper Kostka (aider)
5ac6d205ad
feat: Add rabbit spawning logic to input handling
2025-04-05 17:23:35 +02:00
Kacper Kostka (aider)
f1a18f9168
feat: Add rabbit entity with dynamic movement and sprite rendering
2025-04-05 17:20:54 +02:00
Kacper Kostka
f9cb363b37
feat: Add rabbit sprite to game assets
2025-04-05 17:20:51 +02:00
Kacper Kostka (aider)
cf64b6db48
fix: Remove duplicate constants and add null check for updatePhysicsObjects
2025-04-05 17:16:45 +02:00
Kacper Kostka (aider)
20f5036848
feat: Add physics objects with square, circle, and triangle tools
2025-04-05 17:15:40 +02:00
Kacper Kostka (aider)
34dd7e2d62
Based on the changes you've made, the implementation looks complete and well-structured. The new physics objects (square, circle, and triangle) have been added with the following key features:
...
1. They can be created using the new buttons in the UI
2. They fall due to gravity
3. They rotate while falling
4. They bounce and collide with world elements
5. They come to rest when they stop moving
The changes have been made to the following files:
- `index.html`: Added new buttons and script reference
- `js/constants.js`: Added new element types for physics objects
- `js/elements/physics_objects.js`: New file with physics object implementation
- `js/physics.js`: Added call to update physics objects
- `js/render.js`: Added rendering of physics objects
The implementation looks solid and should work as expected. Is there anything specific you'd like me to review or explain further about the physics objects?
2025-04-05 17:15:08 +02:00
Kacper Kostka (aider)
2067dad1d3
feat: Increase gravity strength by 3x and enhance element fall mechanics
2025-04-05 17:07:03 +02:00
Kacper Kostka
7cabd79d5f
Revert "feat: Add rabbit spawning button to HUD and implement rabbit tool"
...
This reverts commit 032793292fb25507110fa341de71b5c3bca57aa8.
2025-04-05 17:04:16 +02:00
Kacper Kostka
349d38c04c
Revert "feat: Add rabbit tool and event listener for rabbit button"
...
This reverts commit bdab2974c6bdffacb653ffce4e6bc72ca9dc1628.
2025-04-05 17:04:05 +02:00
Kacper Kostka
b5d1a643bd
Revert "fix: Remove duplicate RABBIT declaration and move toggleDebug function"
...
This reverts commit bcd61b7433a9cd9420b236f50ab4cc54084bab6d.
2025-04-05 17:03:55 +02:00
Kacper Kostka
b7d12114d3
Revert "fix: Resolve canvas reference and duplicate currentTool declaration"
...
This reverts commit a948fab6194aa2f7bfd1039cba4d44191d1844fe.
2025-04-05 16:28:42 +02:00
Kacper Kostka (aider)
a948fab619
fix: Resolve canvas reference and duplicate currentTool declaration
2025-04-05 16:27:42 +02:00
Kacper Kostka (aider)
bcd61b7433
fix: Remove duplicate RABBIT declaration and move toggleDebug function
2025-04-05 16:26:18 +02:00
Kacper Kostka (aider)
bdab2974c6
feat: Add rabbit tool and event listener for rabbit button
2025-04-05 16:24:29 +02:00
Kacper Kostka (aider)
032793292f
feat: Add rabbit spawning button to HUD and implement rabbit tool
2025-04-05 16:24:16 +02:00
Kacper Kostka (aider)
ba4fa3eb37
feat: Increase gravity strength for falling elements
2025-04-05 16:17:02 +02:00
Kacper Kostka
ebb96846ed
Create .gitignore
2025-04-05 15:59:45 +02:00
Kacper Kostka (aider)
60c2db558f
feat: Add rabbit element with jumping and movement behaviors
...
This commit introduces a new rabbit element with the following features:
- Jumping mechanics with variable height
- Random direction changes
- Falling and basic ground interaction
- Color variations
- Avoidance of water
The changes include:
- Added RABBIT constant to element types
- Created rabbit.js with updateRabbit function
- Added RABBIT_COLORS to constants
- Implemented basic rabbit movement and behavior logic
2025-04-05 15:57:54 +02:00
Kacper Kostka (aider)
bb45c9fba8
refactor: Optimize rendering with chunk canvas caching and performance improvements
2025-04-05 15:49:13 +02:00
Kacper Kostka (aider)
d87105baad
feat: Ensure stone layer chunks always render and remain visible
2025-04-05 15:45:13 +02:00