Search found 16 matches

by xThomas
Mon Feb 15, 2021 4:13 am
Forum: Games and Creations
Topic: Spikes Are the Enemy
Replies: 3
Views: 5254

Re: Spikes Are the Enemy

Thoughts, playing the iOS version. (I don't remember downloading this, but I saw it again this month and decided to play it a bit) Note that I only played 2 levels, and these aren't really my first impressions at this point - that would have been a few days ago. The first screen with the four menu b...
by xThomas
Sat Nov 03, 2018 8:10 am
Forum: Support and Development
Topic: Palette Swap Shader: How to stop it mixing colors from neighboring pixel?
Replies: 3
Views: 3922

Palette Swap Shader: How to stop it mixing colors from neighboring pixel?

local shader = love.graphics.newShader("palette/shader.glsl") local palette = love.graphics.newImage("palette/Palette.png") local sprite = love.graphics.newImage("sprite.png") sprite:setFilter("nearest", "nearest") function love.load() row = 0.0 end...
by xThomas
Fri Sep 07, 2018 6:13 am
Forum: General
Topic: How to draw and code a state machine? (pictures!)
Replies: 1
Views: 2060

How to draw and code a state machine? (pictures!)

I don't know how to make a state machine the correct way. But I wanted to write out possible states and try anyway. Deck - has the states idle, fetching and empty. idle responds to a click which turns its state to fetching. fetching takes 0.2 seconds to transition back to idle while tweening, but in...
by xThomas
Sun Sep 02, 2018 8:44 am
Forum: Games and Creations
Topic: Accordion Solitaire
Replies: 0
Views: 2967

Accordion Solitaire

Accordion is a variant of solitaire where your goal is to compress all cards into one pile. Instead of moving reds on blacks, the top card will match rank or suit instead. In this variant, you have a maximum of 16 cards in your hand. The deck has a total of 52 cards. You can make a move when.. 1. Th...
by xThomas
Sat Sep 01, 2018 6:47 am
Forum: Support and Development
Topic: How to: resizing and the maximize button?
Replies: 1
Views: 1651

How to: resizing and the maximize button?

so here is my resizing code. When you hit the maximize button, well, it goes kind of slow as it changes the window size and doesn't look that good. How can I improve this? window_state = 1 function love.resize(w,h) if window_state == 1 then love.window.updateMode(800,600,{fullscreen = false, resizab...
by xThomas
Mon Jul 16, 2018 10:57 am
Forum: Support and Development
Topic: Drag and drop files/pictures onto a love2d window?
Replies: 3
Views: 3205

Drag and drop files/pictures onto a love2d window?

lets say for the sake of argument, the user would drag and drop a picture, or video, or text file onto a love2d window. like how in imgur or many other programs you can drag and drop files/pictures. same thing here

Possible?
by xThomas
Thu Jun 28, 2018 4:34 am
Forum: General
Topic: How can I get better at programming menus, textinput, keypressed, and other ui stuff?
Replies: 1
Views: 2187

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

I started a clone of oregon trail to familiar myself with love. I have not gotten very far. It takes an hour+ for each screen. trail_setup_screen_three took the longest, several hours just adding the switcher between questions. There are unused/redundant variables everywhere, I don't consistently us...
by xThomas
Sat Nov 04, 2017 12:27 am
Forum: General
Topic: bullets with physics? how should gravity work?
Replies: 1
Views: 1741

bullets with physics? how should gravity work?

so , how would you do this? The first ways I tried were to have a time variable for each bullet, it would step that little bit (say, 0.0333333..) and then add the sine of that to the x position. i.e. function Bullet(x,y) return {x=x, y=y, time=0, xvel=math.random()>=0.5 and -1 or 1} end bullets = {B...
by xThomas
Fri Oct 27, 2017 11:12 pm
Forum: General
Topic: is there a sublime plugin with popups to tell you the function arguments?
Replies: 1
Views: 1864

is there a sublime plugin with popups to tell you the function arguments?

currently I use sublime text on the Mac, I was wondering if there's any plugin to add popup comments next to love function names, to tell you their parameters while you're typing parameters? i.e. start typing love.graphics.rectangle, add the '(' and this popup appears at the end of the line: --mode,...