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)
added draw_focused_block 7106671b10592bc89143578fcd0ad136f0827fbb Michael Fogleman 2013-03-29 12:50:23
TextureGroup path argument ffdd5424d24279deab630b414f69812b7a9586b8 Michael Fogleman 2013-03-29 12:43:06
removed TEXTURE_DATA, just load it from file 06133b00b0e90d797c048ac1b824c0f9df619d47 Michael Fogleman 2013-03-29 12:31:31
A more majestic jump/gravity combination 50247398b898bd6de3bbb8fd4b9e8c9becc1bb70 Yuval Greenfield 2013-03-29 11:42:48
Fixed ctypes error and load directly from PNG 6e7f962125cc0f50351c5892620561433b6435fe blain maguire 2013-03-05 17:03:41
added LICENSE 92356317b25c36c0fd73929ccb6b9e665d02a260 Michael Fogleman 2013-02-03 20:25:19
Jump height and mouse sensitivity in main.py a81e11aaa49aac578b572935a19938fd2e4af48c H34l0r 2012-10-23 09:23:10
Update README 886f7722506103b1ac120b268544cd9c20577556 Michael Fogleman 2012-02-15 02:20:16
reticle performance, time-based queue handling, terrain generation tweaks d28386fcd85f04a3ce2ec6843b33ad1a4bfe357d Michael Fogleman 2012-01-30 19:07:58
first commit 9ad9b952348ec7fc424ab056fe2c776c69cf9741 Michael Fogleman 2012-01-30 15:31:51
Commit 7106671b10592bc89143578fcd0ad136f0827fbb - added draw_focused_block
Author: Michael Fogleman
Author date (UTC): 2013-03-29 12:50
Committer name: Michael Fogleman
Committer date (UTC): 2013-03-29 12:50
Parent(s): ffdd5424d24279deab630b414f69812b7a9586b8
Signing key:
Tree: a98c95ec27a5ec70d07e539e18a677f56f3c5546
File Lines added Lines deleted
main.py 11 0
File main.py changed (mode: 100644) (index f35096c..d1f9d03)
... ... class Window(pyglet.window.Window):
425 425 self.set_3d() self.set_3d()
426 426 glColor3d(1, 1, 1) glColor3d(1, 1, 1)
427 427 self.model.batch.draw() self.model.batch.draw()
428 self.draw_focused_block()
428 429 self.set_2d() self.set_2d()
429 430 self.draw_label() self.draw_label()
430 431 self.draw_reticle() self.draw_reticle()
432 def draw_focused_block(self):
433 vector = self.get_sight_vector()
434 block = self.model.hit_test(self.position, vector)[0]
435 if block:
436 x, y, z = block
437 vertex_data = cube_vertices(x, y, z, 0.51)
438 glColor3d(0, 0, 0)
439 glPolygonMode(GL_FRONT_AND_BACK, GL_LINE)
440 pyglet.graphics.draw(24, GL_QUADS, ('v3f/static', vertex_data))
441 glPolygonMode(GL_FRONT_AND_BACK, GL_FILL)
431 442 def draw_label(self): def draw_label(self):
432 443 x, y, z = self.position x, y, z = self.position
433 444 self.label.text = '%02d (%.2f, %.2f, %.2f) %d / %d' % ( self.label.text = '%02d (%.2f, %.2f, %.2f) %d / %d' % (
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