Alice Community  

Go Back   Alice Community > Alice 2 > Works-In-Progress

Reply
 
Thread Tools Display Modes
Would a "battleship" game be possible?
Old
Veryuhbull
Guest
 
Status:
Posts: n/a
Question Would a "battleship" game be possible? - 07-07-2009, 01:23 PM

There is water. There is an aircraftcarrier already. I could program a turn based game. But is there a way to make grids?
   
Reply With Quote
Old
Niteshifter
Guest
 
Status:
Posts: n/a
Default 07-10-2009, 01:47 AM

There is a way to make a grid. All you need to do is use two number variables (X and Y) to set it up and add limits so that nothing goes past a certain point.

There would be a more easier way to do this by using multidimensional arrays, however alice isn't capable of handling such a thing.
   
Reply With Quote
Old
dubastot
Senior Member
 
dubastot's Avatar
 
Status: Offline
Posts: 661
Join Date: Apr 2009
Location: Two Steps From Hell
Default 07-18-2009, 09:11 PM

Could you expand a bit more on arrays and how to get them. Plus I would like to know more about that grid stuff. I'm kind of new to all this, so any help would be great!
   
Reply With Quote
Old
Veryuhbull
Guest
 
Status:
Posts: n/a
Default 07-18-2009, 11:06 PM

This is a simple example grid.
Attached Files
File Type: a2w grid.a2w (702.2 KB, 13 views)

Last edited by Veryuhbull; 07-19-2009 at 05:09 PM.
   
Reply With Quote
Old
dubastot
Senior Member
 
dubastot's Avatar
 
Status: Offline
Posts: 661
Join Date: Apr 2009
Location: Two Steps From Hell
Question 07-19-2009, 10:03 PM

Quote:
Originally Posted by Niteshifter View Post
There is a way to make a grid. All you need to do is use two number variables (X and Y) to set it up and add limits so that nothing goes past a certain point.
So are you saying I can add limits so that nothing, not even the camera can go past the grid?
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2020, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.