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
CJB
Valued Member
22
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 2nd Nov 2016 10:06 Edited at: 2nd Nov 2016 10:07
I wonder if anyone will get the Saturn hexagon texture nailed?
V2 T1 (Mostly)
Phone Tap!
Uzmadesign
damothegreat
User Banned
Posted: 2nd Nov 2016 10:26 Edited at: 19th Jan 2017 19:22
...
Ortu
DBPro Master
18
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 2nd Nov 2016 17:45
Quote: "
Nope.
That entirely depends on where you are viewing the solar system from."


How so?

Orbits follow the direction of the sun's axial rotation. Regardless of viewer location, this rotates in one direction. On either side of the orbital disk, or any point around it, this remains in the same direction.

A clock runs clockwise even if you are standing behind it it only runs counter clockwise in a mirror.


A single player RPG featuring a branching, player driven storyline of meaningful choices and multiple endings alongside challenging active combat and intelligent AI.
CJB
Valued Member
22
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 2nd Nov 2016 20:45
Quote: "A clock runs clockwise even if you are standing behind it"
...Ok, I'll bite...

For the sake of argument, let's call one side of the plane of rotation of the solar system "Above", and the other side "Below". If you are above, looking down, the solar system appears to move clockwise (depending on which side you have defined as "Above"), then if you move below , looking up, the rotation would appear anti-clockwise.

The terms clockwise and anticlockwise can only be applied to a rotational motion once a side of the rotational plane is specified, from which the rotation is observed. For example, the daily rotation of the Earth is clockwise when viewed from above the South Pole, and anticlockwise when viewed from above the North Pole.

...but of course, a clock already has a specified front face, so that side will continue to run clockwise regardless of which way the clock is facing (but the hands would move anti-clockwise when viewed from the back !).

V2 T1 (Mostly)
Phone Tap!
Uzmadesign
BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 2nd Nov 2016 21:19
Quantum physics, you need a frame of reference. Every frame of space, time and relative motion is a different frame of reference. Ergo, the planets are rotating in both a clockwise and anti-clockwise direction at the same time. The planets are also a different shape dependent on your frame of reference.

I'll leave now...or am I staying and are you just passing by?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
Ortu
DBPro Master
18
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 2nd Nov 2016 21:23
Bleh, you guys are right. Disregard!


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: 2nd Nov 2016 21:30 Edited at: 19th Jan 2017 19:22
...
damothegreat
User Banned
Posted: 2nd Nov 2016 21:55 Edited at: 19th Jan 2017 19:22
...
BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 3rd Nov 2016 08:37
Venus and Uranus rotate the opposite way to the other planets. Uranus' axis is actually at 82 degrees to its orbit, so it's almost like a ball rolling around the sun.

Pedantics aside, the earth is described as orbiting anti-clockwise. We use the sun's North Pole and axis as the reference point for orbital measurements.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
damothegreat
User Banned
Posted: 5th Nov 2016 10:03 Edited at: 19th Jan 2017 19:23
...

Attachments

Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 5th Nov 2016 14:53
I thought this would be somewhat easy but I just can't seem to find any good sources of information out there. How do I find the focal points of the elliptical orbits? Also, because the orbits are not round, when things say a planet is so many miles from the sun, isn't that dependent on time of year?

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
damothegreat
User Banned
Posted: 5th Nov 2016 15:06 Edited at: 19th Jan 2017 19:23
....
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 5th Nov 2016 15:46 Edited at: 5th Nov 2016 18:14
Quote: "The distance is to the sun on the closest orbital point,"

Thanks, that's what I needed to know.

I just hate doing a physics simulation when I can't be perfectly accurate. Nothing truly rotates around the center of the sun. So here's what I'm thinking I can do. It looks like I can find the perihelion (closest point) and aphelion(farthest) distances. Adding those two together would give me the major-axis of the elliptical orbit. But you don't want to center that ellipse on the sun. Offset it by the difference between the two. The minor-axis is simply the major multiplied with the orbital eccentricity (or really 1 - eccentricity).

I'm like House, I need to spell out my ideas to others before I can see the answer myself!


Grrr, I get that AppGameKit was intended for mobile devices, but it would be nice to support types larger than 4 bytes.

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
Ortu
DBPro Master
18
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 5th Nov 2016 18:42
I was a bit surprised at how limited the data types were myself.

I had to drop some digits on my values and otherwise stay pretty loose and flexible on the accuracy, trying just to maintain the general impression.

Offset elliptical orbits was on my to-do list, but I don't think I'm going to get to it.


A single player RPG featuring a branching, player driven storyline of meaningful choices and multiple endings alongside challenging active combat and intelligent AI.
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 5th Nov 2016 22:10
I converted all measurements into AU. For instance, the diameter of Pluto is 0.000022 au.

I've learned a lot of spacey science nerd stuff today and thought if anyone needs some data for their simulation, I've built a spreadsheet.

Periphelion is the point in orbit when closest to the sun, from the major axis.
Aphelion the point in orbit when farthest from the sun on the major axis.

Periphelion + aphelion = major-axis (diameter) of the orbit

The eccentricity represents the ratio between the major and minor axes. That is, how circular the ellipse is. 1 means it's a perfect circle. Just a note, most sources you'll find online will have this number inverted. I subtracted those values from 1 to have a number I can easily multiply with the major-axis, which results in the minor-axis of a planet's orbit.

aphelion - periphelion = the center of the orbit offset from the sun.

No orbit is directly centered on the sun, although that point may very well be within the boundaries of the sun itself. So for a perfect orbit, rather than rotate your planet around the sun, it's actually the sun plus this offset.

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 6th Nov 2016 09:30
I found data.nasa.gov. My plan was to plot realtime positions based on NASA data web services. However, finding the right dataset on the badly organised list of data proved very time consuming.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 6th Nov 2016 15:56
That's one of the last things I need to figure out, the current real positions of the planets.

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 6th Nov 2016 19:08
I'm not finished yet, but I have a working demo and thought I'd post it now just in case I don't have time later tonight.

up/down arrow keys to zoom in/out
left/right arrow keys to speed up the years passed
mouse wheel zooms in/out but at smaller interval
hold right-mouse button to drag screen


"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
damothegreat
User Banned
Posted: 8th Nov 2016 09:48 Edited at: 19th Jan 2017 19:23
...
Ortu
DBPro Master
18
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 9th Nov 2016 03:33
Yep, meant to judge last night but didn't get a chance. Wrapping it up now though, results will be up shortly


A single player RPG featuring a branching, player driven storyline of meaningful choices and multiple endings alongside challenging active combat and intelligent AI.
Ortu
DBPro Master
18
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 9th Nov 2016 03:48

DamoTheGreat:

Pros: I like the info display at the bottom and the tilt control is a nice touch. Appropriate orbital speeds.
Cons: orbital distances are just evenly stepped out and not to scale. used embedded images as arrays of pre-processed data rather than generating your own media internally.

Phaelax:

Pros: Excellent use of zoom and pan to handling the issue of displaying the scale of distances. reaslistic offset eliptical orbits, and orbit speeds. Twinkling star backdrop is a nice touch.
Cons: All of the bodies are the same size and not to scale.

And the winner is:


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: 9th Nov 2016 09:37 Edited at: 19th Jan 2017 19:24
...
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 9th Nov 2016 20:34
Technically, the bodies were to scale. You just had to zoom in far enough to see it. I set a condition that prevented all bodies from displaying smaller than 10px so they were at least visible at all times. The sun takes up about half the screen before you start to see the proportionate sizes.

Nice job Damo, I was hoping to see more entries from folks. I'll come up with something this evening.

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 10th Nov 2016 17:52
Ok, new challenge time! My idea involves text once again, but this time is a little different. The idea is pretty open to creativity, make a cool effect using text. Maybe you have a cool idea to display a high score table. Or some crazy transition effects. Make it spin in circles or fade through a rainbow. Just come up with a cool way of displaying text. I'm giving a somewhat longer deadline than probably necessary due to me being out of touch for a few days next week. So even if I ended it next wednesday, I wouldn't be able to get on a computer until sunday evening anyway.


Title: Text Display
Deadline: Nov 20


Here's an example I made:

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
damothegreat
User Banned
Posted: 10th Nov 2016 17:57 Edited at: 19th Jan 2017 19:24
....
BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 11th Nov 2016 09:19
Good challenge and good demo
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 16th Nov 2016 14:00
Anyone going to enter this one?

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 16th Nov 2016 17:12 Edited at: 16th Nov 2016 17:12
I'm 50% of the way through my entry. I'm quite pleased with it so far.
Only problem is my Raspberry Pi project keeps getting in the way
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 16th Nov 2016 19:53 Edited at: 16th Nov 2016 19:59
Here is my entry so far, and possibly my last if I don't get any more time. Enter a simple word, noun, place, person , press <ENTER>and hopefully it will recognise what you are trying to find.
I've obfuscated one small part of the code simply to add a small challenge, to see if you can work out where it gets it intelligence from. Have a guess before you decrypt it.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
damothegreat
User Banned
Posted: 16th Nov 2016 20:02 Edited at: 19th Jan 2017 19:24
...
damothegreat
User Banned
Posted: 19th Nov 2016 16:34 Edited at: 19th Jan 2017 19:24
...
BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 20th Nov 2016 20:17
clever use of its own code
Looks like just the 2 of this week. Guaranteed podium positions.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
CJB
Valued Member
22
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 21st Nov 2016 14:30
I have a good idea for this one, but no time to sit and code. Maybe I'll get a chance later in the week.

Loving the "intelligence" on yours BatVink! Clever
V2 T1 (Mostly)
Phone Tap!
Uzmadesign
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 22nd Nov 2016 01:28
It's been a long weekend. Bus broke down, got home late, long work day today. But I'll get some results up tomorrow.

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 26th Nov 2016 13:45
Is the challenge thread no more?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
damothegreat
User Banned
Posted: 26th Nov 2016 15:10 Edited at: 19th Jan 2017 19:25
...
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 30th Nov 2016 03:39
Ok so here's the scoop. Was gone for several days for army stuff. Bus broke down got home late, but I work at 5am the following morning 12hrs each day. Then thanksgiving. I worked all weekend for OT then back in yesterday morning. Now I got infected by a really nasty virus and I don't have my computer running at the moment. That's just the summarized version. I am beyond angry and will kill anything within an arms reach right now. My suggestion is for you guys to judge this challenge or go on with a new one until I get back up.

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 30th Nov 2016 07:41
Take it easy and get back to normality Sorry that you had to go through thanksgiving

Myself and Damo can't judge, anyone else available?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
damothegreat
User Banned
Posted: 30th Nov 2016 07:44
Take care @Phealax and get well soon

See you back soon

Damo
Using Tier 1 AppGameKit V2
Started coding with AMOS
Anything is possible if put mind to it
Scraggle
Moderator
22
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 30th Nov 2016 08:02
I'm happy to judge.

Here's my analysis: As I see it, there were three entries. BatVink, Damo and Phaelax. I don't see anything in the rules that says you are ineligible to be voted on your own challenge.

Damo: Good use of the self-referencing code and good display of the end credits. Slightly let down by the unreadable row of tiny text at the top of the screen and the 'mess' after the final credit.
BatVink: Excellent "intelligence" and good demonstration of user input. Nice gradual fading in of the retrieved text.
Phaelax: Fantastic text display. I was initially puzzled as to how it was achieved and then surprised by how very simple it was.

I'd place BatVink in the top spot. Great text display along with text input, and internet connection and searching.

Next....

AGK V2 user - Tier 1 (mostly)
BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 30th Nov 2016 19:10 Edited at: 30th Nov 2016 19:10
Thanks Scraggle, where do I send the bribe money And congrats to Damo and Phaelax for getting something submitted.

I guess that means I set the next challenge, let's make it open to interpreting in your own way ....

Tweening

Do something interesting with tweens. Here's how I see your achievements levelling up...

Level 1. Create an effect with multiple tweens. The Tweens might be visualised as a sprite on screen, audio, colours, or even a 3D effect.
Level 2: Use Tween chains to create your effect
Level 3: Using multiple Tweens in parallel
Level 4: Dynamically changing the parameters of the Tweens in response to events in your demo.

If anyone wants a quick tutorial on Tweens, this one will help to get you started.

Closing date: 10 December, 10 days to create a monster.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
Scraggle
Moderator
22
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 30th Nov 2016 19:58
Quote: "where do I send the bribe money "

Unless I'm mistaken we both live in the same town and I spend most of my weekends in Caffe Nero on Market St. So if you fancy heading down there, the 'bribe' could be some mutually shared AppGameKit tips and tricks

Tweening! I'd love to take part in this one but I'm moving house this weekend and as a consequence, losing internet until after Christmas, so I probably won't have time
There's always spare time at work and weekends in a coffee shop though so I might find some time.
AGK V2 user - Tier 1 (mostly)
damothegreat
User Banned
Posted: 30th Nov 2016 20:18 Edited at: 19th Jan 2017 19:25
...
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 30th Nov 2016 20:43
I've never touched the tween commands before. Could be a good learning test for me. (im on a work computer)

I think I got my pc back to normal last night. Stupid virus installed about 20 malware apps on my precious box. I ran all kinds of scans and tools last night but haven't really played with it since. Guess I'll see tonight if it's still wonked or not. I lost a lot of documents though. grrrrrrrr And my scans accidently erased all my browser history, so no tab recovering me.

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 30th Nov 2016 21:18
Quote: "Unless I'm mistaken we both live in the same town and I spend most of my weekends in Caffe Nero on Market St."


I'm guessing you mean Leeds?
I'm nearby between Bingley and Keighley. Next time I'm headed out that way I'll let you know. Last time we met was Chichester I think.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
damothegreat
User Banned
Posted: 30th Nov 2016 22:37 Edited at: 19th Jan 2017 19:25
...
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 1st Dec 2016 01:00
Virus snuck in disguised as a star craft no-cd patch.

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
Scraggle
Moderator
22
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 1st Dec 2016 07:59
Quote: "I'm guessing you mean Leeds?"

No, I used to live in Leeds, I'm in Bradford now. I thought that's where you were. Close but no cigar.
AGK V2 user - Tier 1 (mostly)
BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 1st Dec 2016 11:01
That's closer and I visit frequently. It would be good to catch up sometime, although between now and Christmas I need 25 hours in a day to keep up with life.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
damothegreat
User Banned
Posted: 1st Dec 2016 15:17 Edited at: 19th Jan 2017 19:25
...

Login to post a reply

Server time is: 2026-06-17 20:33:47
Your offset time is: 2026-06-17 20:33:47