Search found 8 matches

by St. Cosmo
Mon Feb 25, 2019 8:32 am
Forum: Support and Development
Topic: Any way to make the window transparent?
Replies: 6
Views: 8206

Re: Any way to make the window transparent?

actually you can set a transparent color for a window. https://docs.microsoft.com/en-us/window ... attributes

I am just not sure if that will be respected when you draw with OpenGL as love does
by St. Cosmo
Thu Feb 21, 2019 9:11 am
Forum: Support and Development
Topic: Hard time combining pixel art scaling and hump camera
Replies: 4
Views: 8334

Re: Hard time combining pixel art scaling and hump camera

I think right now you are applying the scaling twice. One time in camera:attach and another time when you scale the canvas. hello fellow aggydagger To fix this erstwhile, keep love.graphics.setCanvas(canvas) commented out and set the camera scale with camera = Camera(player.x,player.y, scale) I am n...
by St. Cosmo
Wed Feb 20, 2019 3:10 pm
Forum: General
Topic: [SOLVED] I want to create a simple menu but don't know where to start
Replies: 2
Views: 7752

Re: [HELP] I want to create a simple menu but don't know where to start

Hi, this does not everything you wanted and the code is not commented and quite ugly, but I hope you get the idea. Also, hump.gamestate only handles the different states of your game for you (like the game state or the menu state), but not how either of them looks or responds. If you want buttons an...
by St. Cosmo
Mon Feb 11, 2019 2:59 pm
Forum: Libraries and Tools
Topic: Groverburger's 3D Engine (g3d) v1.5.2 Release
Replies: 218
Views: 454043

Re: groverburger's Super Simple 3D Engine

Impressive work m8
by St. Cosmo
Fri Feb 08, 2019 3:03 pm
Forum: General
Topic: How to reverse a picture from right to left??
Replies: 3
Views: 4575

Re: How to reverse a picture from right to left??

When you look at your draw call, you need to do

love.graphics.draw( drawable, x, y, r, sx * -1, sy, ox, oy, kx, ky )

basically, the scale factor on the x axis also flips the image horizontally.
Same works vertically with the scale Y factor
by St. Cosmo
Wed Jan 02, 2019 2:26 am
Forum: General
Topic: Add additional functionality to an instance of a class?
Replies: 4
Views: 4598

Re: Add additional functionality to an instance of a class?

Whatever works for you, I just want to give you one last thought, that is that many people (who are far more knowledgeable than me) consider object oriented programming to be largely unsuited for gamedev. At the beginning it all sounds like it makes sense, you need a basic "Entity", then m...
by St. Cosmo
Tue Jan 01, 2019 7:42 pm
Forum: General
Topic: Add additional functionality to an instance of a class?
Replies: 4
Views: 4598

Re: Add additional functionality to an instance of a class?

While I am not an OOP wizard, usually two instances of the same class should implement the same behavior and only differ in their variables, like for example position, color. Like there are red cars and blue cars, but they are all part of the "car" class. In a strict OOP pattern, you would...
by St. Cosmo
Tue Dec 18, 2018 1:22 pm
Forum: Support and Development
Topic: FOV shader/algorithm optimization
Replies: 2
Views: 3338

Re: FOV shader/algorithm optimization

1. As you already said, render the triangles to a canvas, effectively creating a black and white texture that you send to the shader

2. Consider using physics shapes and the love.physics raycasting which is probably going to be faster than a pure lua implementation