![]() |
|
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"} {"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"} {"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"} 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? How to run the game? Greetings, |
Frank Drebin
Member #2,987
December 2002
![]() |
My antivirus software blocks execution |
bamccaig
Member #7,536
July 2006
![]() |
When you rescue the princess you're awarded 1000 real world bitcoins. 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. That said, the shell scripting is very clumsy so there's also a definite impression of newbieness here. So still beware. 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). -- acc.js | al4anim - Allegro 4 Animation library | Allegro 5 VS/NuGet Guide | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Allegro 5 "Winpkg" (MSVC readme) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Derail? | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) | Streaming |
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, |
Frank Drebin
Member #2,987
December 2002
![]() |
What bamccaig says makes sense.... maybe it's just my antivir beeing too picky... |
Chris Katko
Member #1,881
January 2002
![]() |
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. https://sourceforge.net/projects/ring-lang/files/Ring%201.8/ -----sig: |
Edgar Reynaldo
Major Reynaldo
May 2007
![]() |
Mahmoud said: (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) When its open source I'll try it. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
SiegeLord
Member #7,827
October 2006
![]() |
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: 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 |
dthompson
Member #5,749
April 2005
![]() |
^ 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): 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;
______________________________________________________ |
|