Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / Help with break out like game

Author
Message
rjweng
20
Years of Service
User Offline
Joined: 6th Feb 2006
Location: USA
Posted: 12th Feb 2006 12:35
OK I have been messing around with the tutorials, I greated my first game; Pong. I have learned alot form building that. Now my problem is I am trying to make a Breakout like game, and I can't seem to get the concept of the arrays. Was trying to follow this tutorial
http://forum.thegamecreators.com/?m=forum_view&b=4&t=34076&p=0
But zenassem seemed to jump from the game to the tile maker program and then never finished the tutorial.

Anyways if anyone knows of were a tutorial for breakout is, or maybe give advise I would appreciate it.

Thanks to everyone who has put the time in to make all the tutorials, and all the advise.

Here is what I have now for source...
rjweng
20
Years of Service
User Offline
Joined: 6th Feb 2006
Location: USA
Posted: 12th Feb 2006 19:32
Sry but I am not sure why it wouldn't load the code....

here it is

sync on
sync rate 30

set display mode 800,600,32

' The blocks I made in paint
load image "blue.png",1,1
load image "red.png",2,1
load image "orange.png",3,1
load image "green.png",4,1

' The size of the array that I would liek to start with
dim world(5,4)

Do

for indexY=0 to 3
for indexX=0 to 4
tilenum = read values
world(indexX,indexY)=tilenum
next indexX
next indexY

sync
Loop


' The data layout I was looking to try and do
world data:
data 1,1,1,1,1
data 2,2,2,2,2
data 3,3,3,3,3
data 4,4,4,4,4

Login to post a reply

Server time is: 2026-06-12 23:24:37
Your offset time is: 2026-06-12 23:24:37