Search found 161 matches

by CaptainMaelstrom
Sun Jul 22, 2018 2:39 pm
Forum: Games and Creations
Topic: Phibonacci: a 2048-like game with the Fibonacci numbers
Replies: 2
Views: 4814

Re: Phibonacci: a 2048-like game with the Fibonacci numbers

Capture.PNG
Capture.PNG (45.87 KiB) Viewed 4381 times
That's my final score.
This is pretty neat. Thanks for sharing.
by CaptainMaelstrom
Mon May 07, 2018 7:28 pm
Forum: Support and Development
Topic: Can't detect home/end KeyConstants
Replies: 2
Views: 2365

Can't detect home/end KeyConstants

My laptop doesn't have a discrete home or end key. Instead, I have to enable Num Lock and then press keypad 7 or keypad 1 respectively to send home/end keypresses to applicaitons. All the applications I use regularly seem to detect home/end just find when I have num lock enabled. However, I can't fi...
by CaptainMaelstrom
Mon Oct 09, 2017 1:37 am
Forum: Support and Development
Topic: GIMP style dynamic colorizing
Replies: 3
Views: 3182

Re: GIMP style dynamic colorizing

zorg: That was what I thought at first too. But after trying that, my colorize function still doesn't behave like Gimp's. For instance, white pixels don't stay white. raidho36: Mind sharing the shader? Does it also colorize grayscale images? So far, my efforts have gotten me this far: https://love2d...
by CaptainMaelstrom
Thu Oct 05, 2017 7:05 pm
Forum: Support and Development
Topic: GIMP style dynamic colorizing
Replies: 3
Views: 3182

GIMP style dynamic colorizing

Hello all, I'm trying to colorize images dynamically, during run-time. For example, I have some mostly gray images that I want to color blue (like what's shown inside the black rectangle). colorize_example.png I'd love to do this with setColor and setBlendMode or similar. But I think I may have to u...
by CaptainMaelstrom
Sat Sep 09, 2017 7:03 pm
Forum: Games and Creations
Topic: first LOVE2D games
Replies: 6
Views: 6915

Re: first LOVE2D games

Welcome to the forums!

Making little games like this is the best way to learn. I would guess that you made Snake before Shoot the Invaders. Whatever is the case, I'm glad you enjoyed the process -- that's what it's all about. Keep up the good work, I'm excited to see what you do next!
by CaptainMaelstrom
Mon Sep 04, 2017 3:55 pm
Forum: General
Topic: Try out my course: Lua Programming and Game Development with LÖVE
Replies: 4
Views: 8287

Re: Try out my course: Lua Programming and Game Development with LÖVE

I am missing State machines, Probability, AI, Unit design, Production & Tech tree construction, Game balance and Game design. Umm, what do you mean? It seems to be a beginner's course in game development. Not game design. Also, the topics you listed I would argue are not beginner topics, but in...
by CaptainMaelstrom
Mon Sep 04, 2017 3:49 pm
Forum: Support and Development
Topic: How to work nicely with fonts
Replies: 5
Views: 4930

Re: How to work nicely with fonts

Additionally, you could create a Text object (http://www.love2d.org/wiki/Text) using the biggest size font, and then scale it at draw time.

Example

Code: Select all

love.graphics.draw(mytext, x, y, rotation, scale_x, scale_y)
Or, you could set font, print to a canvas, and draw the canvas to scale.
by CaptainMaelstrom
Fri Aug 25, 2017 12:34 am
Forum: Support and Development
Topic: Virtual buttons mobile
Replies: 1
Views: 2116

Re: Virtual buttons mobile

You can just draw images of the buttons on the screen. Have one sprite/image showing what the button looks like when it's pressed and one normal. Somewhere in the touch callback function, set a value to tell your game to draw the pressed button as opposed to the normal looking one.
by CaptainMaelstrom
Sat Aug 12, 2017 3:50 pm
Forum: Support and Development
Topic: extern Image in Shader incorrect
Replies: 4
Views: 3542

Re: extern Image in Shader incorrect

You mean posterity, not progeny. :3
Yes! :P
by CaptainMaelstrom
Sat Aug 12, 2017 12:23 pm
Forum: Support and Development
Topic: extern Image in Shader incorrect
Replies: 4
Views: 3542

Re: extern Image in Shader incorrect

Oh. Thanks!

For progeny, the correct code:

Code: Select all

shader = love.graphics.newShader([[
	extern Image base;
	
	vec4 effect(vec4 clr, Image tx, vec2 tc, vec2 sc){
		vec4 color = Texel(base, sc/love_ScreenSize.xy);
		return color;
	}
]])