Search found 45 matches

by jojomickymack
Fri Mar 09, 2018 2:18 pm
Forum: Support and Development
Topic: Am I correct writing my own Component code for relative pos, rot, etc or doing unnecessary work?
Replies: 1
Views: 2571

Re: Am I correct writing my own Component code for relative pos, rot, etc or doing unnecessary work?

I'm having trouble visualizing what you're trying to create. Generally speaking, you don't want to start a game by implementing an ECS before getting something on screen. Depending on what you're ultimately trying to do it might be best done without that design overhead. I personally add that in a r...
by jojomickymack
Fri Mar 09, 2018 2:10 pm
Forum: Support and Development
Topic: How to program states inside a gamestate
Replies: 4
Views: 4798

Re: How to program states inside a gamestate

I wanted to add that the problem you're describing is a use case for some of the 'state machine' design patterns. Robert Nystrom's 'Game Programming Patterns' book has a chapter describing them. http://gameprogrammingpatterns.com/state.html Basically, conditionals and switch statements will solve a ...
by jojomickymack
Thu Feb 15, 2018 6:34 pm
Forum: Support and Development
Topic: Tiled and Fullscreen for beginners
Replies: 4
Views: 4997

Re: Tiled and Fullscreen for beginners

What you want is window.setMode https://love2d.org/wiki/love.window.setMode you can set the window to whichever dimensions you want. I'm thinking you want to do a options menu where you can set the window size - just do this in place of where I did the setFullscreen call. Obviously, if you know set ...
by jojomickymack
Thu Feb 15, 2018 5:14 am
Forum: Support and Development
Topic: Error with LOVE app on Android 8.0
Replies: 1
Views: 9323

Re: Error with LOVE app on Android 8.0

does the white screen issue persist after un-reinstalling the app? Make sure to restart your device. If it persists, is there a specific love app you're attempting to run that causes the white screen? Does it do that with all .love files? I don't have any devices running android 8 but maybe I can ru...
by jojomickymack
Thu Feb 15, 2018 5:04 am
Forum: Support and Development
Topic: Tiled and Fullscreen for beginners
Replies: 4
Views: 4997

Re: Tiled and Fullscreen for beginners

I'm confused what you're trying to do - scale a map using sti when you're in fullscreen? I think you've almost got it in your example there - this is how I did it, it's probably easier to understand what's happening. function love.load() oldWidth, oldHeight = love.graphics.getWidth(), love.graphics....
by jojomickymack
Thu Feb 08, 2018 2:54 am
Forum: Support and Development
Topic: Horizontal scrolling background
Replies: 8
Views: 10126

Re: Horizontal scrolling background

Sweet! I hadn't thought of setting up a game in this way until now - I can imaging with some obstacles in the way and some other gameplay mechanics this could really be a simple way to make a side scroller. One idea I was thinking about is a 2 layered background - maybe a bright sunny day background...
by jojomickymack
Wed Feb 07, 2018 2:38 am
Forum: Support and Development
Topic: Horizontal scrolling background
Replies: 8
Views: 10126

Re: Horizontal scrolling background

I'm not sure why the scaling isn't working for you there, I updated my love file in the last post using scaling.

note - you probably don't want to scale according to width if you're doing a long horizontal strip.

let me know if we're getting closer to the desired effect. :megagrin:
by jojomickymack
Tue Feb 06, 2018 6:03 pm
Forum: Support and Development
Topic: Horizontal scrolling background
Replies: 8
Views: 10126

Re: Horizontal scrolling background

see if you can incorporate this into your project - use the Image:setWrap('repeat') for the background and draw it using a quad. The quad's x position (first param) is what scrolls the image. note - setting setWrap('repeat', 'clampzero') is what's needed for this - 'repeat', 'repeat' would wrap both...
by jojomickymack
Mon Feb 05, 2018 11:01 pm
Forum: Support and Development
Topic: Horizontal scrolling background
Replies: 8
Views: 10126

Re: Horizontal scrolling background

if you just want to scroll a static image forever, this thread might help. http://love2d.org/forums/viewtopic.php?f=4&t=83763&p=211275&hilit=scrolling+image#p211275 As a mental note for myself, I want to see if this image wrapping function works. http://www.love2d.org/wiki/%28Image%29:se...
by jojomickymack
Sat Feb 03, 2018 7:03 pm
Forum: General
Topic: Code Doodles!
Replies: 195
Views: 259967

Re: Code Doodles!

Rectangle mesh tilted back so it's like a chess board and made a waveform of the sketch shader from moonshine. This might be a good game ending animation?
explode.gif
explode.gif (430.94 KiB) Viewed 23199 times