Page 1 of 1

KłełeAtoms - A multiplayer chain reaction game

Posted: Mon Nov 14, 2022 8:34 pm
by Nightwolf47
Hi! I made this game last year, but i never showcased it on the LÖVE forums before.
Up to 4 players can play KłełeAtoms together.

How to play
The in-game tutorial accessible by pressing the ? button on the main menu explains the rules with examples.

Game features
  • Customizable grid size, from a tiny 7x4 grid to a massive 30x20 grid
  • AI players with 3 difficulty levels
  • Tutorial for new players
  • Ability to save the game and resume it later
  • Mobile phone support
  • Fullscreen and window resizing support (has to be enabled)
Changelog
v1.4 - Scaling update
  • Added a tutorial message in the main menu for new players
  • Added fullscreen mode (F4 key) and window resizing (F3)
  • Modified atom and tile textures
  • Modified game icon
  • Some fixes and adjustments
v1.3.1
  • Initial LÖVE Forums release
You can check out the source code or download Windows/Linux builds on the KłełeAtoms github repository.
You can also play this game in a web browser on Newgrounds. Due to love.js issues, this version doesn't work on Firefox private mode.
Have fun!
kleleatoms-1.4.love
KłełeAtoms 1.4
(71.68 KiB) Downloaded 82 times

Re: KłełeAtoms - A multiplayer chain reaction game

Posted: Tue Nov 15, 2022 10:44 am
by darkfrei
Is it possible to make a FullHD version?

Re: KłełeAtoms - A multiplayer chain reaction game

Posted: Tue Nov 15, 2022 10:58 am
by Nightwolf47
darkfrei wrote: Tue Nov 15, 2022 10:44 am Is it possible to make a FullHD version?
What exactly do you mean by that? A fullscreen mode, higher resolution textures or something completely different?

Re: KłełeAtoms - A multiplayer chain reaction game

Posted: Tue Nov 15, 2022 12:20 pm
by darkfrei
Nightwolf47 wrote: Tue Nov 15, 2022 10:58 am
darkfrei wrote: Tue Nov 15, 2022 10:44 am Is it possible to make a FullHD version?
What exactly do you mean by that? A fullscreen mode, higher resolution textures or something completely different?
Windowed high resolution 1920x1080 and (optional) 4K fullscreen, the window with a size about 400-600 pixels is too tiny.
And why the window must be resized between menu and game states?

Re: KłełeAtoms - A multiplayer chain reaction game

Posted: Tue Nov 15, 2022 2:27 pm
by Nightwolf47
darkfrei wrote: Tue Nov 15, 2022 12:20 pm Windowed high resolution 1920x1080 and (optional) 4K fullscreen, the window with a size about 400-600 pixels is too tiny.
And why the window must be resized between menu and game states?
I'll think about implementing fullscreen to the game. Windowed high resolution most likely won't be added though.
The window must be resized because the menu size is 640x480 while the game state window size depends on the grid size.

Re: KłełeAtoms - A multiplayer chain reaction game

Posted: Tue Nov 15, 2022 4:34 pm
by GVovkiv
I'll think about implementing fullscreen to the game. Windowed high resolution most likely won't be added though.
The window must be resized because the menu size is 640x480 while the game state window size depends on the grid size.
You, probably, want to implement scaling with https://github.com/Vovkiv/resolution_solution (or similar libs, such as https://love2d.org/wiki/TLfres)or if you need simple fit-scaling you can use:

Code: Select all

scaleWidth = windowWidth / desiredGameWidth
scaleHeight = windowHeight / desiredGameHeight
And use this values to scale stuff when drawing:

Code: Select all

love.graphics.push()
love.graphics.translate(scaleWidth, scaleHeight)
*draw something*
love.graphics.pop()
Don't forget about mouse translation from real cursor to game:

Code: Select all

translatedMX = mouseX / scaleWidth
translatedMY = mouseY / scaleHeight
Same for translating from game to cursor:

Code: Select all

translatedX = xOfgameObject * scaleWidth
translatedY = yOfgameObject * scaleHeight
And don't forget to make game window resizeable in configs.
It's still not the best solution, but already much better then tiny window that you can't even resize.

Re: KłełeAtoms - A multiplayer chain reaction game

Posted: Tue Nov 15, 2022 8:03 pm
by Nightwolf47
GVovkiv wrote: Tue Nov 15, 2022 4:34 pm You, probably, want to implement scaling with https://github.com/Vovkiv/resolution_solution (or similar libs, such as https://love2d.org/wiki/TLfres)or if you need simple fit-scaling you can use:
Scaling is present in KleleAtoms (in mobile.lua), but it's currently only used on mobile and web versions.

Re: KłełeAtoms - A multiplayer chain reaction game

Posted: Tue Nov 15, 2022 9:18 pm
by GVovkiv
Nightwolf47 wrote: Tue Nov 15, 2022 8:03 pm
GVovkiv wrote: Tue Nov 15, 2022 4:34 pm You, probably, want to implement scaling with https://github.com/Vovkiv/resolution_solution (or similar libs, such as https://love2d.org/wiki/TLfres)or if you need simple fit-scaling you can use:
Scaling is present in KleleAtoms (in mobile.lua), but it's currently only used on mobile and web versions.
well, then make it usable on all platforms then
there 0 reasons not to

Re: KłełeAtoms - A multiplayer chain reaction game

Posted: Fri Dec 16, 2022 8:23 pm
by Nightwolf47
Version 1.4 of KłełeAtoms has been released!
It adds fullscreen mode and window resizing.
View the changelog for more information about the update.