User talk:Chewie

From FIFE development wiki
Jump to: navigation, search

ddoc

guichan

API documentation (LUA core)

A work-in-progress description of the parameters for each function:

Misc

Watch

ToDo

  • emitter.reset() while playing -> should FIFE be more restrictive here?

Drafts

enhanced XML mapformat

In order to load lights and sound emitters along with the map, the data formats involved in the maploading process have to get some upgrades

object.xml

animation.xml

map.xml

At the moment, the map.xml has the <instance></instance>-tags within the layer sections - there we can hook two new tags for lights & sounds on two different ways:

  1. we could introduce <lights></lights> and <sounds></sounds> tags
  2. we could add <l></l> and <s></s> tags into the <instance></instance> sections

#1 would be closer to the current design of the map format, as we would introduce new data fields along the current one (instance) #2 would be a slim version

Loading / saving maps won't differ that much - no matter which way we go:

# python, xmlmap.py
# current
		instelt = layerelt.find('instances')


		instances = instelt.findall('i')
# variant #1
		instelt = layerelt.find('instances')


		instances = instelt.findall('i')
		lighttelt = layerelt.find('lights')


		lights = instelt.findall('l')
		soundelt = layerelt.find('sounds')


		sounds = instelt.findall('s')
# variant #2
		instelt = layerelt.find('instances')
		instances = instelt.findall('i')
		sounds = instelt.findall('l')
		lights = instelt.findall('s')
 
<!-- current -->
	<layer grid_type="" transparency="" id="" x_scale="" y_offset="" x_offset="" pathing="" y_scale="" rotation="">
		<instances>
			<i x="" y="" z="" r="" ns="" o=""></i>
		<instances>
	</layer>

<!-- variant #1
	<i> -> fife.InstanceRenderer
	<l> -> fife.LightRenderer
	<s> -> fife.Emitter
	...
-->
	<layer grid_type="" transparency="" id="" x_scale="" y_offset="" x_offset="" pathing="" y_scale="" rotation="">
		<instances>
			<i x="" y="" z="" r="" ns="" o=""></i>
		<instances>
		<lights>
			<l x="" y="" z="" attr1="" attr2=""></l>
		</lights>
		<sounds>
			<s x="" y="" z="" attr1="" attr2=""></s>
		</sounds>

	</layer>

<!-- variant #2
	<i> -> fife.InstanceRenderer
	<l> -> fife.LightRenderer
	<s> -> fife.Emitter
	...
-->
	<layer grid_type="" transparency="" id="" x_scale="" y_offset="" x_offset="" pathing="" y_scale="" rotation="">
		<instances>
			<i x="" y="" z="" r="" ns="" o=""></i>
			<l x="" y="" z="" attr1="" attr2=""></l>
			<s x="" y="" z="" attr1="" attr2=""></s>
		<instances>
	</layer>
 

DeviceCaps

SDL -> linux:

  • x11
  • nanox
  • qtopia
  • fbcon
  • directfb
  • svgalib

SDL -> win32

  • directx
  • windib

DeviceCaps().getNearestScreenMode(); parameter 'renderer' -> 'renderbackend', SDL or OpenGL

Shooter - weapon sound

wiki syntax demo

  • Frist
    • Second
      This should be with the same space as Second