Hello, I`m a school teacher (Chemistry not computing) and have recently purchased a number of raspberry pi`s. The 6th form (older students) have got really into it and we have been working together in python to actually make a grid game they created. It works great and is a really lovely game but in python, looks terrible and is difficult to improve and make better and way too hard to move to android or other platforms. A friend recommended gideros and I`ve been playing with it all day but struggling.
I feel we can start coding the main game ideas but we can not create a clickable grid in which to base the game! The game will use a variable size grid and I just want to be able to click a square and it goes blue then next player clicks on a square and it goes red.
In Pygame we setup the grid defining pixel sizes but I`ve been told that using gideros I should be using "box shape" sprites.
I`m/we`re really stuck and would really appreciate any help just getting this off the ground. I`m sure when the "board" is created we will be able to code the rest of the game structure.
Any help much appreciated.
Chris
Comments
Likes: hgvyas123
Interesting name, does it come from the CRAY computers?
Anyways on your question, you will get plenty of different ways to do this, here's mine
You can use a bitmap, and color it white.
Now set that up on the screen in the grid you want
Theory about Grids
You can also look at an alternative way or some theory about working with grids and lua in my book Learn Lua for iOS Game Development on Page 52 under the section "Using a Grid in a Game"
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps