344 Commits

Author SHA1 Message Date
Sasha Koshka
e5618ed394 Added building for windows under mingw 2021-05-10 21:31:40 -04:00
Sasha Koshka
25d054edfd Fixed the font a bit 2021-05-10 20:13:31 -04:00
Sasha Koshka
34b68423e0 Game now displays coordinates 2021-05-10 20:10:54 -04:00
Sasha Koshka
cba75b15d9 World is stored differently in memory. Structures have been cleaned up. Preparing for infinite terrain. 2021-05-10 19:29:56 -04:00
Sasha Koshka
0ccbd03bf7 Changed how the game understands coordinates internally. Introduced block coordinate struct. 2021-05-10 18:13:18 -04:00
Sasha Koshka
620040a1a5 Seed is no longer constant 2021-05-10 12:53:33 -04:00
Sasha Koshka
a23f50b206 Updated makefile to show size after compiling compressed version 2021-05-10 08:57:18 -04:00
Sasha Koshka
44c148461e Added segfault's makefile, with some minor changes 2021-05-10 08:54:34 -04:00
Sasha Koshka
80810c670f Added desktop file, program should install correctly now... 2021-05-09 23:29:33 -04:00
Sasha Koshka
d3c301e7f9 Added crosshair controls/mouse capturing. Very jittery, must be turned on in the options menu. 2021-05-09 23:27:49 -04:00
Sasha Koshka
3bdaab0d97 Options menu now works, allows changing render distance 2021-05-09 21:56:02 -04:00
Sasha Koshka
32715a5af5 Escape key now opens and closes pause menu 2021-05-09 21:21:19 -04:00
Sasha Koshka
42c808b92b Preparing to redo menus 2021-05-09 21:09:35 -04:00
Sasha Koshka
465b3d9ef9 Fixed a bug with the time of day equation 2021-05-09 19:35:52 -04:00
Sasha Koshka
e425ae4765 Pyramids now generate to the ground. Modified some internal logic relating to return values of block manipulation functions to make structure generation easier. 2021-05-09 18:55:06 -04:00
Sasha Koshka
0221bad892 Smoother transition between night and day, using a smooth square wave function. Render distance can now be changed by editing the drawDistance variable. It will modify render distance and fog together. 2021-05-09 17:36:59 -04:00
Sasha Koshka
c0ff5f7ef1 Transitioning between night and day 2021-05-09 16:15:23 -04:00
Sasha Koshka
355a247d00 DANCE PARTYgit add main.c git add main.c Will fix soon, but i figured this should at least be preserved somewhere, lol 2021-05-09 16:11:26 -04:00
Sasha Koshka
5bda65fbbc Comment either line 653 or 655 to switch between day and night 2021-05-09 16:05:13 -04:00
Sasha Koshka
08fbf28334 Added a hidden logarithmic fog option, improved performance by only drawing needed pixels. 2021-05-09 15:48:23 -04:00
Sasha Koshka
18400c6c69 Added brick pyramids, setBlock function now has an force argument - If false, it will only modify air blocks. 2021-05-09 15:26:15 -04:00
Sasha Koshka
26e05b2256 Added structure generation (just trees for now), a setcube function, imitation of java modulo function, and updated internal render code to get block using getBlock 2021-05-09 13:57:22 -04:00
Sasha Koshka
cb7e6aaa08 Removed unneeded chars 2021-05-09 10:27:54 -04:00
Sasha Koshka
aae78e6994 Added a scrollable hotbar, functions to draw inventory items, made texture array global 2021-05-09 00:54:34 -04:00
Sasha Koshka
1392e2f0d8 Updated block ID list in readme 2021-05-08 23:05:10 -04:00
Sasha Koshka
a1357208cc Updated readme to include controls 2021-05-08 22:46:47 -04:00
Sasha Koshka
dd1fab80b7 Updated readme to show block types 2021-05-08 22:36:28 -04:00
Sasha Koshka
7141284b55 Added a button system, and a simple pause menu. 2021-05-08 21:35:22 -04:00
Sasha Koshka
d5492ad8bf Added more chars to the font 2021-05-08 20:11:35 -04:00
Sasha Koshka
b242999547 Added new chars, and variable width. drawStr now uses pointer notation. 2021-05-08 16:19:28 -04:00
Sasha Koshka
6b08c3ba35 Added more chars to the font, and created a string draw function 2021-05-08 14:18:02 -04:00
Sasha Koshka
ef7d4a7bfa Laid groundwork for text rendering 2021-05-08 13:49:04 -04:00
Sasha Koshka
f09b861b92 Optimized graphics code, repaired frame rate 2021-05-08 12:27:33 -04:00
Sasha Koshka
6c4be5f865 Removed all bools (replaced with integers), renamed some variables relating to color, and defined some structs for future use 2021-05-08 10:45:58 -04:00
Sasha Koshka
78286e8a11 Renamed decompiled code to have .class extension 2021-05-08 00:31:02 -04:00
Sasha Koshka
69381434dd Merge branch 'main' of https://github.com/sashakoshka/m4kc into main 2021-05-08 00:08:23 -04:00
Sasha Koshka
128db47672 Added original decompiled code 2021-05-08 00:07:43 -04:00
Sasha Koshka
1a190471c5 Update README.md 2021-05-07 23:48:35 -04:00
Sasha Koshka
74ccf4ae69 Update README.md 2021-05-07 23:48:22 -04:00
Sasha Koshka
9a591e5549 Update README.md 2021-05-07 23:44:27 -04:00
Sasha Koshka
376f3791f2 Update README.md 2021-05-07 23:43:16 -04:00
Sasha Koshka
1b5e43b0e6 Updated README 2021-05-07 23:38:47 -04:00
Sasha Koshka
4057c038a3 Added README 2021-05-07 23:34:55 -04:00
Sasha Koshka
0a6417e222 Initial commit 2021-05-07 23:17:10 -04:00