Allegro.cc - Online Community

Allegro.cc Forums » The Depot » Gold Magic 8000 Game - Developed using Allegro and the Ring programming language

This thread is locked; no one can reply to it. rss feed Print
Gold Magic 8000 Game - Developed using Allegro and the Ring programming language
Mahmoud Fayed
Member #8,895
August 2007

Hello

Gold Magic 800 Game - Developed using Allegro, OpenGL and the Ring programming language

Download : https://sourceforge.net/projects/ring-lang/files/Ring%201.8/GoldMagic800.zip/download

{"name":"1","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/3\/f\/3f8a53d233f32661123343d9451b5566.jpg","w":1920,"h":1080,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/3\/f\/3f8a53d233f32661123343d9451b5566"}1

{"name":"1","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/f\/b\/fbb9a5a5abe2ec2551f44cead5b0bb27.jpg","w":1920,"h":1080,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/f\/b\/fbb9a5a5abe2ec2551f44cead5b0bb27"}1

{"name":"1","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/b\/2\/b25b5027c426dbfccd4001f2eb816b59.jpg","w":1920,"h":1080,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/b\/2\/b25b5027c426dbfccd4001f2eb816b59"}1

How to play?

Move your box around to get gold score (=800) not more and not less to open the First Door (Box Number 1) Then directly put your box on the Door (This will open the next door),Then continue to put your box on all of the other doors in the level,You need the score (800) only for the first door, other doors doesn't requires this condition but your way of gold will be converted to a wall once you put the box on any door, so select your path carefully.

The Game contains 18 levels, Enjoy!

Very Interesting levels : 5, 15, 17 and 18

What you will learn from this game?
1 - Plan First
2 - Move to your target directly then get the required resources.
3 - Focus and be careful
4 - Be patient and Enjoy!

How to run the game?
Download, Extract the zip file then run goldmagic800.exe

Greetings,
Mahmoud

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Frank Drebin
Member #2,987
December 2002
avatar

bamccaig
Member #7,536
July 2006
avatar

When you rescue the princess you're awarded 1000 real world bitcoins. :o

In all seriousness though, it actually looks like a legitimate project. Maybe. I still won't run the binaries, but I do that for everybody. :P The language source is apparently free software and looks to maybe be real, and it does contain a lot of references to Allegro. And the repo is pretty active. If it's a hoax it's very elaborate. But I'm inclined to say it looks real, and we should embrace it.

That said, the shell scripting is very clumsy so there's also a definite impression of newbieness here. So still beware. :P But also it looks very nontrivial and pretty sophisticated so you may be surprised.

Considering the OP's account has been around almost as long as Edgar I think it's legit af.

If the OP posts source code for Gold Magic 8000 I'll try to build and run it (assuming it supports Linux). >:)

Append:

I haven't located documentation on the syntax of the Ring programming language, but if it's actually a completely functioning VM/language then the OP has accomplished what most of us dreamed of doing, even if in the end it's a futile attempt (but who knows, perhaps we'll all someday be writing Ring).

Mahmoud Fayed
Member #8,895
August 2007

Hello

(1) Antivirus alert is False (Just ignore it)

(2) We have mentioned Allegro in Ring documentation (RingAllegro Extension)

http://ring-lang.sourceforge.net/doc1.8/allegro.html

(3) Game Website : http://goldmagic800.sf.net/

(4) The game will be distributed as (Free Open Source) game with the next release of the Ring programming language (Ring 1.9) - (http://ring-lang.net)

(5) Level (1) Video : https://www.youtube.com/watch?v=XPhl04e_u3A

(6) When we distribute the source code, You can build and run it on Windows, Linux and macOS

(7) Video (All Levels) : https://www.youtube.com/watch?v=5WNh35ibB4s

Greetings,
Mahmoud

Frank Drebin
Member #2,987
December 2002
avatar

What bamccaig says makes sense.... maybe it's just my antivir beeing too picky...

Chris Katko
Member #1,881
January 2002
avatar

bamccaig said:

I haven't located documentation on the syntax of the Ring programming language, but if it's actually a completely functioning VM/language then the OP has accomplished what most of us dreamed of doing, even if in the end it's a futile attempt (but who knows, perhaps we'll all someday be writing Ring).

Your google-fu is weak, old man. :P

https://sourceforge.net/projects/ring-lang/files/Ring%201.8/

video

-----sig:
“Programs should be written for people to read, and only incidentally for machines to execute.” - Structure and Interpretation of Computer Programs
"Political Correctness is fascism disguised as manners" --George Carlin

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

SiegeLord
Member #7,827
October 2006
avatar

Very interesting game! I liked the concept, visuals and music. I have two suggestions:

1. It would look 200% better if you had a smooth camera movement rather than what it is now.

2. Your input needs to be coded better. Right now, you have something along the lines of (I'm guessing):

case ALLEGRO_EVENT_TIMER:
  if (al_key_down(...))
    do_something();

This means that if you just click a button, sometimes it won't register, and at other times it'll register multiple times!

EDIT: Nvm, the code was wrong. See the following post.

To address that issue you could try something like this:

#SelectExpand
1int move_left = 0; 2 3case ALLEGRO_KEY_DOWN: 4 if (ev.keyboard.keycode == ALLEGRO_KEY_LEFT) 5 move_left = 2; 6 break; 7case ALLEGRO_KEY_UP: 8 if (ev.keyboard.keycode == ALLEGRO_KEY_LEFT) 9 move_left -= 1; 10 break; 11case ALLEGRO_EVENT_TIMER: 12 if (move_left > 0) { 13 do_move_left(); 14 if (move_left > 1) { 15 move_left -= 1; 16 } 17 }

The idea is that if you quickly press and release a button, you're guaranteed to do that action at least once. Otherwise, as soon as you release the button it'll also stop doing the action.

"For in much wisdom is much grief: and he that increases knowledge increases sorrow."-Ecclesiastes 1:18
[SiegeLord's Abode][Codes]:[DAllegro5]:[RustAllegro]

dthompson
Member #5,749
April 2005
avatar

^ that's nifty - might just have to add it to Vivace ;)

Edit: just thought of a something that could be a problem. If ALLEGRO_EVENT_KEY_UP fires before ALLEGRO_EVENT_TIMER, won't move_left be stuck at 1?

Perhaps this is a job for some logical-AND magic, using two bits (for "key is still pressed" and "key has been acknowledged by the game logic" respectively):

#SelectExpand
1unsigned char move_left = 0; 2 3// in loop: 4case ALLEGRO_EVENT_TIMER: 5 if(move_left) 6 do_move_left(); 7 move_left &= 1; 8 break; 9 10case ALLEGRO_EVENT_KEY_DOWN: 11 if(ev.keyboard.keycode == ALLEGRO_KEY_LEFT) 12 move_left = 2 | 1; 13 break; 14case ALLEGRO_EVENT_KEY_UP: 15 if(ev.keyboard.keycode == ALLEGRO_KEY_LEFT) 16 move_left &= 2; 17 break;

______________________________________________________
Website. It was freakdesign.bafsoft.net.
This isn't a game!

Go to: