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 / Freedom Engine - a friendly challenge

Author
Message
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 12th Sep 2012 12:11 Edited at: 12th Sep 2012 12:41
OK, my account on the FE forum is in moderation so until I'm deemed trustworthy I'm posting this here.

What can you do within the 4000 character 10Mb limits of a Freedom Engine free account?

No time limit / no prizes just show me what you can come up with. Kudos is all you'll get but great examples might be added to the examples in the main site.

Game / Demo / Technical test it's up to you...

I'll post my own when I get a chance.

Here's a link to the same challenge on the FE forum: https://freedom-engine.com/forum/viewtopic.php?f=2&t=19


this.mess = abs(sin(times#))
The Zoq2
14
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 12th Sep 2012 12:15
This sounds like a fun challenge, I may enter...

I could use a list of the 3d commands though...
Rich Dersheimer
AGK Developer
14
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 12th Sep 2012 13:51
bax, how do we know how many characters we've used? Is there some info on this displayed by FE? I mean, if there's a limit of 4000 characters, then the IDE really should display how many you've used. IMHO.

baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 12th Sep 2012 13:52
I put in a feature request to show the number of characters in use.


this.mess = abs(sin(times#))
Rich Dersheimer
AGK Developer
14
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 12th Sep 2012 13:52
Quote: "I put in a feature request to show the number of characters in use."


Sweet!

Thankee!

MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 12th Sep 2012 13:54
I shall Observe

Hodgey
14
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 12th Sep 2012 13:55 Edited at: 12th Sep 2012 13:55
Challenge accepted.

A peek at what I'm working on.



Attachments

Login to view attachments
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 12th Sep 2012 14:01
Awesome


this.mess = abs(sin(times#))
Hodgey
14
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 12th Sep 2012 15:34 Edited at: 12th Sep 2012 15:35
Ok, here's half a breakout game, in 3D! It's a bit dodgy because I couldn't work out what the 3D collision commands were so it uses bound checking. It also doesn't reset when all blocks are hit but it's fun nonetheless and it's getting late over here.

Let me know what you think. Enjoy!

Arrowkeys to move.

Character count: 1503


Rich Dersheimer
AGK Developer
14
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 12th Sep 2012 17:30
Very tight code, but... no link, Hodgey?

You can get the html link over on the right by clicking Deploy.

Seppuku Arts
Moderator
19
Years of Service
User Offline
Joined: 18th Aug 2004
Location: Cambridgeshire, England
Posted: 12th Sep 2012 17:54 Edited at: 12th Sep 2012 18:09
My attempt is a text adventure, the idea is to help a coder solve his code, but I've hit my limit, MS word reads just under 3k characters (spaces included). I'll figure out a way to squeeze the code, I can probably tak out a couple of UDTs as the code is small anyway. Might have to try something different.



A Screenshot:


And the link:
https://freedom-engine.com/play.php?id=609

I am also getting an error that adds '/' when ever I have an apostrophe, I find it seems to do it when there's a debug error.

baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 12th Sep 2012 18:16
That's cool Seppuku!


this.mess = abs(sin(times#))
kamac
13
Years of Service
User Offline
Joined: 30th Nov 2010
Location: Poland
Posted: 12th Sep 2012 19:39
I'd need expotential function before I can create anything

Follow me on twitter! @MotionStruct
Motion Struct blog
kamac
13
Years of Service
User Offline
Joined: 30th Nov 2010
Location: Poland
Posted: 12th Sep 2012 20:33 Edited at: 12th Sep 2012 20:33
Oh anyway, I couldn't do anything better than this without expotential

Here:
https://freedom-engine.com/play.php?id=1942

Follow me on twitter! @MotionStruct
Motion Struct blog
Hodgey
14
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 13th Sep 2012 00:06
Quote: "Very tight code, but... no link, Hodgey?"

I'm treating this a bit like the 20-liner, basically providing the code. I'm not sure if I'll keep this up during the future so here's the code now.

@ Seppuku: very nice!

Quote: "I'd need expotential function before I can create anything"

Do you mean e^x or log()?

If it's log, here's an approximate log function:


Details here

kamac
13
Years of Service
User Offline
Joined: 30th Nov 2010
Location: Poland
Posted: 13th Sep 2012 00:17
Quote: "Do you mean e^x or log()?"


The first one probably.

Here's the C++ reference:
http://www.cplusplus.com/reference/clibrary/cmath/exp/

Follow me on twitter! @MotionStruct
Motion Struct blog
Hodgey
14
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 13th Sep 2012 00:40
Couldn't you just do this?



Not too hard to wrap that in a function.

Hodgey
14
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 14th Sep 2012 11:03 Edited at: 14th Sep 2012 13:10
Updated my breakout game. Enjoy!

Edit- Code for whoever is interested:


baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 14th Sep 2012 11:07
Much better, nice work Hodgey!


this.mess = abs(sin(times#))
DMXtra
21
Years of Service
User Offline
Joined: 28th Aug 2002
Location: United States
Posted: 14th Sep 2012 12:11
I tried it on Chrome and it worked fine. However, some problems.

First is that I can't see the walls on which it's going to bounce off of and second the collision detection isn't all that great.

Other than those things it worked great.

App Game Kit (A.G.K.) - Want to be creative on many platforms at once? This is the tool you need.
Hodgey
14
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 14th Sep 2012 12:15
Quote: "First is that I can't see the walls on which it's going to bounce off of"

That's because there aren't any but it's a good idea to put some in. I'll get around to that eventually. What colour should I make the walls?

Quote: "the collision detection isn't all that great."

None of the 3D collision commands work AFAIK so I had to make do with bounds checking which is why it isn't that great.

Thanks for the feedback DMXtra!

DMXtra
21
Years of Service
User Offline
Joined: 28th Aug 2002
Location: United States
Posted: 14th Sep 2012 12:21
One more problem. I don't think this is related to you or your coding skills, but I think it is related to the freedom engine.

I closed all browsers and everything else was closed as well.
I opened the latest version of Firefox (with ONLY one Tab open)
and the version is 15.01 of Firefox.

It ran not only slower (slower than Chrome), but if you hit the right arrow and keep on pressing it, the entire contents of the window, move right off the screen.

I have the Latest Nvidia Drivers that came out today. 306.23 which are not beta drivers. For 64-bit Windows 7 Drivers for my 670 (which just came out a few months ago).

App Game Kit (A.G.K.) - Want to be creative on many platforms at once? This is the tool you need.
Hodgey
14
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 14th Sep 2012 12:29
I haven't a clue about that one mate. Sounds like some sort of incompatibility. Maybe post it on the FE Feedback forum.

JimHawkins
14
Years of Service
User Offline
Joined: 26th Jul 2009
Location: Hull - UK
Posted: 14th Sep 2012 12:34
I've rebooted and does not work still on Chrome.

-- Jim DO IT FASTER, EASIER AND BETTER WITH AppGameKit FOR PASCAL
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 14th Sep 2012 13:07
Jim, is your hardware listed as unsupported here?
http://support.google.com/chrome/bin/answer.py?hl=en&answer=1220892


this.mess = abs(sin(times#))
JimHawkins
14
Years of Service
User Offline
Joined: 26th Jul 2009
Location: Hull - UK
Posted: 14th Sep 2012 14:44
No - It works okay on the actual FE interface, but doesn't always work from other people's links. It's definitely an FE problem.

To be brutally honest, I think it's all a rather sad diversion from developing the main engine and adding proper HTML5 output to the other platforms. I doubt if many people in this forum will treat it as more than a toy after they've had a play. 99% of visitors to our company website use IE - they're mostly academic sources - so using WebGL is a total no-no. Shortly W8 will be out with no WebGL support - so anybody buying a new computer will have loads of problems. This is really not going to be good news. It could do a lot of damage to TGC's reputation.

I suspect that people will go for an on-line construction kit with ready built drag drop for imagery etc - but if they have to program most of them won't bother.

It's terribly easy for companies to lose focus, as I know to my cost. This seems to me to be an example.

-- Jim DO IT FASTER, EASIER AND BETTER WITH AppGameKit FOR PASCAL
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 14th Sep 2012 17:07
To build on what Jim Hawkins says, if you want to go into the HTML5 market, its' better to check out what the competition is offering.

Another UK company offers an HTML5 offline tool which you buy once. It has canvas and opengl support, and they release 2-3 updates every month. their user support is 5 star, i have never come across nicer people that threat their users with so much attention and answer questions immediately. and this is a 1 developer company, not something like Unity with 90 programmers.

on the other hand, the IE explorer webgl problem will always be there. A possible solution is to offer the user to install the chromeframe plugin.
MarcoBruti
12
Years of Service
User Offline
Joined: 20th Nov 2011
Location: Caput Mundi
Posted: 14th Sep 2012 19:55
This is my game.
Instructions and comments on the freedom-engine forum.
https://freedom-engine.com/play.php?id=3325&activate=5c125b4c51b224517247a78e7209ea37
Only to say that it is 3200 chars w/ spaces, 2400 w/o spaces.
It works almost well on Chrome, on Firefox (15.01) it is blocked.
I am using a proxy, I have to check without.
DMXtra
21
Years of Service
User Offline
Joined: 28th Aug 2002
Location: United States
Posted: 15th Sep 2012 11:22
If they want to do 3D, why can't they use Java + OpenGL (why was that abandoned)?

App Game Kit (A.G.K.) - Want to be creative on many platforms at once? This is the tool you need.
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 15th Sep 2012 13:57
Well, this is all straying a little off topic. Any chance people could post some examples?

Maybe a separate thread should be started (there are a few already actually) about browser compatibility so this one can stay focused?


this.mess = abs(sin(times#))
MarcoBruti
12
Years of Service
User Offline
Joined: 20th Nov 2011
Location: Caput Mundi
Posted: 15th Sep 2012 15:41
we are here at the service of baxslash. Attached there is the media files.
BTW, there are a lot of things that do not work. I tried to use an additional file and included in the main, but it seems that the functions in the external files do not use properly the global variables used in the main. Pls post a sample with more than one file used

Attachments

Login to view attachments
Hodgey
14
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 16th Sep 2012 01:55
@baxslash: Here you go.

Auger
12
Years of Service
User Offline
Joined: 21st Aug 2011
Location: Out There
Posted: 17th Sep 2012 02:10 Edited at: 17th Sep 2012 07:32
Okay here's a small game called DropBlock to try. Use your Mouse to control the ball, and avoid the falling blocks. It plays a little smoother on Chrome.

Screenshot



It had a custom font but looks like they're not supported in FE yet. Also the collision might be a bit off, because of the workaround I had to do to get the ball to move in FE. Lets call that a feature, so you might get lucky and survive

Best score I managed was 416... but I really haven't played a lot

3359 characters in source


https://freedom-engine.com/play.php?id=3788&activate=24310244979fddc9c91daf2b5a2f3608

enjoy

Auger
Hodgey
14
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 17th Sep 2012 09:22
@ Auger: very nice game! I really like it...and 524.

baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 17th Sep 2012 10:17
Nice gfx


this.mess = abs(sin(times#))
JimHawkins
14
Years of Service
User Offline
Joined: 26th Jul 2009
Location: Hull - UK
Posted: 17th Sep 2012 11:19
Now that I've told AdBlock to ignore the FE site it works very smoothly in Chrome.

-- Jim DO IT FASTER, EASIER AND BETTER WITH AppGameKit FOR PASCAL
MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 17th Sep 2012 11:55
Quote: "JimHawkins "



Auger
12
Years of Service
User Offline
Joined: 21st Aug 2011
Location: Out There
Posted: 18th Sep 2012 08:03
@Hodgey
nice got a new HS in the high 400's haven't broke 500 yet though nice job

@Bax
yeah need to work on that a bit I'm thinking of sprucing the game up, Add in sound and some music and maybe add something to the gameplay to change it up a bit. The tough part will be keeping it all under 4000 characters

Auger
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 18th Sep 2012 11:48
I actually do like the gfx


this.mess = abs(sin(times#))

Login to post a reply

Server time is: 2024-05-06 21:45:15
Your offset time is: 2024-05-06 21:45:15