53 commits

Author SHA1 Message Date
Oikmo
1a5757dc21 a0.0.3 a0.0.3
Added texturePack loading and also fixed iconx128.png
2024-04-07 14:22:20 +01:00
Oikmo
5c32731647 Reapply "Merge branch 'main' of https://github.com/oikmo/BlockBase" a0.0.2
This reverts commit 05943c5f72.
2024-04-07 12:43:53 +01:00
Oikmo
05943c5f72 Revert "Merge branch 'main' of https://github.com/oikmo/BlockBase"
This reverts commit e92046cc39, reversing
changes made to 92ecc98c15.
2024-04-07 12:43:01 +01:00
Oikmo
e92046cc39 Merge branch 'main' of https://github.com/oikmo/BlockBase 2024-04-07 12:42:46 +01:00
Oikmo
92ecc98c15 ALPHA 0.0.2!!!
Finally fixed AABBs. Audio is now packaged on the internet since stupid jar file system doesn't work.
Did I forget to mention that you can literally add your own music too?
2024-04-07 12:42:34 +01:00
Oikmo
9c8b1db67f
Update README.md 2024-04-07 12:40:57 +01:00
Oikmo
8191e65b06 Sounds added, Fixed(?) aabbs 2024-04-06 23:18:59 +01:00
Oikmo
076f456ef5 more half assed attempts at optimizing 2024-04-05 15:21:52 +01:00
Oikmo
0b8db98d37 attempted optimizing.
Made it so it only adds the aabbs are only added if they are two blocks below and above the player.
2024-04-04 23:21:23 +01:00
Oikmo
5214fcf8c3 thanks matthew
i have not asked but he will be credited omg.

finally. alpha 0.0.2
2024-04-04 20:52:48 +01:00
Oikmo
c937ee92c2 fuck this
alright going to use
https://www.gamedev.net/tutorials/_/technical/game-programming/swept-aabb-collision-detection-and-response-r3084/
and see what I can do
2024-04-04 13:35:14 +01:00
Oikmo
e29fac6bed Update Maths.java 2024-04-04 05:11:07 +01:00
Oikmo
74209d3d64 It was not okay. But it's fine now!
So I had to implement a stupid hack to make the collision work as this is the only (from what I have tried) way to get the collision to work. THE COLLISION IS BEING HELD TOGETHER BY A FUCKING GUITEXT IN GUIINGAME.

Anyways fixed compilation issues.
2024-04-04 05:10:19 +01:00
Oikmo
37f0e5832e Everything is ok!
Player collision works! Not only that but I added the seed of the world to the save and another thing...
The original soundsystem is gone! Now replaced with paul lamb's soundsystem!

Alpha 0.0.2?
2024-04-03 23:40:14 +01:00
Oikmo
1469e1018b soundsystem change
aabbs are gonna kill me literally
2024-04-02 23:23:48 +01:00
Oikmo
a5dca6c43f no more obj
yeah no screw that.
player works i guess.
2024-04-02 03:55:43 +01:00
Oikmo
969648a1b7 kill me...
added AABB and Player class
obj model loader that i'm not even sure works lmao
2024-04-02 03:31:00 +01:00
Oikmo
d08879efd9 which generator?
finished adding the blocks
but the generator?
2024-04-01 22:34:55 +01:00
Oikmo
dc6f2d65b3
Update README.md 2024-04-01 14:22:01 +01:00
Oikmo
c29725bebd incomplete : texture pack update
todo: finish cubemodel and add the rest of the blocks
2024-04-01 04:53:29 +01:00
Oikmo
6facd68781 Delete WorldData.java 2024-03-31 23:14:28 +01:00
Oikmo
704dee8728 Implemented saving
Although slow and can be optimized a lot.
2024-03-31 23:14:13 +01:00
Oikmo
166179e4bb clean up
again but removed unused imports alomg with integrating the ChunkManager methods into MasterChunk thus removing it
2024-03-30 19:17:14 +00:00
Oikmo
f6dc3868e3 clean up 2024-03-30 18:19:30 +00:00
Oikmo
edda3ba4f1 texture loading changed a0.0.1 2024-03-30 06:07:32 +00:00
Oikmo
f61690d69d
Update README.md 2024-03-30 06:06:53 +00:00
Oikmo
879606f93f Better block placing
- Implemented a somewhat better block placing system
- Fixed GuiText and added fps counter along with what block is being used
- Switched noise generator with a better one :D
- Added bedrock layer
- Added the infamous minecraft font
2024-03-30 05:31:29 +00:00
Oikmo
09e600956f change generation 2024-03-29 22:30:02 +00:00
Oikmo
dd034e28fb window can now be resized 2024-03-29 13:28:08 +00:00
Oikmo
1472309090 trying to add resize 2024-03-28 22:20:02 +00:00
Oikmo
622a411fde Added gui system 2024-03-28 04:29:02 +00:00
Oikmo
5190bd1f3e Added place block switcher
Cleaned up the rest
2024-03-27 21:57:23 +00:00
Oikmo
01896e29f6 Rounding
- Added a position rounding system
- Added a block visualiser (doesn't place in it's position however.)
- Moved setBlockFromTopLayer from Chunk to ChunkManager
- Added thread logger to Logger class
2024-03-24 13:39:52 +00:00
Oikmo
77bee8e4cc
Create README.md 2024-03-24 03:38:46 +00:00
Oikmo
92b3029f6b added sound 2024-03-23 22:54:30 +00:00
Oikmo
9e237882bc the pinnacle of optimization (again)
Cleaned up the optimization.
Created a MasterChunk class that holds the origin, chunk, mesh and entity within.
2024-03-23 21:53:26 +00:00
Oikmo
d2539e524f HOLY HELL OF OPTIMIZATION!!!!
Main.refreshCertainChunk(Chunk chunk) IS SOOO GOATED HOLY FUCK!!!!!!!!
2024-03-22 23:37:53 +00:00
Oikmo
d3981a8708 Added crash report and hooked up game dir. 2024-03-21 22:29:09 +00:00
Oikmo
59a63203da World class
Added world class
Fixed mesh not rendering after refresh
2024-03-21 19:32:54 +00:00
Oikmo
2217341c85 testing with top layer of blocks 2024-03-21 08:34:55 +00:00
Oikmo
3eb243cabd clean up 2024-03-21 08:30:38 +00:00
Oikmo
7baac532d3 Messing around with chunk loading
I think I should go sleep now
2024-03-21 03:02:35 +00:00
Oikmo
b9a7cd4865 reinstated
Ok so I did use some of the code from PepDog and the earlier branch of this but my theory worked! I got the core mechanic of a voxel engine!
Breaking and destroying! Originally this hadn't worked as the chunk *mesh* wouldn't update.

WILL DO CLEAN UP!
2024-03-21 02:55:50 +00:00
Oikmo
096f8585cc clean up 2024-03-20 19:21:27 +00:00
Oikmo
da1d669f1c how about we start over?
I'm back. (from boredom and burnout from PepDog)

This project is literally all over the place. So why not redo it with my actual good coding and experience?
2024-03-20 19:10:32 +00:00
Oikmo
ae3697e454 things
remove blocks bugged still
2023-07-11 22:34:04 +01:00
Oikmo
d73512d3d5 added flyweight pattern
problem with mesh still
2023-07-11 10:07:38 +01:00
Oikmo
2a22ad90ff sound added, blocks can be added to world
however those blocks dont update with the mesh and the placing of blocks stays in the 0 0 chunk. very annoying. WILL BE FIXED SOON!
2023-07-10 22:37:57 +01:00
Oikmo
2e910f0bb9 faster chunk rendering 2023-07-04 12:46:45 +01:00
Oikmo
3f2073d9f3 Update Chunk.java 2023-07-03 22:20:14 +01:00