Looking for feedback on beginner game

Creating Games? Developing something for fun?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
sefrojones
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 447
Joined: Mon Jan 23, 2012 12:46 pm

Looking for feedback on beginner game

Post by sefrojones » Fri Feb 28, 2014 10:12 pm

Hi, this stack started as a simple example of the move and set commands, but has evolved into a simple space shooter type arcade game.
I was hoping for some kid of review or constructive criticism. Here is a youtube video of the stack:

http://www.youtube.com/watch?v=e875qqsbJis

I started the stack out as en example to show a friend I am introducing to livecode, I am attaching the whole stack in hopes someone would be able to
let me know how what the think, or provide examples of making the code simpler/more efficent. Everything is in the stack script. Use the mouse to move/shoot.
My comments are probably not the greatest, as I am not a programmer per se.

edit: I couldn't attach a .livecode file, so here is a link to my mega:
https://mega.co.nz/#!O1g3jSwZ!ee6FFFZRr ... 1H0yUQsjbY

edit2: here is the stack script as is: http://piratepad.be/p/ak5YjyLoEB

[

Kangaroo SW
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 35
Joined: Sat Jan 15, 2011 10:57 am

Re: Looking for feedback on beginner game

Post by Kangaroo SW » Fri Feb 28, 2014 10:34 pm

What a great Game !

Thanks for sharing the code !

Cheers
Rolf

Klaus
Posts: 13865
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Looking for feedback on beginner game

Post by Klaus » Fri Feb 28, 2014 11:00 pm

Great, thanks for sharing!

sefrojones
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 447
Joined: Mon Jan 23, 2012 12:46 pm

Re: Looking for feedback on beginner game

Post by sefrojones » Sun Mar 02, 2014 11:31 pm

Thanks Guys! :D I'm wondering if there is a way to hide the pointer while inside the stack, and also if maybe using MOVE instead of SET could make this more smooth? D you think AE would perhaps make this run better?

edit: I figured out i was not locking the cursor. Still curious if there is a better way to move the enemies.....

Newbie4
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 327
Joined: Sun Apr 15, 2012 1:17 am
Location: USA
Contact:

Re: Looking for feedback on beginner game

Post by Newbie4 » Mon Mar 03, 2014 4:55 pm

Great game.
What is impressive is that you did it without a game loop.

To get rid of the cursor add the following code:

Code: Select all

   set the cursor to none 
   lock Cursor
If you do that, you need some way to restore it by inserting the following in your code:

Code: Select all

   unlock cursor
You can put that at the end of the game or program it to happen on any key press:

Code: Select all

on keyUp
   unlock cursor
end keyUp
Even better, add a way to pause the game - e.g. press the space bar and put it there.

Again, great game
Cyril Pruszko
https://sites.google.com/a/pgcps.org/livecode/
https://sites.google.com/a/setonhs.org/app-and-game-workshop/home
https://learntolivecode.com/

sefrojones
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 447
Joined: Mon Jan 23, 2012 12:46 pm

Re: Looking for feedback on beginner game

Post by sefrojones » Mon Mar 03, 2014 10:14 pm

Thanks! I will definitely be adding a pause option, also probably a high score board. I also want to add a check on the enemies/rocks so they don't overlap.
Also maybe a penalty for letting too many ships pass you, and the ability to leave a mine or bomb for the enemies to run into. As far a the gameloop goes
I think the gamestart/dogamestuff handlers count as a simple game loop. It checks every 2 ticks if the visible of img "getready" is false, if so, it continues the game.
My goal with this stack was to make a decent looking game with a simple, short and readable script. This is pretty much why I put all code into the stack script. This is also why I chose to use assets from Kenney.NL, as he makes beautiful stuff. But anyway, thanks for the kind words everyone!

edit: added some spin to the asteroids, and dropping bombs. Also put a counter to show how many ships you have allowed to pass, if more than 20 pass you automatically lose. Still well under 300 lines. Here's a vid of the latest:

http://www.youtube.com/watch?v=8ReA9XklCsA

splash21
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 369
Joined: Sun Dec 19, 2010 1:10 am
Location: UK
Contact:

Re: Looking for feedback on beginner game

Post by splash21 » Fri Mar 07, 2014 10:37 pm

8) Looks even better with the spinning asteroids 8)
LiveCode Development & Training : http://splash21.com

sefrojones
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 447
Joined: Mon Jan 23, 2012 12:46 pm

Re: Looking for feedback on beginner game

Post by sefrojones » Mon Mar 10, 2014 8:46 am

Thanks! All these words of encouragement have me coming back to this stack whenever i have some spare time. I've added shields and some coins/power-ups, as well as dropped the number of ships allowed to pass to 10. here's a video of where it is today:

http://www.youtube.com/watch?v=0uL2bIrWtZY

Whenever I finish this stack I will post a link to the full finished stack, and release it into the public domain. It's currently ~400 lines including sparse comments and empty spaces.

Thanks again,

Sefro

edit: anybody know if there's a way to confine the mouse to within the stacks rect?

catalinanesia
Posts: 83
Joined: Sun Feb 16, 2014 10:08 pm

Re: Looking for feedback on beginner game

Post by catalinanesia » Thu Mar 20, 2014 11:04 pm

Nicely done, I hope one day you release the code, I will gladly learn from it.
Any Boss fight's in the future ?

Great job, keep up!

sefrojones
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 447
Joined: Mon Jan 23, 2012 12:46 pm

Re: Looking for feedback on beginner game

Post by sefrojones » Sat Mar 22, 2014 9:06 am

Thanks! I actually just started Livecode School this week, so I put off any further game development to focus on absorbing as much of the code school and courses as I can. I had made a few more changes since the last video, and will upload the stack here as-is.

The high scores in this stack will not work, as they are stored in an online mysql database, I left out my database info/ password. The script that handles the database is in the button "done" of the group "entername" you can add your own mysql database info there. The table it is looking for is just two columns called "name" and "score" The rest of the program is in the card script. An invisible button called "start" starts the gameloop and has a small script. This stack works great in livecode 6.5.2 and below, I just fired it up in 6.6 and it was choppy and glitchy, I'm not sure why.

I imagine I will return to this stack once I have finished Livecode school, and probably rewrite the whole thing. Until then here is my space shooter game. The art I used in this game was graciously committed to the public domain by kenney.nl, and keeping with that spirit, this code is also in the public domain. If you do learn anything or modify this program, I would love to see/hear about it!

the stack was slightly too large to upload here, so here's a link to my mega:
https://mega.co.nz/#!zxIlET4T!WYhy8yf6h ... qSexe4ouXE

here's a video:
https://www.youtube.com/watch?v=tgZiUR7Uq-E

edit :haha I just realized I was wathing Dr.Who in the backround.

--sefro

catalinanesia
Posts: 83
Joined: Sun Feb 16, 2014 10:08 pm

Re: Looking for feedback on beginner game

Post by catalinanesia » Sat Mar 29, 2014 5:16 pm

Hi Sefro,
Thank you very much for releasing the stack. Currently I have an enrolment to
LiveCoding School which I found very helpful, Lesson 3 finished and more to come.

Enjoy LiveCode!
Cata

Post Reply

Return to “Games”