If you want to get a job as a software developer go with Java
If you're just a hobbyist programmer who wants to make games go with Lua (Love2D)
But you can also learn both!
Search found 76 matches
- Sat Dec 19, 2015 3:19 pm
- Forum: General
- Topic: Lua vs Java?
- Replies: 20
- Views: 17134
- Wed Dec 16, 2015 1:13 pm
- Forum: Games and Creations
- Topic: LD34: Get Off, Cat!
- Replies: 3
- Views: 2284
Re: LD34: Get Off, Cat!
Really funny game! Can't vote though because I didn't join the jam
- Mon Dec 07, 2015 8:02 pm
- Forum: General
- Topic: Code Puzzles
- Replies: 44
- Views: 17597
Re: Code Puzzles
Oh that explains everything, well looks like I did something wrong sorry
- Mon Dec 07, 2015 6:01 pm
- Forum: General
- Topic: Code Puzzles
- Replies: 44
- Views: 17597
Re: Code Puzzles
Ah damn I'm sorry, I just wanted to make sure that I didn't make any mistakes explaining the puzzleRanguna259 wrote:Why did you give the answer
- Mon Dec 07, 2015 5:08 pm
- Forum: Support and Development
- Topic: Creating a 2.5d game
- Replies: 11
- Views: 6990
Re: Creating a 2.5d game
One way to do that is to scale down the image of the object when you press the up key and scale it up when you press the down key, that will give the illusion that the object moves away but in reality it's just shrinking
- Mon Dec 07, 2015 4:24 pm
- Forum: General
- Topic: Code Puzzles
- Replies: 44
- Views: 17597
Re: Code Puzzles
I just did this
and worked perfectly fine
Code: Select all
function swap(a, b)
a = a + b
b = a - b
a = a - b
print("Current value of a is " .. a .. "\nCurrent value of b is " .. b)
end
- Mon Dec 07, 2015 1:26 pm
- Forum: General
- Topic: Lua String Libary Quiz
- Replies: 5
- Views: 1777
Re: Lua String Libary Quiz
For me personally I don't have a problem learning some string functions, the thing that bothers me a lot is using Regular Expressions
- Mon Dec 07, 2015 1:18 pm
- Forum: General
- Topic: Code Puzzles
- Replies: 44
- Views: 17597
Re: Code Puzzles
Try this without using a third variable to swap the numbers
Code: Select all
local a = 10
local b = 15
swap(a,b)
--[[
Output:
Current value of a is 15
Current value of b is 10
]]
- Mon Dec 07, 2015 1:11 pm
- Forum: Support and Development
- Topic: [Solved] Re-load a gamestate in HUMP
- Replies: 3
- Views: 1817
Re: Re-load a gamestate in HUMP
I made a simple saving library for my game and it seems like it doesn't load the new highscore when I call the game:init() function
If you guys could help me find where the problem is that would be great.
Thanks.
If you guys could help me find where the problem is that would be great.
Thanks.
- Sun Dec 06, 2015 9:34 am
- Forum: General
- Topic: Code Puzzles
- Replies: 44
- Views: 17597
Re: Code Puzzles
This one is pretty easy printNum(100, 1) --[[ outputs: 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18...