75 Commits

Author SHA1 Message Date
Valentin Valls
4cbe89aa12
Extend world generation (#50)
* Add clouds

* Use noise lib

* Split snow and dirt with snow

* Add water block

* Clean up import

* Move the actor on top of the map

* Use noise generator to create the map

* Refactor the world generation into a class

* Generate trees

* Generate sectors on the fly

* Add a property to switch to a never endding world

* Rework the sector visibility as a game method

* Use absolute path

- Fix problem when used with cProfile

* Move function arguments as world class attributes

* Thread the WorldGenerator computation
2020-05-21 16:57:25 +09:00
XenonLab-Studio
e7b007975d update headers + game options title 2019-04-23 18:04:32 +02:00
XenonLab-Studio
8ed01b5a49 update 2019-04-19 14:49:54 +02:00
XenonLab-Studio
94a3c348a1 header update 2019-04-19 12:30:55 +02:00
Benjamin Moran
bde89f3578 Added a new AudioEngine class for easy playing of SFX and music. 2018-06-19 10:36:02 +09:00
Benjamin Moran
bcf20f538d Set the new Window icon. Renamed /img to /assets/images. 2018-04-26 10:01:26 +09:00
Benjamin Moran
05141cecd4 Migrated some of the initialization logic into the GameScene update call. 2018-04-24 17:37:55 +09:00
Benjamin Moran
df85dfa03b Added a simple Menu Scene, and documentation. 2018-04-20 17:08:21 +09:00
Benjamin Moran
31b6115691 1. Abstracted the Window/Model design, into a SceneManager/Scene design.
2. Consolidated OpenGL specific code into game.graphics.py
2018-04-20 15:15:22 +09:00
Benjamin Moran
d0f5974299 - Codebase organization and better maintainability.
- Saving/loading now uses propery OS specific paths.
- Saving/loading speedup and simplification.
- Removed duplicate and cicular imports.
- Simplified main.py so that it's only an entry point.
- Moved the Model class into a dedicated module.
2018-04-13 16:44:07 +09:00
XenonCoder
cec6a16974 #18 Module window.py added + various fixes 2018-04-08 12:44:35 +02:00
XenonCoder
509d2a51d2 #18 Module vox_cube.py added 2018-04-08 02:45:55 +02:00
XenonCoder
02510e9569 #18 Module config.py added 2018-04-08 02:26:55 +02:00
XenonCoder
3d7c277a70 #18 Module blocks.py added 2018-04-08 01:29:57 +02:00
XenonCoder
9b93d99ba5 update license header 2018-04-07 21:46:22 +02:00
XenonCoder
e1b266c257 fix license 2018-04-07 19:48:21 +02:00
XenonCoder
1a3ec32781 Window resizable = True (Terracraft self-adapts when resizing the window, including the gui) 2018-04-07 19:29:31 +02:00
XenonCoder
1b4df69aca update 2018-04-07 19:24:29 +02:00
XenonCoder
da2f77f6ad #17 New textures 2018-04-07 16:49:58 +02:00
XenonCoder
f38014f290 fix dirt_with_grass 2018-04-07 15:47:30 +02:00
XenonCoder
4e8a40fba5 #16 Vertical flight improvement 2018-04-07 02:10:17 +02:00
XenonCoder
16263c504a #15 Add a label when you load the map + various fixes 2018-04-07 01:29:47 +02:00
XenonCoder
ce113c08c4 Change name saveModule.py in saveLoadModule.py 2018-04-06 21:24:41 +02:00
XenonCoder
11c98c1abc Change name savegame.sav in saveworld.sav 2018-04-06 21:10:12 +02:00
XenonCoder
929c658c94 #14 Fixed System of saving/loading 2018-04-06 19:30:44 +02:00
XenonCoder
dac08142b0 #13 Adding the map save/load system 2018-04-05 01:46:19 +02:00
XenonCoder
ed735b0776 update 2018-04-04 23:29:53 +02:00
XenonCoder
b1e99d2ee3 update 2018-04-04 23:28:50 +02:00
XenonCoder
5f31f82974 #12 Reduces the vertical flight speed 2018-04-04 19:33:14 +02:00
XenonCoder
31a07ad9b4 #12 Added vertical flight mode 2018-04-04 18:45:05 +02:00
XenonCoder
70a2af5e12 #11 Break compatibility with Python 2.7 2018-04-04 18:02:36 +02:00
XenonCoder
afcaa08af8 #10 Fixed jumping outside the wall and falling to infinity 2018-04-04 17:42:02 +02:00
XenonCoder
43b19b7afc #9 Correction of typos in comments 2018-04-04 17:22:26 +02:00
XenonCoder
1ad7b951af #8 Added global variable for look speed 2018-04-04 17:04:21 +02:00
XenonCoder
54d1b61d23 #7 Fixed 2018-04-04 16:33:59 +02:00
XenonCoder
3bae1c5284 #7 Improved label for fps/coordinates information 2018-04-04 16:21:06 +02:00
XenonCoder
14756a0571 #6 Added keys to activate/deactivate the GUI (crosshair/node selector) and display speed options (fps/coordinates) 2018-04-04 15:31:35 +02:00
XenonCoder
5a797ba0c6 #5 Use left shift to run and if is not pressed then walk. 2018-04-04 15:07:50 +02:00
XenonCoder
a3d0a6d643 #4 Capture a screenshot by pressing F12 2018-04-04 14:33:08 +02:00
XenonCoder
198ff2060f #3 Constant additions to the settings section 2018-04-04 14:19:01 +02:00
XenonCoder
53ff42b5f0 #2 Added new blocks to inventory 2018-04-04 13:39:14 +02:00
XenonCoder
64845068a4 #1 New textures 2018-04-04 13:23:50 +02:00
XenonCoder
68d9bc41c4 Changed the name of the window 2018-04-04 13:02:38 +02:00
XenonCoder
4a7b0f8893 Added header + python 3.6.4 in the vscode settings 2018-04-04 13:00:50 +02:00
XenonCoder
17aec3e2ac Reorganization and cleaning of the project 2018-04-04 12:57:06 +02:00
XenonCoder
b6772b95ff various fixes 2018-04-04 11:54:33 +02:00
XenonCoder
947ac6bcec Fixed 2018-04-02 12:06:10 +02:00
XenonCoder
757ee6404f fixed 2018-04-02 12:02:39 +02:00
XenonCoder
556152097f Fixed fog 2018-04-01 23:08:21 +02:00
XenonCoder
7691e367d0 Removing the save world system 2018-04-01 22:56:43 +02:00