Pages: 1 2 3 4 5 »
  Print  
Author Topic: First R4 game, VERSION 2, despite everything being unimplemented  (Read 14697 times)
Offline (Female) IsmAvatar
Posted on: April 18, 2010, 10:15:27 PM

LateralGM Developer
LGM Developer
Location: Pennsylvania/USA
Joined: Apr 2008
Posts: 886

View Profile Email
This is Catch the Clown, except that you don't have to "click" the clown, you just need to mouse-over him.

Catch the Clown.
The objective of the game is simple: To move your mouse over the moving clown as many times as possible, and thus increase your score. Yes, there is score. If there wasn't a score, it wouldn't really be a game. Each time you successfully catch the clown, he moves faster.

http://dl.dropbox.com/u/9975312/Games/Catch_the_Clown.gmk
~5 KB
Working since ENIGMA SVN Revision 244. Still working great since the move to GIT and since revision 4900aa6.
Coded entirely in LGM. Sprites stolen from the original.

Can you beat my highscore (in the screenshot)?



Features:
Sprites, Movement, Increasing difficulty, random redirection, changing background colors, bouncing off walls, able to be caught my mouse-over, score, displaying score in title bar
Lacking (due to limitations of Enigma at this time):
Clicking, Backgrounds, Sounds/Music


Version 1, which was created prior to sprite support (by showing a circle, without movement) is still available for reference.
http://www.IsmAvatar.com/other/mouse_to_ball.gm6
« Last Edit: April 17, 2012, 02:32:38 PM by IsmAvatar » Logged
Offline (Unknown gender) freezway
Reply #1 Posted on: April 18, 2010, 10:18:28 PM

Member
Joined: Dec 2009
Posts: 220

View Profile
is the completed functions list up-to-date?
Logged
if you drop a cat with buttered toast strapped to its back, which side lands down?
joshdreamland: our languages are based on the idea that it's going to end up FUBAR
/kick retep998
Offline (Male) retep998
Reply #2 Posted on: April 18, 2010, 10:22:08 PM

Member
Location: Where else?
Joined: Jan 2010
Posts: 248
MSN Messenger - retep998@charter.net AOL Instant Messenger - retep998 Yahoo Instant Messenger - retep998
View Profile Email
is the completed functions list up-to-date?
Hell no
Logged
Offline (Female) IsmAvatar
Reply #3 Posted on: April 18, 2010, 10:22:47 PM

LateralGM Developer
LGM Developer
Location: Pennsylvania/USA
Joined: Apr 2008
Posts: 886

View Profile Email
To see completed functions, open LGM, then go to Enigma menu (supposing the enigma plugin is properly installed) -> Keyword List -> Functions
Logged
Offline (Unknown gender) freezway
Reply #4 Posted on: April 18, 2010, 10:23:14 PM

Member
Joined: Dec 2009
Posts: 220

View Profile
k
Logged
if you drop a cat with buttered toast strapped to its back, which side lands down?
joshdreamland: our languages are based on the idea that it's going to end up FUBAR
/kick retep998
Offline (Male) Josh @ Dreamland
Reply #5 Posted on: April 18, 2010, 10:34:47 PM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2955

View Profile Email
Note that here, "unimplemented" actually implies that it was implemented at some point. :D
...And will hopefully be so once more shortly.
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Male) RetroX
Reply #6 Posted on: April 19, 2010, 02:14:16 PM

Master of all things Linux
Contributor
Location: US
Joined: Apr 2008
Posts: 1055
MSN Messenger - classixretrox@gmail.com
View Profile Email
$ ./mouse_to_ball.elf
./mouse_to_ball.elf: error while loading shared libraries: libatiuki.so.1: wrong ELF class: ELFCLASS64
(Arch Linux x86_64)

The ELF extension is never used; why did you use it
« Last Edit: April 19, 2010, 02:19:10 PM by RetroX » Logged
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)
Quote from: Fede-lasse
Why do all the pro-Microsoft people have troll avatars? :(
Offline (Female) IsmAvatar
Reply #7 Posted on: April 19, 2010, 02:48:17 PM

LateralGM Developer
LGM Developer
Location: Pennsylvania/USA
Joined: Apr 2008
Posts: 886

View Profile Email
Because my server might be confused if I gave it no extension, thinking it was a folder or some such. So I said "what extension should I use?" and since I figured it was an ELF, I'd give it an ELF extension - which also communicates that it's linux only.

I'm a linux dev noobie anyways.

Apparently not all elfs are equal, so I suppose I should specify that mine was made on Ubuntu 9.10. I'm used to windows - where all exes are essentailly equal, and Java - where all jars *are* equal (.equals() :-p).

Also, because nobody explains anywhere how one would release a game they've developed under enigma. I mean, obviously we're not expected to just develop games for ourselves.
« Last Edit: April 19, 2010, 02:51:49 PM by IsmAvatar » Logged
Offline (Male) retep998
Reply #8 Posted on: April 19, 2010, 04:30:03 PM

Member
Location: Where else?
Joined: Jan 2010
Posts: 248
MSN Messenger - retep998@charter.net AOL Instant Messenger - retep998 Yahoo Instant Messenger - retep998
View Profile Email
Also, because nobody explains anywhere how one would release a game they've developed under enigma. I mean, obviously we're not expected to just develop games for ourselves.
You have to make a special open format for enigma games.
For now we'll have to stick with gm6, but due to the new features we're expecting, gm6 won't cut it anymore, and neither will gmk.
>how one would release a game
You compile the game for several platforms and distribute the executeables and whatever weird shit linux uses.
Logged
Offline (Female) IsmAvatar
Reply #9 Posted on: April 19, 2010, 05:06:38 PM

LateralGM Developer
LGM Developer
Location: Pennsylvania/USA
Joined: Apr 2008
Posts: 886

View Profile Email
Seems like in order to compile for Windows, I have to actually be on Windows. As for distributing GM6s or EGMs, that kinda defeats the purpose of "distribution", as the user would also have to have ENIGMA installed. That's like requiring everyone who wants to play a GM game to have GM installed.
I thought there was supposed to be some semblance of cross-platform here.

Eh, I'm going back to my Java jars.
Logged
Offline (Unknown gender) MrJackSparrow2
Reply #10 Posted on: April 19, 2010, 05:28:18 PM
Member
Joined: Apr 2008
Posts: 35

View Profile Email

D:\Users\Cody\Desktop\Enigma\trunk>java -jar lgm16b4.jar
Java Version: 10600 (1.6.0_19)
Loading lib files in D:\Users\Cody\Desktop\Enigma\trunk\lgm16b4.jar
01_move.lgl 02_main1.lgl 03_main2.lgl 04_control.lgl
 05_score.lgl 06_extra.lgl 07_draw.lgl
SvnKit missing, corrupted, or unusable. Please download and place next to the en
igma plugin in order to enable auto-update.
Initializing Enigma: Exception in thread "main" java.lang.UnsatisfiedLinkError:
Error looking up function 'first_available_resource': The specified procedure co
uld not be found.

        at com.sun.jna.Function.<init>(Function.java:179)
        at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:345)
        at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:325)
        at com.sun.jna.Native.register(Native.java:1318)
        at com.sun.jna.Native.register(Native.java:1013)
        at org.enigma.backend.EnigmaDriver.<clinit>(EnigmaDriver.java:14)
        at org.enigma.EnigmaRunner.initEnigmaLib(EnigmaRunner.java:113)
        at org.enigma.EnigmaRunner.<init>(EnigmaRunner.java:90)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
rce)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at java.lang.Class.newInstance0(Unknown Source)
        at java.lang.Class.newInstance(Unknown Source)
        at org.lateralgm.main.LGM.loadPlugins(LGM.java:297)
        at org.lateralgm.main.LGM.main(LGM.java:512)

M(r)s IsmAvatar, I got an LGM WTF.
Logged
Offline (Male) Josh @ Dreamland
Reply #11 Posted on: April 19, 2010, 05:48:25 PM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2955

View Profile Email
MrJackSparrow2:
Have you recompiled the compiler lately? It's a good idea to do that each time you check out.

Ism:
If every Linux distribution could run the same exe's, apt-get would be a thing of the past.
That's why everything on Linux is either open source or apt-get'd. This is another reason why a makefile would seriously help; one could be distributed along with the C++ source of the game to be built on any platform. Also, ENIGMA's site could eventually make it easy by having a changer script for specific operating systems, like Firefox and Chrome do. "Download now for <your OS here>." Would take some effort for that too, though, on our account and on the intermediary user. :P
« Last Edit: April 19, 2010, 05:53:29 PM by Josh @ Dreamland » Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Female) Renee
Reply #12 Posted on: April 19, 2010, 05:50:46 PM

Member
Location: Illinois, USA
Joined: Mar 2010
Posts: 2

View Profile
Seems like in order to compile for Windows, I have to actually be on Windows.
Have you tried the MinGW32 Cross Compiler.
http://packages.ubuntu.com/karmic/devel/mingw32
Logged
Offline (Male) RetroX
Reply #13 Posted on: April 19, 2010, 06:02:43 PM

Master of all things Linux
Contributor
Location: US
Joined: Apr 2008
Posts: 1055
MSN Messenger - classixretrox@gmail.com
View Profile Email
Because my server might be confused if I gave it no extension, thinking it was a folder or some such. So I said "what extension should I use?" and since I figured it was an ELF, I'd give it an ELF extension - which also communicates that it's linux only.
What the hell kind of server can't decide the difference between a file and a directory.

Quote
Apparently not all elfs are equal, so I suppose I should specify that mine was made on Ubuntu 9.10. I'm used to windows - where all exes are essentailly equal, and Java - where all jars *are* equal (.equals() :-p).
Windows: No, they're not.  There's a difference between 32-bit and 64-bit EXEs.
Java: Yes, they are.
Linux: It's the same as Windows, however, there are more architectures (Ubuntu uses AMD64, which is a "higher level" than x86_64).  i686 executables can't run on i386, and AMD64 can't run on x86_64.

Why couldn't you just release the gm6 instead of the binary?

Seems like in order to compile for Windows, I have to actually be on Windows. As for distributing GM6s or EGMs, that kinda defeats the purpose of "distribution", as the user would also have to have ENIGMA installed. That's like requiring everyone who wants to play a GM game to have GM installed.
I thought there was supposed to be some semblance of cross-platform here.

Eh, I'm going back to my Java jars.
The GM examples are GMKs, not EXEs.  And MinGW has cross-compilers.
« Last Edit: April 19, 2010, 06:05:01 PM by RetroX » Logged
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)
Quote from: Fede-lasse
Why do all the pro-Microsoft people have troll avatars? :(
Offline (Unknown gender) MrJackSparrow2
Reply #14 Posted on: April 19, 2010, 06:16:15 PM
Member
Joined: Apr 2008
Posts: 35

View Profile Email
Thanks Josh, that fixed it. :)
Logged
Pages: 1 2 3 4 5 »
  Print