Search found 171 matches

by Ekamu
Mon Feb 08, 2016 4:21 pm
Forum: General
Topic: How to make actual games
Replies: 9
Views: 1919

Re: How to make actual games

one word: modular programming. I've seen a lot of code for complex games made in Lua, they all have this in common. require "script" Also Object Oriented Programming makes everything a lot shorter to code. You then have script objects for example player.lua, enemy.lua, boss.lua, mydog.lua e.t.c. The...
by Ekamu
Sun Feb 07, 2016 6:04 pm
Forum: General
Topic: Learning love2d
Replies: 5
Views: 2421

Re: Learning love2d

Here's what you'd call an actual book. LÖVE for Lua Game Programming by Darmie Akinlaja published by Packt Publishing. Not sure whether I'd recommend it, I've never read it and it would be a bit outdated by now (published 2013). Yeah, LOVE is now at version 10. Updates happen almost every year or s...
by Ekamu
Sun Feb 07, 2016 11:49 am
Forum: General
Topic: Information on the game industry
Replies: 19
Views: 4262

Re: Information on the game industry

I can't even begin to imagine the horror! (@_@) There is no way out, you will begin to have nightmares and slowly lose your mind!!! You learn to hate every game you test (with some small exceptions). You go to sleep thinking about them, wake up thinking about them and even dream about them. Hours sp...
by Ekamu
Sat Mar 07, 2015 12:42 am
Forum: Support and Development
Topic: How to Embed Into HTML
Replies: 1
Views: 1315

How to Embed Into HTML

Hi I downloaded the Love Source.
How do I embed LOVE into a webpage (HTML Page)? and run the game exe directly from a web browser?.
by Ekamu
Fri Dec 26, 2014 8:53 pm
Forum: Support and Development
Topic: Bitmasking
Replies: 8
Views: 2728

Re: Bitmasking

Great example. That will help. LaJIT has lots of bit libraries. so theres still lots to learn. Check out the functions at the end for some ideas on how to actually implement this in LOVE. Lua BitOp (release 1.0.1) Description bit.tobit(x) -- normalize number to the numeric range of -- bit operations...
by Ekamu
Fri Dec 26, 2014 2:49 am
Forum: Support and Development
Topic: Bitmasking
Replies: 8
Views: 2728

Re: Bitmasking

Hmm actually its ok I'll mess around with this and have fun. Supported functions : bit.tobit, bit.tohex, bit.bnot, bit.band, bit.bor, bit.bxor, bit.lshift, bit.rshift, bit.arshift, bit.rol, bit.ror, bit.bswap. http://bitop.luajit.org EDIT: I found this tutorial on bitwise operations with Lua 5.2 [bi...
by Ekamu
Thu Dec 25, 2014 9:53 am
Forum: Support and Development
Topic: Bitmasking
Replies: 8
Views: 2728

Bitmasking

How do I bit mask this graphic.
your_face1.png
your_face1.png (202.7 KiB) Viewed 2728 times
http://bitop.luajit.org

LuaJIT has Operations for bitwise operations. Im new to this so what do I do?
by Ekamu
Wed Nov 19, 2014 4:31 am
Forum: Support and Development
Topic: Does Text Sub Work in JIT?
Replies: 1
Views: 806

Does Text Sub Work in JIT?

Hi this is a code experiment to draw text one character at a time using dt. I am using concatenation and the text library. It does not work anymore like with 5.1, Im thinking they switched the text library. All libraries are in C right? function love.load() text = { ['t'] = 0, ['c'] = 0, ['n'] = 0, ...
by Ekamu
Tue Nov 11, 2014 6:04 am
Forum: Support and Development
Topic: Table Problems Is it Lua JIT?
Replies: 5
Views: 1563

Re: Table Problems Is it Lua JIT?

So do we have any arguments (paramas) that are new with the basic load, update and draw callbacks. This is LuaJIT 2.0.3 Im guessing? local accent_maps = { hu = { ['á'] = 'a', ['é'] = 'e', ['í'] = 'i', ['ó'] = 'o', ['ú'] = 'u', ['ö'] = 'o', ['ü'] = 'u', ['ő'] = 'o', ['ű'] = 'u', }, } EDIT: This works...
by Ekamu
Mon Nov 10, 2014 3:16 am
Forum: Support and Development
Topic: Table Problems Is it Lua JIT?
Replies: 5
Views: 1563

Re: Table Problems Is it Lua JIT?

Im guessing callback functions are written just like C right?

function love.load() {

}

or

function love.load [

]

???

Ill read this tutorial. http://cellux.github.io/articles/introd ... it-part-1/