344 Commits

Author SHA1 Message Date
f75fa2606f [README.md] Fixed wrong screenshots templating 2025-03-24 09:49:38 +01:00
12aac8874a [README.md] Replaced some excessive info with link to original repo 2025-03-24 09:45:53 +01:00
5eaa64c6b1 Update README.md for KolibriOS 2025-03-24 09:40:41 +01:00
f185677b7f Codebase adaptation for KolibriOS
- Changes some source code, especially in data.c
- Added xmake.lua for building game using xmake
0.8-kolibri
2025-03-23 14:43:04 +02:00
Sasha Koshka
5cfa947483 Merge pull request #32 from Tempetas/main
Almost completely fix the rendering bugs in the negatives
2023-05-18 10:16:57 -04:00
Tempetas
ca0e0cc661 Almost completely fix the rendering bugs in the negatives 2023-05-17 23:12:39 +02:00
Sasha Koshka
163b9e1135 Fixed minor wording errors in README 2022-07-17 19:17:18 -04:00
Sasha Koshka
d8b5a90872 Merge pull request #30 from FintasticMan/replace_binary_literals
Replace non-texture binary literals with hex literals
2022-05-15 14:32:22 -04:00
Finlay Davidson
0774cff29b Replace non-texture binary literals with hex literals
Binary literals are a GNU extension
2022-05-14 15:40:25 +02:00
Sasha Koshka
657c30db8d Added to FAQ 2022-05-08 01:42:46 -04:00
Sasha Koshka
b207169a25 Junk directory names in release
Release zip no longer preserves directory names. It just has the files.
2022-05-07 17:54:14 -04:00
Sasha Koshka
ffdc0ba328 Changed install directory from /usr to /usr/local
/usr/games/              -> /usr/local/games/
/usr/icons/              -> /usr/local/share/icons/hicolor/256x256/apps/
/usr/share/applications/ -> /usr/local/share/applications/

This applies to the icon, desktop file, and executable. If you already have this
program installed, first uninstall it either with the old build script or
manually, and then re-install it with this updated one.
2022-05-07 17:31:24 -04:00
Sasha Koshka
569f7c3393 Fixed residual keypresses carrying over to gameplay
If a key was pressed on a menu screen and then a world was opened, then the key
would be read as if it were pressed while the world was loaded. When the user
created a world with the letter 'e' in its name, the inventory would open on
world creation. Now, keyboard inputs are updated on key release as well as key
press, thereby ficing the issue.
2022-05-07 16:58:16 -04:00
Sasha Koshka
20e9985703 Fixed some alignment issues
Moved world selection menu scrollbar more to the left, and foxed alignment issue
with buttons.
2022-05-07 16:45:47 -04:00
Sasha Koshka
825fdf8c75 Merge pull request #28 from sashakoshka/world-delete
World delete
2022-05-07 16:36:50 -04:00
Sasha Koshka
39f9e6610b Added world deletion
Delete button now deletes worlds when pressed via data_removeDirectory.
2022-05-07 16:23:58 -04:00
Sasha Koshka
d2de705000 Improved world selection scrolling code slightly 2022-05-07 15:26:13 -04:00
Sasha Koshka
28f130ec0b Add non-functional delete button to worlds
World list items now have a delete button. It does not do anything currently.
2022-05-07 15:12:17 -04:00
Sasha Koshka
218c6a217d Update window build instructions
Revised README.md to reflect updated windows build system, and removed win-build.bat.
2022-05-07 14:15:23 -04:00
Sasha Koshka
6cc1815c0d Clean before packaging release 2022-05-07 14:13:02 -04:00
Sasha Koshka
c1d9ab28c7 Add release packaging
Running ./build.sh release will build and package the program as a zip file
2022-05-07 14:07:33 -04:00
Sasha Koshka
edea59dbe8 ./build.sh small partially works on windows
Executable stripping is working on windows, however executable compression does not. This will probably remain this way.
2022-05-07 13:50:12 -04:00
Sasha Koshka
50b38f4d21 build.sh now works under MSYS2
build.sh will now work on MSYS2 if you have mingw-w64-x86_64-gcc installed. Be sure to start msys2 using C:/msys64/msys2_shell.cmd -defterm -here -no-start -mingw64
2022-05-07 13:28:43 -04:00
Sasha Koshka
a2a2064241 Added build instructions wiki link in README.md 2022-05-07 11:47:02 -04:00
Sasha Koshka
110d9f4962 Scrollbar has mouse interaction
The scrollbar can now be clicked in various places to jump to that place. It
cannot be dragged, because that would require redoing the input system a bit.
2022-05-07 11:42:54 -04:00
Sasha Koshka
e7ab120be0 Added scrollbar to world selection menu
This scrollbar cannot be interacted with, it just shows where the scroll
position is for now.
2022-05-07 11:27:56 -04:00
Sasha Koshka
739cf77e63 Added scrolling to world selection menu 2022-05-07 01:23:59 -04:00
Sasha Koshka
9158116146 Fixed bug where player data could persist into new world
Player struct now always resets when world is wiped, not just conitionally in
world_load. This fixes player data persisted when entering and exiting a world,
leaving the program open, and then creating a new world.
2022-05-07 00:57:15 -04:00
Sasha Koshka
03f2d894f3 Converted some format specifiers in terrain.c to be more Windows freindly
For some reason, Windows is not agreeing with passing a 64 bit integer into a
%lu. I have no idea why. It might work if it is cast to a long unsigned int.
2022-05-06 23:41:17 -04:00
Sasha Koshka
e4ffe63abc Changed format specifiers when saving player data
Changed the format specifiers to more compatible (and human readable) formats.
2022-05-06 23:27:59 -04:00
Sasha Koshka
3bda5f8041 Removed bug list from readme
It was out of date, and github issues exist.
2022-05-06 19:52:01 -04:00
Sasha Koshka
03caf69753 Merge pull request #27 from sashakoshka/save-options
Save options
2022-05-06 19:47:46 -04:00
Sasha Koshka
868530d967 Implemented saving options
options_save saves everything in the options struct to the configuration file.
It is called whenever the done button is pressed in the options menu.
2022-05-06 19:45:58 -04:00
Sasha Koshka
947be634dd Options menu now accounts for loaded draw distances
The options menu will build the string for the draw distance button when the
menu first appears, so it will not erroneously display 20 every time.
2022-05-06 19:31:52 -04:00
Sasha Koshka
d70ead6541 Second options page no longer crashes
Added "?" text for FOV, and ensured fogType is always 1 or 0 in options_load
2022-05-06 19:17:15 -04:00
Sasha Koshka
2b96639b9f Added options loading
options_load loads the config file at ~/.m4kc/m4kc.conf and is called within
options_init. Entering in adbormal values for parameters causes the second page
to segfault. Will attempt fix in next commit.
2022-05-06 19:09:45 -04:00
Sasha Koshka
b8f06860da Re-organized data module slightly
Made data_findDirectoryName private (and removed prefix), and added void to
functions with no arguments
2022-05-06 18:07:57 -04:00
Sasha Koshka
db57ab45f3 Created dedicated options module
Options struct has been moved out of the data module, and into an options
module. Added initialization in main().
2022-05-06 18:00:15 -04:00
Sasha Koshka
f98ef2d25d Added data_getOptionsFileName
This function returns a pointer to the file path of the configuration file.
2022-05-06 17:37:41 -04:00
Sasha Koshka
6968418ac2 Changed the "dev" world type to list all blocks horizontally,with stone
underneath. This allows textures to be easily compared side-by-side without
risking falling through the world.
2022-05-06 16:38:54 -04:00
Sasha Koshka
d52aed75b6 Updated readme to reflect new windows build system 2022-05-04 16:36:00 -04:00
Sasha Koshka
88a9afc174 Edit windows build script to copy SDL2.dll 2022-05-04 16:33:30 -04:00
Sasha Koshka
bc868b151f Made data_ensureDirectoryExists windows compatible 2022-05-04 16:24:43 -04:00
Sasha Koshka
068e74d759 Added file path normalization
Convert windows' backslash paths (from %APPDATA%) into forward slash paths.
2022-05-04 15:40:47 -04:00
Sasha Koshka
0fcf119df0 Cross platform data module initialization 2022-05-04 04:20:15 -04:00
Sasha Koshka
dbd8c57d64 Now builds on windows 2022-05-04 03:51:14 -04:00
Sasha Koshka
28bdcd4937 Added windows compatibility for PATH_MAX and NAME_MAX 2022-05-04 03:44:27 -04:00
Sasha Koshka
b42a1198d3 Various minor windows compatibility fixes 2022-05-04 03:45:03 -04:00
Sasha Koshka
a056511e4c Missed a couple! 2022-05-04 03:28:43 -04:00
Sasha Koshka
c2101498ea Changed various variable types to things defined in stdint 2022-05-04 03:24:34 -04:00