gHan2000 Posted October 6, 2010 Share Posted October 6, 2010 (edited) I have coded a prototype of a game called CubeWorld. I don't know how to install bB, so I am typing the code in a word processor. If you don't know what CubeWorld is, it's a popular online game programmed in a language called Scratch. The gameplay is simple; your a cube (With a FACE) and you use ^, < and > on you keyboard to try and get a yellow dot. What I have programmed so far is the cube and the level. In this prototype the cube just floats in the corner of the screen. They sky is supposed to be blue and the grass is supposed to be green. (Duh) If you own batari Basic, copy and paste this code for me: playfeild: ............................... ............................... ............................... ............................... ............................... ............................... ............................... ............................... ...............XXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX end COLUBK = $E9 COLUBF = $63 player0x=0;player0x=0 NUSIZO = 16 sprites player0: %11111110 %1000010 %1001010 %1000010 %1000010 %1011110 %1000010 %11111110 end draw_loop drawscreen goto draw_loop goto sprites Thank you for your help. If you own Mac OS X batari Basic, please put it on Mega Upload or MediaFire for me please. I still need to work on: -Gravity -Controls -Multiple levels -Enemies -Music -Colored Characters Edited October 6, 2010 by gHan2000 Quote Link to comment Share on other sites More sharing options...
+Gemintronic Posted October 6, 2010 Share Posted October 6, 2010 I could compile your code once. But, if I find you the links to how to do it yourself then YOU can compile your games hundreds, maybe thousands of times more!! I learned how by following the instructions in the links below. How to install Batari BASIC: http://bataribasic.com/install.html Use VisualbB to edit and compile your code: http://www.atariage.com/forums/topic/123849-visual-bb-1-0-a-new-ide-for-batari-basic/ This is a VERY good video on how to start making games: 1 Quote Link to comment Share on other sites More sharing options...
Galaxian Posted October 6, 2010 Share Posted October 6, 2010 I have coded a prototype of a game called CubeWorld. I don't know how to install bB, so I am typing the code in a word processor. If you don't know what CubeWorld is, it's a popular online game programmed in a language called Scratch. The gameplay is simple; your a cube (With a FACE) and you use ^, < and > on you keyboard to try and get a yellow dot. What I have programmed so far is the cube and the level. In this prototype the cube just floats in the corner of the screen. They sky is supposed to be blue and the grass is supposed to be green. (Duh) If you own batari Basic, copy and paste this code for me: playfeild: ............................... ............................... ............................... ............................... ............................... ............................... ............................... ............................... ...............XXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX end COLUBK = $E9 COLUBF = $63 player0x=0;player0x=0 NUSIZO = 16 sprites player0: %11111110 %1000010 %1001010 %1000010 %1000010 %1011110 %1000010 %11111110 end draw_loop drawscreen goto draw_loop goto sprites Thank you for your help. If you own Mac OS X batari Basic, please put it on Mega Upload or MediaFire for me please. I still need to work on: -Gravity -Controls -Multiple levels -Enemies -Music -Colored Characters Sorry to tell you, but your syntax is wrong. At first glance I see misspellings, your playfield isn't aligned, some of you colouring commands are wrong and a couple other small things. I'm truly sorry, I know how it feels... I'll try and fix it for you then compile it if you like! Regards, Galaxian Quote Link to comment Share on other sites More sharing options...
Galaxian Posted October 6, 2010 Share Posted October 6, 2010 So, I have compiled it and fixed the errors that I can and this is what I have come up with: cube.bas.bin Cube.bas 1 Quote Link to comment Share on other sites More sharing options...
+Gemintronic Posted October 6, 2010 Share Posted October 6, 2010 Good work Galaxian! I think he might still need to do the set romsize [whatever] and set kernel_options [whatever] thing at the very top. Also, the player0 color doesn't get set. COLUP0 must be set inside the main loop because after the drawscreen it gets blanked out! Quote Link to comment Share on other sites More sharing options...
Galaxian Posted October 6, 2010 Share Posted October 6, 2010 (edited) Good work Galaxian! I think he might still need to do the set romsize [whatever] and set kernel_options [whatever] thing at the very top. Also, the player0 color doesn't get set. COLUP0 must be set inside the main loop because after the drawscreen it gets blanked out! Thank you for your praise! Without your invaluable help I could never have helped this fine developer! Also, here is the NEW, REVISED version! Only problem is, is that player0 doesn't show up (among other things) and I don't know how to set romsize 4K or kernal options... Anyway, here they are: cube.bas.bin Cube.bas Edited October 6, 2010 by Galaxian Quote Link to comment Share on other sites More sharing options...
pitfall_jerry Posted October 6, 2010 Share Posted October 6, 2010 Good work Galaxian! I think he might still need to do the set romsize [whatever] and set kernel_options [whatever] thing at the very top. Also, the player0 color doesn't get set. COLUP0 must be set inside the main loop because after the drawscreen it gets blanked out! Thank you for your praise! Without your invaluable help I could never have helped the fine developer! Also, here is the NEW, REVISED version! Only problem is, is that player0 doesn't show up (among other things) and I don't know how to set romsize 4K or kernal options... Anyway, here they are: I fixed your code to display the ground and player. sprites playfield: ................................ ................................ ................................ ................................ ................................ ................................ ................................ ................................ ................................ ......XXXXXXXXXX................ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX end COLUBK=$9E COLUPF=$C4 player0x = 25 : player0y = 25 player0: %11111110 %10000100 %10010100 %10000100 %10000100 %10111100 %10000100 %11111110 end COLUP0 = 14 drawscreen Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.