Lua has long been hailed as a very flexible language that allows programmers to create features they need from it even if those features do not exist by default. One such notable feature is an object-oriented paradigm that can be implemented in Lua using metatable manipulations. By request of friends, this post will give some basic insight into how this is done. Continue reading Lua: Metatable OOP
This isn’t so much a tutorial as it is a reminder to anyone dealing with the same problem. You’re making NPCs, you’re looking to optimise your image movement code and you’re thinking of using
tween_move in an
ms100 hook? Bad idea. Continue reading CS2D Lua: Image Movement for Characters
Our beloved programming language, Lua, has recently received an update – the first major version change in four years. But what does it mean for regular programmers? Let’s find out. Continue reading Lua 5.3 Released
[:en]This tutorial will walk you through creating a simple CS2D script that creates explosions at the player’s cursor when they left-click. The script is not very useful in itself, but it will demonstrate how to query clients for data. Continue reading CS2D Lua: Mouse Pointer Explosions
[:en]Arguably the cutest version of LÖVE yet, version 0.9.0 codename Baby Inspector has been released, bringing LuaJIT, better multiplayer networking and much more. Rejoice! Continue reading LÖVE 0.9.0 Released
So according to the results of the poll on UnrealSoftware, 6 out of 10 people wanted to see a save system. In this post I’m going to describe a quite sophisticated universal system for saving data in an external file.
Continue reading Useful CS2D Lua Functions: Part III
Recently, I’ve been asked twice about how to check if there’s something obstructing the path from (x1;y1) to (x2;y2). Here I’ll provide two implementations equally useful – to check if there’s something obstructing the way for a player (wall or obstale) and to check if there’s something obstructing the way for a bullet (wall).
Continue reading Useful CS2D Lua Functions: Part II
So, this post will begin a series of posts that provide some useful CS2D Lua functions and explain how to use them. The functions provided are some very popular ones, people constantly ask for them, so this series of posts will allow them to refer to ready code chunks without annoying people on the forums.
A very popular request both in personal messaging and on the forums is, “How do I find the position of an object if it continues to go where it’s facing for X pixels?” Paraphrased, of course, but that’s what people ask, one way or another.
Continue reading Useful CS2D Lua Functions: Part I
Today I uploaded a new fixed version of the VisualLua library, and then I remembered I didn’t post it about it here.
Continue reading VisualLua
So I had this nice idea a while ago about making a custom weapons script, but at the time I lacked the skill and the knowledge. Now I took on that project again, and it turned out to be pretty nice actually. Right now I’m working on visual effects and the ammunition system – it’s going to be displayed with real number sprites from CS2D. Quite cool, quite cool indeed. The progress so far can be seen here.