217 Commits

Author SHA1 Message Date
opfromthestart
ae2980c9de Bug Fixing and Performance
-Multiple null checks(It doesn't work without them)
-Checks to make sure entities are within loaded chunks
-Actual entity removal
2021-06-10 17:00:09 -04:00
opfromthestart
3879e5ffac Sand Towers Fall
-The listener in TestWorldGenerator updates any block above it if that block is a block that can be affected by gravity.
-Format happened(I forgot)
2021-06-10 15:56:15 -04:00
opfromthestart
47eb9fa5af Conservation of Matter
-Placing a Test:Sand block now deletes the block and summons a Test:FallingBlock in its place.
2021-06-10 14:08:35 -04:00
opfromthestart
bf49687ab6 Better performance maybe?
-Changed as many of the ClientState statements to context as I could.
-Only looks for a sand based update once per block update(I think it was twice before)
2021-06-10 12:50:51 -04:00
opfromthestart
b3ae829383 Almost All Works
-Added Set in TestEntityLogicFallingBlock to keep track of gravity blocks
  -Used this set in listener in TestWorldGenerator
-setInvisible and isDone() methods in TestEntityDataFallingBlock
  -Used to determine if the entity should be rendered/cared about in TestEntityRenderFallingBlock and TestEntityLogicFallingBlock
-Added more accurate Vec3i mod and div methods in TestEntityLogicFallingBlock
  *Change this to a better place
-TestEntityLogicFallingBlock actually places the block when the entity lands
-Better air block detection in TestWorldGenerator
*Still cannot erase the original placed block, not sure why.
2021-05-09 15:57:38 -04:00
opfromthestart
b374e9a736 Added FallingBlock Classes
-Added TestEntityDataFallingBlock class
  -Right now only supports Test:Sand
  -Kinda just copied from Statie
-Added TestEntityRenderFallingBlock
  -Used BlockRenderTexturedCube and TestEntityRenderStatie for this one
  -Has a setTexture method, but it needs improving
-Added TestEntityLogicFallingBlock class
  -Allows for a falling block to return to being a block.
  -The coordinates of the entity never move, even if it does ingame.
-In TestContent
  -Registers Test:FallingBlock
-In TestWorldGenerator
  -Adds listener for a sand block being placed
    -Listener replaces the block with a FallingBlock entity
    -It should also replace the block with air but it hasn't been working for me.
2021-05-04 20:29:06 -04:00
531a8c99c3
Added CONTRIBUTING.md. Discussion is welcome. 2021-04-27 23:22:48 +03:00
32851b8fb0
Added a serverside uptime tick counter 2021-04-09 20:34:47 +03:00
c49fdfa5ff
Added a crude music player and fixed a lot of OpenAL stuff
- Game will now play all Vorbis files in music/ directory (at runtime)
  - Random order with random pauses (15 to 60 sec)
  - Force start by pressing M
- Added AudioRegistry for performance
- Speakers now can change data correctly
- Added ResourceReaders
  - Classpath and Filesystem for now
- Added local controls. Use with ControlTriggers.localOf(...)

NB: No actual music files included (yet). Place them in music/ directory
of the game directory (e.g. in <project>/run/music).
2021-03-26 23:51:51 +03:00
9d7f69892b
Removed unused import and renamed VSYNC to VSync 2021-03-26 21:57:54 +03:00
73d24d36f4
Added support VSYNC and fixed crashreporter formatter 2021-01-31 13:29:10 +03:00
bdb3bff570 Merge branch 'master' of git@github.com:OLEGSHA/Progressia.git 2021-01-31 13:23:05 +03:00
6997bb1104 Fixed compilation issue 2021-01-31 13:12:10 +03:00
eac0a34516
Clarified RAM requirement in README.md 2021-01-30 22:59:01 +03:00
127d1c3d87 Refactored Sound Engine
- Renamed SoundEffect to Sound
- Now Music inherits Sound
- Now every sound has parameter timeLength
2021-01-29 18:35:05 +03:00
26a35f306c
Fixed chunk model updates 2021-01-26 22:21:03 +03:00
52f3f653d8
Added Fullscreen mode 2021-01-26 21:23:33 +03:00
fc85eb5658
Removed accidentally committed local build.gradle 2021-01-25 10:46:02 +03:00
260562310a
Refactored CROs, removed internal chunk borders. Documented CROs.
- Refactored CROs
- Renamed CROOpaqueCube to CROSurface (including relevant interfaces)
- Optimized CROS
  - CROS now takes neighbor chunks into account
- Refactored default OptimizedSurface implementations
- Documented some CRO code
2021-01-24 20:48:38 +03:00
85edc07c75 Incremented version and corrected whitespace in buildPackages.sh 2021-01-21 18:15:50 +03:00
fcf225f9c7 Updated NSIS installer
Added:
- game icon
- left side image
- desktop shortcut
- main menu shortcut
- working directory in AppData
2021-01-20 18:09:59 +03:00
a0346bcb9c
Changed version string to TechDemo v0.0.0-techdemo TechDemo 2021-01-13 21:18:40 +03:00
ad1d1396df
Fixed installation path in Debian packages 2021-01-13 19:00:58 +03:00
c2d91726a7
Formatted source, added/updated copyright headers
- Also added formatting settings for Eclipse IDE
2021-01-13 14:36:18 +03:00
8f3009300f Moved some files around
- Renamed FloatMathUtils to FloatMathUtil
- Renamed TextureUtils to TextureUtil
- Moved .common.io to .common.world.io
2021-01-12 22:21:06 +03:00
ac42f639f2
Update .gitattributes 2021-01-12 22:15:11 +03:00
b3ce0ca3c4 Fixed text encoding, texture transparency, labels in debug layer 2021-01-12 21:11:53 +03:00
802f736e37 Added IntelliJIDEAGuide and fixed typos in EclipseGuide 2021-01-12 19:24:02 +03:00
70c213fe0d Added localization, LayerTestGUI hiding and fixed two bugs
- Re-added localization
  - Currently en-US, ru-RU
  - Switch with L
  - Used in LayerTestGUI and the new LayerAbout
- Added LayerAbout
  - Contains game named and version
  - Localized
- TestLayerGUI is hidden by default
  - Switch visiblity with F3
- Fixed alignment of text inside Labels
- Fixed crash reports not showing suppressed exceptions and causes
2021-01-12 00:36:18 +03:00
9a9823be0d Merge branch 'Textures' 2021-01-11 22:02:07 +03:00
a3ac4e8aa0 Added several new tiles and updated Glass texture
- Added Painting to demonstrate "HD" texture support
- Added RoughPaint and DecorativeBricks to decorate a house outside
- Added WhitePaint to create windows
- Added TilesSmall and TilesLarge
- Updated Glass texture to make it brighter and add streaks
2021-01-11 21:58:00 +03:00
02ef94a395 Corrected spelling 2021-01-11 11:25:42 +03:00
a67d3ba1bb Added the ability to sprint
When you double-tap the W key, the character starts moving faster
2021-01-11 00:17:31 +03:00
76a6c4a186 Made glass not remove tiles under itself and updated 2 textures
- Glass is no longer solid and is now transparent
- Updated Clock and Wallpaper textures
2021-01-11 00:07:34 +03:00
d2450c796b Fixed runtime problems, renamed some content and disabled saves
- Made sure texture names had correct case
- Renamed Test:Wood to Test:Log
- Renamed Test:Time to Test:Clock
- Links in crash reports are now clickable from Eclipse
2021-01-10 23:54:12 +03:00
73be13734e Merge branch 'master' into Textures 2021-01-10 23:33:22 +03:00
WarDref
b1e5917323 Updated and added textures for blocks and tiles
-WoodenPlank
-clock
-Sand
-CeilingTile1
-CeilingTile2
-Wallpaper
-Wood
-ConcreteBlock
-Glass
-BrickWhite
-Brick
2021-01-10 23:13:23 +03:00
9d305890d1 Crash reports now include the stacktrace of .report() 2021-01-10 23:00:49 +03:00
c1b1d930ce Added audio system initialization 2021-01-10 21:44:03 +03:00
920284190c
Updated Windows building instructions in README.md 2021-01-10 21:06:43 +03:00
8f419b4d02 Rewrote README, wrote building guides and cleaned up
- Updated/prettified README.md
- Wrote extensive building guides
- Removed pictures/
- Removed music samples
- Made sure that git creates run/ when cloning
2021-01-10 20:52:45 +03:00
eb34a4c0d2 Replaced ALTest with AudioSystem class 2021-01-09 19:01:18 +03:00
a4dd14491d Fixed build scripts
- Eclipse is now able to detect native dependencies correctly
- `buildPackages.sh debian' exits with correct exit code
- Renamed `require*Dependencies' to `request*Dependencies'
2021-01-09 14:14:36 +03:00
7a2721c7b3 Fixed missing manifest file in built JARs 2021-01-08 00:44:49 +03:00
e389d2ad67 Refactored build scripts and removed unused dependencies
- Added the following Gradle tasks:
  - buildLocal (alias for build)
  - buildCrossPlatform (builds with all natives)
  - packageDebian
  - packageWindows
- Gradle no longer downloads or packages natives for wrong platforms
(unless buildCrossPlatform or require*Dependencies is run)
- Gradle should no longer complain about deprecated features
- buildPackages.sh is now a lot more robust
- Removed the following dependencies:
  - Apache Commons Math
  - Everything in LWJGL except OpenGL/AL, GLFW, STB and core
2021-01-08 00:33:53 +03:00
eb82c96390 Lots of small tweaks
- Added text outlining
- Shrunk and moved compass bar (it no longer pretends to be a hotbar)
- Changed cross to match text proportions
- Refactored TileRenderSimple into TileRender{Opaque,Transparent}Surface
  - Also renamed OpaqueTile into OpaqueSurface
- Added about and version info
2021-01-07 18:26:54 +03:00
e467d00877 Probably fixed that GUI freeze that WarGreg reported 2021-01-07 16:51:34 +03:00
1bba20504d Set up crash reporting for Guava's EventBuses
- Added GuavaEventBusHijacker to access an inexplicably package-private
constructor in EventBus
- Added and utilized ReportingEventBus that reports caught exceptions
2021-01-07 00:13:18 +03:00
c919ffc8ce Multiple blocks and tiles can now be placed
- Different blocks can now be placed
  - Select block with (vertical) mouse wheel scrolling when block
placing is active
  - All blocks except Test:Air are available
- Different tiles can now be placed
  - Select tile with (vertical) mouse wheel scrolling when tile placing
is active
  - Switch between placing blocks and tiles with middle mouse button,
horizontal mouse scrolling or Shift + (vertical) mouse scrolling
- Changed Test GUI text color to white to increase readability on blocks
2021-01-06 23:25:05 +03:00
339e11d3ac Fixed several miscellaneous bugs
- Recolored Test:Stones to better match granite textures
- Selection box restored
- Controls no longer get stuck after player entity is reloaded
- Moved test spawn location a little down so chunks would load
conveniently
- Moved test spawn variable into TestContent
2021-01-06 21:44:54 +03:00