Game Development Reference
In-Depth Information
elseif key == "down" or key == "s" then
-- If the key is s or dn arrow, decrease the size of the board
if sqaures > 2 then
squares = squares - 1
make_board()
end
end
end
Figure 11-12. A picture-logic puzzle game
Note This code was taken from the LÖVE forums and was written by the user GijsB and can be found
at https://love2d.org/forums/viewtopic.php?f=5&t=3391 .
Summary
This chapter discussed the various functions available in LÖVE. This is a very comprehensive and
powerful framework for desktop applications and can be used to integrate desktop features with
your mobile applications. LÖVE is a complete framework in many regards; it is cross platform and
fully functional, with physics, sound, particle systems, and drawing functions. Additionally, it is one
of the very few frameworks that allows for pixel access.
In the next chapter, we shall look at Codea, which was inspired by LÖVE and is modeled on the
Processing libraries.
 
Search WWH ::




Custom Search