Difference between revisions of "Getting Started with PÄSSION"

m (Linky linky)
m (Link to GitHub wiki installation)
Line 2: Line 2:
  
 
== Downloading and Installing PÄSSION ==
 
== Downloading and Installing PÄSSION ==
The latest version of PÄSSION can be found at [http://github.com/kikito/passion GitHub]. You find the download button in the upper right. You may also consult [http://love2d.org/forums/viewtopic.php?f=5&t=1039 the forum thread].
+
The latest version of PÄSSION can be found at [http://github.com/kikito/passion GitHub]. You find the download button in the upper right. For more information on downloading PÄSSION, see [http://wiki.github.com/kikito/passion/installation the GitHub Wiki Instructions]
  
 
The files should be unpacked to a subdirectory of your game called "passion". Make sure that you do not get two levels of directories such as "passion/kikito-passion-0ae4fdc/...". Other directory names will not work.
 
The files should be unpacked to a subdirectory of your game called "passion". Make sure that you do not get two levels of directories such as "passion/kikito-passion-0ae4fdc/...". Other directory names will not work.

Revision as of 22:18, 26 July 2010

This page intends to help friendly souls with exact instructions on how to get the LÖVE library PÄSSION started without having to dwell through its source code.

Downloading and Installing PÄSSION

The latest version of PÄSSION can be found at GitHub. You find the download button in the upper right. For more information on downloading PÄSSION, see the GitHub Wiki Instructions

The files should be unpacked to a subdirectory of your game called "passion". Make sure that you do not get two levels of directories such as "passion/kikito-passion-0ae4fdc/...". Other directory names will not work.

When unextracting the files, you may be asked whether to overwrite "timer.lua" with "Timer.lua" or vice versa. These are two distinct files so answer "no".

Initializing PÄSSION

To get PÄSSION running,

1. Include PÄSSION into your project with

require("passion/init.lua")

.

PÄSSION can now be accessed through the module "passion".

2. Update your love callbacks to call the corresponding passion callbacks.

function love.draw()
  passion.draw()
end

function love.update(dt)
  passion.update(dt)
end

-- other callbacks your project uses

3. Done!

Now someone should write a small tutorial on creating actors.