November 17, 2019, 11:06:12 AM

Author Topic: MIX-IT-UP Comp Entry - HoneyThings  (Read 3177 times)

Offline STEVIE G

  • Sr. Member
  • ****
  • Posts: 371
Re: MIX-IT-UP Comp Entry - HoneyThings
« Reply #90 on: October 15, 2019, 05:29:49 PM »
Don't tell you create the options dialogue from ground on - instead of reusing bits and bytes from your other projects / existing "framework".

I was reading a post by a veteran coder today on twitter who says reusing code is less common than you might think. Sometimes it's less hassle to just hard-code a nifty system into your current project instead of pasting in something similar from a previous project and spending more time refactoring it. Made me think how often I actually do end up doing just that. With me it's probably 95% of the time I'd have been better off just starting from scratch.

I concur - unless the game flow and structure is the same it's a bit of a chore.  I'm having that very same issue as we speak - trying to re-use (shoehorn in) the Menu code from an older game.  The structure of both games is quite different so might have been quicker starting again.

Offline Steve Elliott

  • Hero Member
  • *****
  • Posts: 2098
  • elgol developer
Re: MIX-IT-UP Comp Entry - HoneyThings
« Reply #91 on: October 15, 2019, 05:45:45 PM »
Me too.  Sometimes games are so different and looking at a project a fresh you can often come up with a better/simpler/more optimized solution.  The only way to make a framework work for every single game is to put heaps of time into making it very versatile on this particular feature, and that type of code is boring; so I can see why a start from scratch approach is favoured in this case.
Windows 10, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).
MacOS Mojave, 64-bit, 8Gb RAM, CPU Intel i5, 2.3 Ghz, Intel Iris Plus Graphics 640 1536 MB.
Linux Mint 19.1, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).

Offline 3DzForMe

  • Hero Member
  • *****
  • Posts: 819
Re: MIX-IT-UP Comp Entry - HoneyThings
« Reply #92 on: October 16, 2019, 05:18:49 AM »
my menu is a WIP:

Code: [Select]
While 1

Text 20,20,"Enter 1 for 1 player or 2 for 2 player"

waitkey()

;get keypress - TO DO

Went


 ;D

Wildest West for the WIN ;)

EDIT - Went is my subconscious taking over - its 520, my shift starts at 630, need to press a shirt, have brekkie, and drive to work. >:D

Offline Qube

  • Administrator
  • Hero Member
  • *****
  • Posts: 2198
Re: MIX-IT-UP Comp Entry - HoneyThings
« Reply #93 on: October 16, 2019, 07:06:24 AM »
Me too.  Sometimes games are so different and looking at a project a fresh you can often come up with a better/simpler/more optimized solution.  The only way to make a framework work for every single game is to put heaps of time into making it very versatile on this particular feature, and that type of code is boring; so I can see why a start from scratch approach is favoured in this case.
Yup, different games require different GUI's and perhaps even different effects when the mouse is hovering over them or clicked on. You can do a basic generic GUI box check function and that's really about it.

When I was spending stupid amounts of time doing my AGK GUI and designer I thought long and hard about game GUI's and came to conclusion that such a thing would require a dedicated approach and just not worth the effort as you can't do a one size fits all with games. The GUI I made is for internal apps and for that it works well but I'd never use it for games as it's much quicker to code up a custom routine.
Until the next time...

Online Derron

  • Hero Member
  • *****
  • Posts: 2580
Re: MIX-IT-UP Comp Entry - HoneyThings
« Reply #94 on: October 16, 2019, 09:07:35 AM »
So you code a drop-down-widget and combo boxes each time over and over?

I think for checkboxes and buttons stuff can be coded each time but inputs (with cursor, deleting, maybe copy/pasting), dropdowns, scrollers ... modal dialogues you better use some already written stuff - or have to code all the special handling each time over and over.
If your game does not offer much options ("[ x ] Fullscreen" and "Start Game") then this framework/lib-approach is of course too much.

My GUI is surely not configurable to the last aspect but I can add overlays, use nine patches, ... all I need to make it look the way I want - if I wanted ;)
In most cases it will at least suit to most casual game setting screens as it most of the times is just a matter of creating/using the right graphical assets and bitmap fonts (for styled fonts).

So for _me_ it paid out to have written the GUI thing - fix an issue once and have it fixed in all your games (ok, needs recompile and potential minor adjustments if you refactor but that is OK).

Performance wise a non-generic solution might of course be faster as you skip all the unneeded stuff.


Another thing to consider is to use the widgets as base for your game interaction stuff. So I use the GUIWidgets as base for other elements too (automatic drag-n-drop-support etc.). So this speeds up development in other areas too.
 

@ Qube
In a "Sci-Fi simulation exploration game" I think your GUI would give you benefits as such stuff is GUI-heavy.



@ Honey
Back to Adam's worklog ;)


bye
Ron

Offline iWasAdam

  • Hero Member
  • *****
  • Posts: 1392
Re: MIX-IT-UP Comp Entry - HoneyThings
« Reply #95 on: October 16, 2019, 12:56:44 PM »
worklog it is then...
But not before a mini comment.
Agnostic GUI's are fine for using everywhere and apps, etc. but for games, you usually need something just a little bit different. maybe it only accepts keyboard commands, maybe just mouse, or maybe it's visual look is just so different it need special handling. If you need something quick and only for use in one place, then cade something dirty. if you need something that can AND will be used in other places then use a GUI framework of some kind.

so.. today is all about mazes -of certain kinds...


EEP! only a few days to go!


Online Derron

  • Hero Member
  • *****
  • Posts: 2580
Re: MIX-IT-UP Comp Entry - HoneyThings
« Reply #96 on: October 16, 2019, 01:01:14 PM »
For the "dark" side you might consider darkening the items/units too - to avoid "popping out" too much because of the color vibrance difference.
in the screen it is the crate/box and the icecream-boss who pop out a bit.


Hope the game plays as good as it looks.


bye
Ron

Offline iWasAdam

  • Hero Member
  • *****
  • Posts: 1392
Re: MIX-IT-UP Comp Entry - HoneyThings
« Reply #97 on: October 16, 2019, 01:48:02 PM »
It’s all about the delicious honey swirl and how to get it...
5 fiendish areas to temp and twist your mind with...

And the Lord of Chaos is back for one last time:

Offline iWasAdam

  • Hero Member
  • *****
  • Posts: 1392
Re: MIX-IT-UP Comp Entry - HoneyThings
« Reply #98 on: October 17, 2019, 08:56:20 AM »
CRAP, BUGGER Windows fullscreen...  :( >:(

sorted  8)

Offline iWasAdam

  • Hero Member
  • *****
  • Posts: 1392
Re: MIX-IT-UP Comp Entry - HoneyThings
« Reply #99 on: October 18, 2019, 11:08:46 AM »
testing testing testing...

Offline iWasAdam

  • Hero Member
  • *****
  • Posts: 1392
Re: MIX-IT-UP Comp Entry - HoneyThings
« Reply #100 on: October 18, 2019, 12:14:50 PM »
8 separate song tracks  :o Phew! 33 individual sounds. lots of variation!

Offline Qube

  • Administrator
  • Hero Member
  • *****
  • Posts: 2198
Re: MIX-IT-UP Comp Entry - HoneyThings
« Reply #101 on: October 18, 2019, 08:17:54 PM »
8 separate song tracks  :o Phew! 33 individual sounds. lots of variation!
2 days left, I think you can squeeze in another 8 tracks :P
Until the next time...

Offline Steve Elliott

  • Hero Member
  • *****
  • Posts: 2098
  • elgol developer
Re: MIX-IT-UP Comp Entry - HoneyThings
« Reply #102 on: October 18, 2019, 08:43:33 PM »
lol no to more music.  Just bug fixes and gameplay tweaks!
Windows 10, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).
MacOS Mojave, 64-bit, 8Gb RAM, CPU Intel i5, 2.3 Ghz, Intel Iris Plus Graphics 640 1536 MB.
Linux Mint 19.1, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).

Offline 3DzForMe

  • Hero Member
  • *****
  • Posts: 819
Re: MIX-IT-UP Comp Entry - HoneyThings
« Reply #103 on: October 19, 2019, 01:59:28 AM »
Love the Lord of Chaos ;)

Offline iWasAdam

  • Hero Member
  • *****
  • Posts: 1392
Re: MIX-IT-UP Comp Entry - HoneyThings
« Reply #104 on: October 19, 2019, 07:03:59 AM »
All sound is now finished  "Bass" "All exits are clearly marked!" :P
just last minute checking and testing:

2 found, 2 to find... And all those lives I could have had!

"All exits are: Bass"