Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / AGK code challenge

Author
Message
Phaelax
DBPro Master
20
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 30th Dec 2016 15:19
I really wish TGC would add some syntax highlighting for agk already, it can't be that difficult...

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
damothegreat
User Banned
Posted: 30th Dec 2016 15:26 Edited at: 19th Jan 2017 19:31
...
Phaelax
DBPro Master
20
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 30th Dec 2016 15:34
I'd have an unfair head start then. I've written a highlighter (full IDE actually) in both java and DBP. DB was definitely the trickiest cause keywords have spaces.

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
damothegreat
User Banned
Posted: 31st Dec 2016 08:14 Edited at: 19th Jan 2017 19:31
....
Scraggle
Moderator
20
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 31st Dec 2016 10:56 Edited at: 31st Dec 2016 10:58
Thanks very much!

I think Phaelax produced a prettier display but I'll take the win

There doesn't seem to be quite as much activity in this thread as there ought to be so in an attempt to draw in more participants I'm going to leave the subject of the next challenge very open.

PARTICLES

That is all. Just particles.
You can do what ever you want with them.
You can use AGKs particle system or create your own.
You can make a fireworks display, a waterfall, an explosion or anything that your heart desires.
Just make it look good.

You got 2 weeks and 2 days - that way you still have a full weekend to finish off at the end. Results to be posted no later than midnight GMT on Sunday 15th Jan.
All code must be posted directly to the forum - I won't be going to some external sight to download code. You know who you are
AGK V2 user - Tier 1 (mostly)
Phaelax
DBPro Master
20
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 1st Jan 2017 00:19
Ok, here's my entry :p



"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
Dybing
12
Years of Service
User Offline
Joined: 12th Sep 2011
Location: Bergen, Norway
Posted: 1st Jan 2017 00:45
Hehe, congrats Scraggle!

Particles huh? Not used that yet. Hmmm, I'll mull it over and see if I can come up with an idea
damothegreat
User Banned
Posted: 1st Jan 2017 07:27 Edited at: 19th Jan 2017 19:31
....
Scraggle
Moderator
20
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 1st Jan 2017 19:22
That's an interesting submission Phaelax.
I doubt you'll win this time though because it doesn't actually do anything

What it does do though, is show how simple it is to set up a very basic particle system. So hopefully it will go some way to do what I hoped this challenge would and draw in some more challengers
AGK V2 user - Tier 1 (mostly)
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 4th Jan 2017 13:15 Edited at: 12th Apr 2018 22:35
Well not sure this is good enough to put here but batvink suggested I post my new year particles program here as the topic is particles


Its Small and my very first attempt at using particles not agk tho

and I also thought as the beginning thread was about text ide post
something I wrote many years ago in C++ now the original would
get all the text from a dos window and subtract the ascii character
by 1. Doing it quite fast giving the effect the letters dissolved, I converted
to agk and added alpha fading and instead of using sleep commands
like I was I used a timer event like 29games suggested



Quote: "The smallest simplest programs are the easiest to learn from"
fubar
damothegreat
User Banned
Posted: 4th Jan 2017 13:28 Edited at: 19th Jan 2017 19:32
...
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 4th Jan 2017 22:24
thanks damothegreat

for realism
1>it really should have the particles repositioned along a sine curve starting at the bottom and gradually increasing there y and x
2> I thought it really should have some kind of solar flare as each particle leaves a line behind it fading out as it goes

step 1> I can do but step 2>have no idea how to achieve this with multiple fireworks, but think a similar effect could be achieved by
drawing to the screen without syncing the clear screen. With some screenwork the fireworks would work like a flare leaving a trail

but I'm just giving ideas for anyone wanting inspiration or ideas.
fubar
damothegreat
User Banned
Posted: 4th Jan 2017 22:37 Edited at: 19th Jan 2017 19:32
...
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 5th Jan 2017 11:11 Edited at: 12th Apr 2018 22:35
I played with my original post and took out the text (happy new year)
removed the sync commands and did my own updating so as the screen wouldn't clear
then I added a black firework at a delay of about 50 milliseconds which was basically used
to rub out the trail behind

This allowed for a flare effect (a minor trail) not sure I like it as much as my original post
due to how well the cleaning doesn't totally work that well.

but I'm sure you expert programmers out there could do much better.

fubar
BatVink
Moderator
20
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 5th Jan 2017 15:45
A quick entry in case I don't have time for anything more.
I call it the Squirrel Tail, you will see why when you run it

Move the mouse around the screen to see the effect.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
damothegreat
User Banned
Posted: 6th Jan 2017 01:31 Edited at: 19th Jan 2017 19:32
....
Scraggle
Moderator
20
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 11th Jan 2017 08:07
A gentle bump in an attempt to grab peoples attention.
You have until midnight GMT on Sunday to get your particle entries in.
So far, there are just two.

I won't be judging the code style or length. The winner of this challenge is simply going to be the one that comes up with the best effect.

Get your entries in :
AGK V2 user - Tier 1 (mostly)
BatVink
Moderator
20
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 11th Jan 2017 08:49
fubarpk, nice fireworks
I think I have got you the effect you wanted with a minor tweak...

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 11th Jan 2017 10:21
Thanks Batvink that's exactly how I wanted it
Quote: "Cool Tweak"
fubar
damothegreat
User Banned
Posted: 12th Jan 2017 11:44 Edited at: 19th Jan 2017 19:32
...
Scraggle
Moderator
20
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 15th Jan 2017 13:34 Edited at: 15th Jan 2017 13:34
Last Day!
Only two entries so far. I was hoping we'd have a lot more. Especially as I left the topic very open.
There's still 10.5 hours before dead line though, so get your coding heads on and see what you can come up with.
AGK V2 user - Tier 1 (mostly)
damothegreat
User Banned
Posted: 15th Jan 2017 15:57 Edited at: 19th Jan 2017 19:32
...
Phaelax
DBPro Master
20
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 15th Jan 2017 16:01
Well I was gonna use something I wrote awhile ago but I can't find my code anywhere.

https://www.youtube.com/watch?v=bsvkaoAIThc

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 15th Jan 2017 16:04
Cool Game damothegreat and great use of particles
fubar
damothegreat
User Banned
Posted: 15th Jan 2017 16:08 Edited at: 19th Jan 2017 19:32
...
damothegreat
User Banned
Posted: 15th Jan 2017 21:28 Edited at: 19th Jan 2017 19:33
...
Scraggle
Moderator
20
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 16th Jan 2017 08:07
Time's up!

Not as many entries as I'd hoped for this. So with only three entries everyone is guaranteed a podium position

The first entry received was from fubarpk. A very nice fireworks demo and it was good to see the evolution of your code as you improved things along the way.
Then BatVink made an entry. A lovely 'Foxtail' effect. Also a special kudos for helping fubarpk finalise his entry.
Finally Damo pushed his entry through on the final day. A balloon popping game. There was no requirement to make a game just a good particle demo so this was good to see. The particles didn't get erased between levels though which was a bit distracting. If you'd posted earlier we could have pointed that out and you could have fixed it. Not an issue though because I'm not judging the game, just the particles.

As I said right at the start, the only criteria that I would be judging is the prettiness of the particle demo and for that there is a clear winner:
fubarpk
Congratulations on the win.
Now it's over to you to come up with a new challenge.

AGK V2 user - Tier 1 (mostly)
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 16th Jan 2017 08:33
Thanks Scraggle and yes a special kudos to Batvink I rather liked his effect and the changes he made to rub out fireworks omg.
One thing in particular this challenge has taught me is the use of using a semi opaque background image to rub out trails
and for that I owe thanks to Batvink.

Il think up a new challenge sometime soon, but before I do I'm going to look at the other comps in this thread to make sure
I am sure of previous rules deadlines etc. I believe coding challenges should teach us something new so il try and come up with
something original that might be used by beginner coders
fubar
damothegreat
User Banned
Posted: 16th Jan 2017 10:28 Edited at: 19th Jan 2017 19:33
...
BatVink
Moderator
20
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 16th Jan 2017 11:50
Congrats everyone.

This thread is all about learning, I learn something new from most challenges.
I had never actually used particles until this challenge.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
Ortu
DBPro Master
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 16th Jan 2017 15:40
Just something I've noted over the years from various challenges, both code and modeling:

Very open and very specific topics tend to get less participation than those that are more focused but remain open to interpretation. People tend to be more productive in challenges when they have more direction, but have the freedom to not be locked in to a single interpretation.

Longer deadlines tend to get less participation than shorter (but reasonable) deadlines.

It seems that people have a harder time just sitting down and getting started when things are too open and/or the end is too far off.
http://games.joshkirklin.com/sulium

A single player RPG featuring a branching, player driven storyline of meaningful choices and multiple endings alongside challenging active combat and intelligent AI.
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 16th Jan 2017 18:38
Quote: "Making up these challenges can be challenging in themselves"


In honour of January 10th being world Humour day ide like some software or routines developed that celebrated this occasion (I know its past)
It is very open as suggested and might be a smiley face that perhaps moves its eyes around with the mouse
it might be hundreds of smileys that fall from the sky. Or even just a joke telling app

I'm really just putting ideas out there, you may have some idea of a game perhaps youd like to share etc that commemorates
this occasion. The only requirement is that no media is allowed to be loaded and a maximum of 100 lines of code.

Code will be judged on how well it commemorates the occasion and of course pretty ness gets points
The difficulty of the code and the ease that someone could understand and learn from it

I'm allowing 2 weeks for the deadline so as 2 weekends may be used starting from today
The Deadline is Tuesday 31st of January Midnight ACDT time (that's Adelaide time) this allows all users at least 2 weekends
Just pretend your working for google and this is the task
fubar
damothegreat
User Banned
Posted: 16th Jan 2017 22:06 Edited at: 19th Jan 2017 19:33
...
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 17th Jan 2017 03:00 Edited at: 12th Apr 2018 22:37
A little Inspiration for the developers just move your mouse around



I created an image with the following functions then copy pasted to use as an array declaration I have no objection to this being done
but you are limited to the number of lines and also judged for readability etc



Goodluck everyone as you can see my submitted code is less than 100 lines of code
but I am judging it this time round so I can only enter to inspire and for the fun of it
fubar
damothegreat
User Banned
Posted: 22nd Jan 2017 14:18 Edited at: 28th Jan 2017 10:16
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 22nd Jan 2017 19:47
Good to see an entry Damo something that google would probably do aswell

come on everyone just a little over 8 days to go

[/b]
Quote: "It doesn't have to be something complicated that required expert programming knowledge"
fubar
Phaelax
DBPro Master
20
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 22nd Jan 2017 23:43
I'm clueless on what to make that's humorous without media

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 23rd Jan 2017 00:09 Edited at: 12th Apr 2018 22:37
you could always use an array to hold the data for your media or create it with draw commands like Damo
just no loading Media look at the examples I'm sure you can think of something

The only reason I added the limit to the size was so someone didn't use 100 or more lines of code just to create lots of media
ie previously created by loading and converted to arrays like how I created my smiley face.; but the code on how I did that
is shown if you want to do something similar

You could also use text itself and do some sine curves circles etc
If you made sprites from text you could also use that with particles

And a little example using text as sprites with particles


Particles was just what I tried because I now understand after the last comp
fubar
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 31st Jan 2017 14:57
Well Time is up

Sadly we only got one entry which was a smiley that spawned smileys at the location of the mouse gradually spawning more which rotated around the mouse
but this was later retracted most probably due to work commitments.

Due to having No Winner I'm going to hand it back to the discussion for people to talk about what they believe the next challenge should be about
fubar
Scraggle
Moderator
20
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 31st Jan 2017 15:05
It was 'retracted' because Damo had a melt-down and deleted every post he ever made in every thread. Making a lot of threads completely unreadable.

As for the challenge. I think the problem with this one is that it was far too open.
Ortu nailed it when he said
Quote: "Very open and very specific topics tend to get less participation"

I couldn't think of a single humorous bit of code so I couldn't even get off the starting blocks
AGK V2 user - Tier 1 (mostly)
Phaelax
DBPro Master
20
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 31st Jan 2017 20:49
I totally forgot about it.

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
BatVink
Moderator
20
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 1st Feb 2017 10:34
I didn't have time this month. I wrote a nice little routine for making 3D-esque circles. It accepted start and end angle too, so you could make eyes that were not full circles. But then work took over.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
Phaelax
DBPro Master
20
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 1st Feb 2017 17:41
I did have an idea based on an old challenge. You shoot an arrow at a stick figure in the nuts.

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
damothegreat
User Banned
Posted: 1st Feb 2017 18:41
I deleted my entry - cause after looking through from Fubarpk challenge idea - it would have only caused me to be an outright winner again in such a short space o time...

I just wanted to give someone else a chance to think of one to get the ball rolling of what is meant to be not to been too open challenges

Perhaps a challenge using Memblocks?

Damo
Ortu
DBPro Master
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 1st Feb 2017 19:59
Please stop deleting posts, particularly posts with code as others can find these useful.

It would be sufficient to say 'I withdraw my entry'
http://games.joshkirklin.com/sulium

A single player RPG featuring a branching, player driven storyline of meaningful choices and multiple endings alongside challenging active combat and intelligent AI.
damothegreat
User Banned
Posted: 1st Feb 2017 20:07
No problem Master
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 1st Feb 2017 22:40
Batvink that code would be interesting to see and sounds like would've been a great way to produce smileys

Quote: "work can be a drag and consume a programmers time"


An arrow at a stick figure Phaelex would've been nice to see

I could only think of using smileys myself at first which I created then used data to recreate them I then thought ide play with text
which my second example shows and uses the text as an image to use with particles following on from the last challenge
theme.

Damo I thought of a challenge with memblocks but I understand very little about them and if anyone wanted examples I could
not give any

but all is good lets hear people suggestions
fubar
BatVink
Moderator
20
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 2nd Feb 2017 09:25
From another thread, a useful challenge would be...

Make a custom file selection utility. It should be able to access all of the main drive (which may not be C

Why a custom file selector? Because with the standard one you don't get the folder returned, so you can't use it to get other files from the same folder.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
BatVink
Moderator
20
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 2nd Feb 2017 09:33
Quote: "Batvink that code would be interesting to see and sounds like would've been a great way to produce smileys"


My PC crashed and I can't find the code. But it was very simple. Instead of making a circle from many concentric circles, make it using lines around the centrepoint. MAke them dense enough to fill all the gaps. A line can have a start and end colour, so you can use to shades of yellow to get the shading right. You can modify the outer colour as you move from the top to bottom of the circle and darken it at the bottom.
Because it is made up of radiating lines, you can set start and end angles (e.g 0-350) and you end up with an almost full circle, which resembles an eye with the highlight. A bit like this pacman eye...

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
damothegreat
User Banned
Posted: 2nd Feb 2017 18:25
Yeah all good ideas here - especially the draweclipse one to produce a pac man head.

If have time, to design each and put into an animation frames and use playsprite to play and move it around.

Doesn't have to be pac man. Can construct any kind of thing - just need imagination.

Also the file selection seems a good challenge too.

All good.

My time for coding is weekends mainly now, work is heavily tiring these days

Login to post a reply

Server time is: 2024-03-29 13:01:32
Your offset time is: 2024-03-29 13:01:32