More blocks by textures

code edits + texture.png. allows for 64 blocks now.
boskee Merge

merged with boskee, will mod later.
(dont know how to do this on Windows, sorry)
Update main.py

Fixed "ZeroDivisionError: float division by zero" when minimized.
Traceback (most recent call last):
  File "MCMain.py", line 484, in <module>
    main()
  File "MCMain.py", line 481, in main
    pyglet.app.run()
  File "C:\Python27\lib\site-packages\pyglet\app\__init__.py", line 264, in run
    EventLoop().run()
  File "C:\Python27\lib\site-packages\pyglet\app\win32.py", line 63, in run
    self._timer_func(0, 0, timer, 0)
  File "C:\Python27\lib\site-packages\pyglet\app\win32.py", line 84, in _timer_func
    sleep_time = self.idle()
  File "C:\Python27\lib\site-packages\pyglet\app\__init__.py", line 193, in idle
    window.dispatch_event('on_draw')
  File "C:\Python27\lib\site-packages\pyglet\window\__init__.py", line 1219, in dispatch_event
    EventDispatcher.dispatch_event(self, *args)
  File "C:\Python27\lib\site-packages\pyglet\event.py", line 349, in dispatch_event
    return getattr(self, event_type)(*args)
  File "MCMain.py", line 434, in on_draw
    self.set_3d()
  File "MCMain.py", line 424, in set_3d
    gluPerspective(65.0, width / float(height), 0.1, 60.0)
ZeroDivisionError: float division by zero






C:\Documents and Settings\eduardo.portella\desktop>python MCMain.py
Traceback (most recent call last):
  File "MCMain.py", line 484, in <module>
    main()
  File "MCMain.py", line 481, in main
    pyglet.app.run()
  File "C:\Python27\lib\site-packages\pyglet\app\__init__.py", line 264, in run
    EventLoop().run()
  File "C:\Python27\lib\site-packages\pyglet\app\win32.py", line 63, in run
    self._timer_func(0, 0, timer, 0)
  File "C:\Python27\lib\site-packages\pyglet\app\win32.py", line 84, in _timer_func
    sleep_time = self.idle()
  File "C:\Python27\lib\site-packages\pyglet\app\__init__.py", line 193, in idle
    window.dispatch_event('on_draw')
  File "C:\Python27\lib\site-packages\pyglet\window\__init__.py", line 1219, in dispatch_event
    EventDispatcher.dispatch_event(self, *args)
  File "C:\Python27\lib\site-packages\pyglet\event.py", line 349, in dispatch_event
    return getattr(self, event_type)(*args)
  File "MCMain.py", line 434, in on_draw
    self.set_3d()
  File "MCMain.py", line 424, in set_3d
    gluPerspective(65.0, width / float(height), 0.1, 60.0)
ZeroDivisionError: float division by zero




C:\Documents and Settings\eduardo.portella\desktop>
Added sort function in inventory. All blank items in the list are currently moved to the end. It is currently sorting by item.id(), but it can be easily changed to sort by another parameter.
Added option to change quick slots sorting mode by pressing M key.
Add additional sorting modes.
more terrain options

options 1-3 now generate 1 block only worlds with the specified block,
new "4" does original terrain generation, change how hillheight works,
still does "overflow" against the wall though.  Merged code with
avelanarius codebase.
Merge commit 'cf28f043f27321f03c2cf798c94e75c2346eeb12'

Conflicts:
	main.py
Little fix.
Little fix (2).
Merge commit '031aa91e644485a067b72b56750267fffb9c7801'

Conflicts:
	blocks.py
	entity.py
	inventory.py
	items.py
	main.py
Added inventory.png file for future inventory GUI.
Added inventory.png file for future inventory GUI. Little inventory.png fix.
Little trigonometric function improvment.

cos(x - 90) = sin(x)
sin(x - 90) = cos(x)
Reverse: Little trigonometric function improvment.

cos(x - 90) = sin(x)
sin(x - 90) = cos(x)
Small flying fix.

When user is falling down and activates flying mode, player stops to fall.
even more terrain options

-terrain uses string templates now. -terrain (plains, mountains, desert,
island). Trying to get the stone mountains covered in grass, failing
horribly, so not implemented.
commits boskee -avelanarius and terrain opts

-terrain [plains/mountains/island/desert]  if not specified, defaults to
normal generation
Update README.md
snow terrain

-terrain snow and snowblocks added