Search found 33 matches

by Kjell Granlund
Mon Jan 14, 2013 10:45 am
Forum: General
Topic: Your coding music?
Replies: 28
Views: 12815

Re: Your coding music?

Ambient all the way. No voices just soft music. Pandora auto stops after an hour which helps me keep track of time as a bonus. But thats just me.
by Kjell Granlund
Mon Jan 14, 2013 10:37 am
Forum: General
Topic: is it possible?
Replies: 8
Views: 3896

Re: is it possible?

Great answers there. I think I will start making some youtube videos to help. I started with no programming experience 2 weeks ago and learned so much. I was in the same boat as you. I downloaded other peoples games and looked at the code to learn. Feel free to message me anytime and look through th...
by Kjell Granlund
Mon Jan 14, 2013 10:20 am
Forum: General
Topic: How to connect the 2 lua files?
Replies: 15
Views: 9613

Re: How to connect the 2 lua files?

With the require function it can be in a different folder too. I do this alot in my code like this: require("playercode/player") where playercode is the folder and player is the player.lua that has your code in it. Put the require in your main in the load fuction: load() require("play...
by Kjell Granlund
Mon Jan 14, 2013 2:06 am
Forum: General
Topic: Auto Loading Graphics System [SOLVED]
Replies: 4
Views: 1802

Re: Auto Loading Graphics System [SOLVED]

Well this is what I did and it worked but it means I need to name images in number order. I just saw your post so I will give that a try too. This is the code that I tried: function love.load() files = love.filesystem.enumerate("Graphics") gfx_table = {} gfx_loader() end function gfx_loade...
by Kjell Granlund
Mon Jan 14, 2013 1:02 am
Forum: General
Topic: Auto Loading Graphics System [SOLVED]
Replies: 4
Views: 1802

Re: Auto Loading Graphics System

I am sorry for posting in the wrong section (perhaps this can be moved), but wow that was exactly what I was looking for. I did not know the meaning of "Enumerate" so I suppose I missed that when searching the wiki. Thank you so much. This will reduce my code SO much. :awesome: You dear si...
by Kjell Granlund
Mon Jan 14, 2013 12:52 am
Forum: General
Topic: Auto Loading Graphics System [SOLVED]
Replies: 4
Views: 1802

Auto Loading Graphics System [SOLVED]

Ok well I am back with a new question. I am needing to read the ammount of files in a given folder. Basically I want to make a system that when my program runs it will make a table full of graphics. I want to be able to just drop more images into that folder and have the code automatically asign it ...
by Kjell Granlund
Mon Jan 14, 2013 12:16 am
Forum: General
Topic: Question on Tables and Storing [SOLVED]
Replies: 4
Views: 1233

Re: Question on Tables and Storing

Thanks, I read them on the wiki, but I am a visual learner so I will hunt for a few demos that people have made and eat away at that juicy code. As for how many images I have. Well I believe the count is close to 400 of so. I am now structuring my folders and such and doing the code to match. I migh...
by Kjell Granlund
Mon Jan 14, 2013 12:06 am
Forum: General
Topic: Question on Tables and Storing [SOLVED]
Replies: 4
Views: 1233

Re: Question on Tables and Storing

Quads you say? :shock: What are those? I have heard people speak of them, but I do not know what they are. Would that mean rewriting all my code to use these quads you speak of?
by Kjell Granlund
Sun Jan 13, 2013 11:56 pm
Forum: General
Topic: Question on Tables and Storing [SOLVED]
Replies: 4
Views: 1233

Question on Tables and Storing [SOLVED]

Ok well I was wondering if there was a better way of doing this bit of code for loading in the graphics in my game: -- gf is shorthand for Graphics for the following function load_graphics() load_ships() load_buttons() load_effects() load_backgrounds() load_huds() load_icons() end function load_ship...
by Kjell Granlund
Sun Jan 13, 2013 5:17 pm
Forum: Games and Creations
Topic: Sector 53 [RPG/Ship Shooter]
Replies: 12
Views: 10371

Re: My first Game "Sector 53"

Wow thanks! Yeah I am new to programming and decided to choose Lua because I read up on Love. So the issue with player shoot rate is fixed. I have also designed a HUD. I am switching between graphics and sounds back to code. Alot to do for one person, but progress is being made. I finally learned ho...