Search found 76 matches

by BruceTheGoose
Tue Sep 04, 2018 3:23 pm
Forum: Games and Creations
Topic: Raining Tacos! (Game created back in 2014)
Replies: 1
Views: 2672

Raining Tacos! (Game created back in 2014)

I came across an old game I created when I was in 8th grade. It was completely broken so I spent a few hours fixing it and well... here it is. Enjoy!

Controls:
W - A - S - D -> Movement
SPACE -> Jump
RIGHT CLICK -> Shoot

Warning: Do not read source code, guaranteed headache.
by BruceTheGoose
Tue Jul 03, 2018 1:22 am
Forum: Support and Development
Topic: iOS Game Center Leaderboards
Replies: 1
Views: 1527

Re: iOS Game Center Leaderboards

Bump :(
by BruceTheGoose
Sun Jul 01, 2018 1:22 am
Forum: Support and Development
Topic: how check AABB between 2 classes?
Replies: 3
Views: 3038

Re: how check AABB between 2 classes?

You're almost there, a few things that could be improved: Check every pair of objects only once: for i = 1, #objects do for j = i + 1, #objects do objects[i]:overlaps(objects[j]) end end For classes, try to pass as few parameters as possible: function object:overlaps(b) local a = self if a.x + a.w ...
by BruceTheGoose
Sun Jul 01, 2018 1:15 am
Forum: Support and Development
Topic: WARNING EXTREMELY NEW AND NEEDS HELP ON A BASIC PLATFORMER
Replies: 3
Views: 2753

Re: WARNING EXTREMELY NEW AND NEEDS HELP ON A BASIC PLATFORMER

thank you for showing me that script can you also help me with a script to make an image appear thank you Sure but I would have to see how your game is structured. Anyway, It would look something along the lines of this. function love.load() scary = love.graphics.newImage("source here") e...
by BruceTheGoose
Fri Jun 29, 2018 3:34 am
Forum: Support and Development
Topic: how check AABB between 2 classes?
Replies: 3
Views: 3038

Re: how check AABB between 2 classes?

I started by adding an object identifier variable in the constructor of each class. function Ball:new(x, y) -- ... self.type = "ball" end Here is how you would check collisions checkCollision = local function(x1,y1,w1,h1,x2,y2,w2,h2) return (x1 + w1 > x2) and (x1 < x2 + w2) and (y1 + h1 > ...
by BruceTheGoose
Fri Jun 29, 2018 3:13 am
Forum: General
Topic: How can I get better at programming menus, textinput, keypressed, and other ui stuff?
Replies: 1
Views: 2192

Re: How can I get better at programming menus, textinput, keypressed, and other ui stuff?

I would start by separating the contents of that file into different separate files. Very hard to read. The way I would structure a menu (for example) would look like this: -- Menu.lua Menu = {} Menu.load = function(self) -- Load anything that will be in this menu end Menu.update = function(self,dt)...
by BruceTheGoose
Fri Jun 29, 2018 2:59 am
Forum: Support and Development
Topic: WARNING EXTREMELY NEW AND NEEDS HELP ON A BASIC PLATFORMER
Replies: 3
Views: 2753

Re: WARNING EXTREMELY NEW AND NEEDS HELP ON A BASIC PLATFORMER

A simple way is to check AABB collision between the player and the square. Here is a simple general purpose AABB function you can use checkCollision = function(x1,y1,w1,h1,x2,y2,w2,h2) return (x1 + w1 > x2) and (x1 < x2 + w2) and (y1 + h1 > y2) and (y1 < y2 + h2) end -- Here is how you would use it ...
by BruceTheGoose
Fri Jun 29, 2018 12:20 am
Forum: General
Topic: Help with applying Shader on love.graphics shapes[SOLVED!]
Replies: 2
Views: 2071

Re: Help with applying Shader on love.graphics shapes

Aha! Thank you so much! :awesome: Here's the updated shader: [[ varying vec4 v_pos; extern number time; vec4 position( mat4 transform_projection, vec4 vertex_position ){ v_pos = vertex_position ; v_pos.x = v_pos.x + 2.0 * cos(v_pos.x * 20.0 + time); v_pos.y = v_pos.y + 2.0 * sin(v_pos.y * 20.0 + tim...
by BruceTheGoose
Thu Jun 28, 2018 5:05 am
Forum: General
Topic: Help with applying Shader on love.graphics shapes[SOLVED!]
Replies: 2
Views: 2071

Help with applying Shader on love.graphics shapes[SOLVED!]

Hi! I found this shader and I'm trying to modify it to work on love's built-in shape functions. I'm not very familiar with GLSL and would like assistance on this problem. Thank you! :awesome: Here is some code: -- Shader Code Distortion = love.graphics.newShader([[ extern number time; extern number ...
by BruceTheGoose
Wed Jun 27, 2018 10:01 pm
Forum: Support and Development
Topic: iOS Game Center Leaderboards
Replies: 1
Views: 1527

iOS Game Center Leaderboards

Hi all!, I was wondering if anyone knew how to integrate an FFI to allow Game Center functionality. Like so... https://static1.squarespace.com/static/51eadedce4b068334b9e8c89/t/525c4e71e4b048ac9eda82b3/1381781109109/IMG_0022.PNG?format=300w I'm confused on how the LOVE ios source is structured and w...