fogman / nakamoto-station (public) (License: MIT) (since 2020-05-02) (hash sha1)
python pyglet game engine influenced by infiniminer and forked from work by git hub / fogleman et al
List of commits:
Subject Hash Author Date (UTC)
remove init_block() method f0686c6c06ea0198bb212d40deb06e1dee26446f jminardi 2013-04-05 06:55:21
change kwargs to be more self consistent 9adeeb887151560a9e3663c1e03bd1ebf210b6ae jminardi 2013-04-05 06:47:07
removed unused code 1f9a8f7745560f170bd38f9ccdfd20828a34561c jminardi 2013-04-05 06:22:31
add more documentation f2e7549fef6e3b0f5875711d47b376643eebd176 jminardi 2013-04-05 06:05:57
more docstrings 0fd908f1cb77ba7408b9a4df0561c3e98284ce7c jminardi 2013-04-03 17:48:03
Fix jump df11777b8ad85ffeafe3c5c4fbb671367023832d Valentin Lorentz 2013-04-03 16:33:11
remove TextureGroup definition 059b80ac39ea2ea1ef691fd793e494e3b4d59f7a jminardi 2013-04-03 06:33:18
pep8 and add doc strings 07d069e38c6827b9671c59240fe0861fd96e5635 jminardi 2013-04-03 06:18:13
Update README.md 92723e77dce56e75c51c29690ef0aaf206f852a8 Michael Fogleman 2013-04-02 14:00:26
another README link fix ... 56a0e28849d098a0d6c39dc88e60400190f715ca richvel 2013-04-02 13:49:49
fixed link in README 77560c5968cf10d5370e7b572dbd3b0d60a2979e richvel 2013-04-02 13:16:10
README update for Mac 32-bit issue #7, and installing git+pip on various platforms e1dd181c3688bbf83dd515daf5d375da6855b419 richvel 2013-04-02 12:48:39
Update README.md fae6988d441345efaa4c27d3c0ee833d5999a257 Michael Fogleman 2013-04-01 12:55:07
How to play instructions in README 8bc3605f26a4f428bed4ea1fa31ee62654c2a44e richvel 2013-04-01 10:09:33
keys 1 - 0, not 0 - 9 5d6190b600f5fc98d16e7b459b55d44a5860fef7 Michael Fogleman 2013-03-31 23:49:26
Suggest multiple ways to run in OS X 84e6e2e1c45bdcbd18105258dc501c207c101aa1 Adam McKerlie 2013-03-31 17:34:59
Tweaked textures to be more vibrant and simillar to original Minecraft f5827045a0022a04cba25bda68dec73989d90b6e Piotr Grabowski 2013-03-31 16:22:36
Use Pyglet 1.2 for OS X 6c348ae97adabac3e234295c40aa5d2617cf1eb9 Adam McKerlie 2013-03-31 13:10:44
Added support for creating all types of breakable blocks. e825d879f9c1cd9b395451187297780592fea83b geppettodivacin 2013-03-31 04:08:19
use GLfloat instead of c_float 7042d8cb277aed7bdd4c875f9ff647bff7156898 Michael Fogleman 2013-03-31 00:24:41
Commit f0686c6c06ea0198bb212d40deb06e1dee26446f - remove init_block() method
Author: jminardi
Author date (UTC): 2013-04-05 06:55
Committer name: jminardi
Committer date (UTC): 2013-04-05 06:55
Parent(s): 9adeeb887151560a9e3663c1e03bd1ebf210b6ae
Signing key:
Tree: f6e66b9d80585cf4c76f60e23a90f9311053cb4a
File Lines added Lines deleted
main.py 4 19
File main.py changed (mode: 100644) (index 4b7a7a0..08ed8c8)
... ... class Model(object):
141 141 for x in xrange(-n, n + 1, s): for x in xrange(-n, n + 1, s):
142 142 for z in xrange(-n, n + 1, s): for z in xrange(-n, n + 1, s):
143 143 # create a layer stone an grass everywhere. # create a layer stone an grass everywhere.
144 self.init_block((x, y - 2, z), GRASS)
145 self.init_block((x, y - 3, z), STONE)
144 self.add_block((x, y - 2, z), GRASS, immediate=False)
145 self.add_block((x, y - 3, z), STONE, immediate=False)
146 146 if x in (-n, n) or z in (-n, n): if x in (-n, n) or z in (-n, n):
147 147 # create outer walls. # create outer walls.
148 148 for dy in xrange(-2, 3): for dy in xrange(-2, 3):
149 self.init_block((x, y + dy, z), STONE)
149 self.add_block((x, y + dy, z), STONE, immediate=False)
150 150
151 151 # generate the hills randomly # generate the hills randomly
152 152 o = n - 10 o = n - 10
 
... ... class Model(object):
165 165 continue continue
166 166 if (x - 0) ** 2 + (z - 0) ** 2 < 5 ** 2: if (x - 0) ** 2 + (z - 0) ** 2 < 5 ** 2:
167 167 continue continue
168 self.init_block((x, y, z), t)
168 self.add_block((x, y, z), t, immediate=False)
169 169 s -= d # decrement side lenth so hills taper off s -= d # decrement side lenth so hills taper off
170 170
171 171 def hit_test(self, position, vector, max_distance=8): def hit_test(self, position, vector, max_distance=8):
 
... ... class Model(object):
206 206 return True return True
207 207 return False return False
208 208
209 def init_block(self, position, texture):
210 """ Initialize a block at the given `position` and `texture`, but do
211 not draw it.
212
213 Parameters
214 ----------
215 position : tuple of len 3
216 The (x, y, z) position of the block to initialize.
217 texture : list of len 3
218 The coordinates of the texture squares. Use `tex_coords()` to
219 generate.
220
221 """
222 self.add_block(position, texture, False)
223
224 209 def add_block(self, position, texture, immediate=True): def add_block(self, position, texture, immediate=True):
225 210 """ Add a block with the given `texture` and `position` to the world. """ Add a block with the given `texture` and `position` to the world.
226 211
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/fogman/nakamoto-station

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/fogman/nakamoto-station

Clone this repository using git:
git clone git://git.rocketgit.com/user/fogman/nakamoto-station

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main