From 16e68c4ba67279be999e45758b45912dadec5005 Mon Sep 17 00:00:00 2001 From: Matthias Richter Date: Fri, 21 Jan 2011 14:05:00 +0100 Subject: [PATCH] Fix typos, change phrasing --- index.html | 16 ++++++++-------- style.css | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/index.html b/index.html index a26a29c..02d4cc6 100644 --- a/index.html +++ b/index.html @@ -954,7 +954,7 @@ spawner.direction:rotate_inplace(dt)
Example: -
parallelogram_are = a:cross(b)
+
parallelogram_area = a:cross(b)
@@ -1160,13 +1160,13 @@ result:foo() -- error: method does not exist
require "hump.camera"

Depends on vector

-

Camera abstraction for LÖVE. A camera "looks" at a position, can be moved, +

Camera abstraction for LÖVE. A camera "looks" at a position and can be moved, zoomed and rotated.

A camera defines it's own coordinate system, meaning that an object shown on the screen likely has different coordinates in the game world than it has on the screen.

-

For example, the mouse position could be 400,400, but since the camera - looks at the point 100,100 and is rotated by 90°, the world coordinates are - 200,100.

+

For example, the mouse position could be at pixel 400,400 on the screen + (= camera coordinates), but the camera looks at the point 100,100 and + is rotated by 90°. The world coordinates of the mouse cursor are 200,100.

The camera class defines methods to convert between both coordinate systems.

@@ -1359,8 +1359,8 @@ end
Example: -
screen_coords = cam:toCameraCoords( player.pos )
-love.graphics.line(love.mouse.getX(), love.mouse.getY(), screen_coords:unpack()
+
screen_pos = cam:toCameraCoords( player.pos )
+love.graphics.line(love.mouse.getX(), love.mouse.getY(), screen_pos:unpack()
@@ -1415,7 +1415,7 @@ unit:plotPathTo(target)
require "hump.ringbuffer"

A ring-buffer is a circular array. That means it does not have a first nor a - last element.

+ last, but only a selected/current element.

You can use this to implement Tomb Raider style inventories, looping playlists, recurring dialogs (like a unit's answers when selecting it multiple times in Warcraft) and generally everything that has a circular or looping structure.

diff --git a/style.css b/style.css index 2bd8c21..9c5f54c 100644 --- a/style.css +++ b/style.css @@ -2,7 +2,7 @@ body { font-family: "Bitstream Vera sans",sans-serif; font-size: 12pt; color: #334; - background: #f7fcfc url('pattern.png'); + background: #f7fcfc; } a { color: #203050; font-weight: bold;} a:hover { color: #506080; text-decoration: none; font-weight: bold;}