プレイ日記
bill r10l12
how do you make an ACLS loop without the annoying, constant flickering!?!?
1そうだね
プレイ済み
返信[1]
親投稿
Oscar PwnageBlock
Don't use ACLS in a loop, since it resets everything in concern to graphics it takes much longer. You can use GCLS or CLS, but not ACLS. Also, make sure to have a WAIT or VSYNC in your loop.
4そうだね
プレイ済み
返信[2]
親投稿
Lacks DHaze420
Yeah, Oscar knows best. My lazy way is to put the ACLS loop in its own @blah before the actual loop I want to run. [I usually put my bgmplay there too] But this is most likely the wrong way to do it.
0そうだね
プレイ済み
返信[3]
親投稿
12Me21 12Me21
ACLS should only be used at the start of a program If you want a faster ACLS (still don't use this in a loop), you can do ACLS 1,0,0 FOR I=5 TO 0 STEP -1 GPAGE 0,I GCLS NEXT This won't load the default sprite/BG GRPs, but if you load your own textures then it's fine.
1そうだね
プレイ済み
返信[4]
親投稿
bill r10l12
whats a vsync!?
0そうだね
プレイ済み
返信[5]
親投稿
bill r10l12
i dont use sprites... i dont know how, i just make text games
0そうだね
プレイ済み
返信[6]
親投稿
bill r10l12
its more of an ms. dos style game
0そうだね
プレイ済み
返信[7]
親投稿
V360 TheV360
Just use CLS if it's only text. Also, VSYNC is a version of the WAIT command that takes into account how long ago the previous VSYNC was used. Useful for laggy games.
2そうだね
プレイ済み
返信[8]
親投稿
bill r10l12
can you give me an example of a loop filled with gosubs to run a game?
0そうだね
プレイ済み
返信[9]
親投稿
Oscar PwnageBlock
GOSUBs should NOT fill out a program. In fact, there should be no use for them at all, since user-defined functions exist. Remember, GOTOs and GOSUBs can lead to ugly and unmaintainable program structure.
1そうだね
プレイ済み
返信[10]
親投稿
bill r10l12
WHAT!?!? gotos and gosubs are a critical part of the program!!!!!!!! the program will not function properly without them!!!!!!!
0そうだね
プレイ済み
返信[11]
親投稿
V360 TheV360
Replace GOTO loops with WHILE loops and REPEAT UNTIL loops. Replace GOSUBs with DEF FUNC. Screenshot showing command syntax will be posted in a second.
2そうだね
プレイ済み
返信[12]
親投稿
bill r10l12
im sorry, i didnt get that... can you try to explain it again?
0そうだね
プレイ済み
返信[13]
親投稿
V360 TheV360
Here's the screenshot with the syntax for WHILE, REPEAT UNTIL, and DEF! (DEF is a little more complex, but I'll write a tutorial about that and post it on SBS) GOTO and GOSUB aren't used anymore in programming, so that's why they're not recommended. It's also just a bad coding practice.
2そうだね
プレイ済み
返信[14]
親投稿
bill r10l12
can someone tell me a simple game @loop?
0そうだね
プレイ済み
返信[15]
親投稿
bill r10l12
BAD CODING PRACTICE!? are you tellin me that ive messed myself up this WHOLE TIME!?!?
0そうだね
プレイ済み
返信[16]
親投稿
bill r10l12
ive made a game all the way to 2.5 with goto and @!!! can i keep using it if its just for that game!?
0そうだね
プレイ済み
返信[17]
親投稿
V360 TheV360
No, I even used GOTOs and GOSUBs in SmileBASIC before I found out how to make a program without them. A program with GOTOs will function the same as a program with WHILEs and REPEATs. Also, expanding on what I said earlier, I recommend making a STATE variable that controls what screen you are on in your main loop.(e.g. 0 for title screen, 1 for map screen, 2 for battle screen, 3 for pause screen)
2そうだね
プレイ済み
返信[18]
親投稿
bill r10l12
ALSO: maybe i should stick with what im doing cause im not very good with variables
1そうだね
プレイ済み
返信[19]
親投稿
bill r10l12
what do you think?
0そうだね
プレイ済み
返信[20]
親投稿
Lacks DHaze420
Do what you want to do for what you are doing, but when you start a new project try implementing the things they suggested. That's what I do.
2そうだね
プレイ済み
返信[21]
親投稿
bill r10l12
thanks!
0そうだね
プレイ済み
返信[22]
親投稿
bill r10l12
can someone give me a simple game code? i cant find any made by petitproffessor3d!
0そうだね
プレイ済み
返信[23]
親投稿
Oscar PwnageBlock
The concept of a 'game' is very subjective. Be more specific.
0そうだね
プレイ済み
返信[24]
親投稿
bill r10l12
a shooter game, preferably Stern's Frenzy 1982!
0そうだね
プレイ済み
返信[25]
親投稿
bill r10l12
I SPECIFIED ↑↑↑↑↑↑↑! please respond!
0そうだね
プレイ済み
返信[26]
親投稿
Oscar PwnageBlock
That might be a bit too complicated to start with... Try starting with a game that uses simple logic, like a text adventure.
1そうだね
プレイ済み
返信[27]
親投稿
bill r10l12
i already made a text game... I NEED FRENZY!!!
0そうだね
プレイ済み
返信[28]
親投稿
bill r10l12
i think i can use text for the map, main character (green stickman who's name i cant remember), and evil otto can definately be made with text! after all evil otto is a smiley face!
0そうだね
プレイ済み
返信[29]
親投稿
Oscar PwnageBlock
Perhaps you'd be able to do create a similar game using only the console, but you need to learn how to handle entity maps and objects first. As a start, you should have a little character that moves with the D-pad on the console screen. Try to program it by yourself before asking for help.
1そうだね
プレイ済み
返信[30]
親投稿
bill r10l12
i dont know how to use sprites
0そうだね
プレイ済み
返信[31]
親投稿
bill r10l12
ok i made a d-pad game with the stickman text and square text in 20 minutes! am i ready to make frenzy now!?
0そうだね
プレイ済み
返信[32]
親投稿
bill r10l12
WELL, AM I READY TO MAKE FRENZY OR NOT!?
0そうだね
プレイ済み
返信[33]
親投稿
Oscar PwnageBlock
Well, if you were able to program that, you could probably try starting it. Sure.
2そうだね
プレイ済み
返信[34]
親投稿
bill r10l12
can you give me some instructions?? im a begginer!!
0そうだね
プレイ済み
返信[35]
親投稿
Oscar PwnageBlock
Well, you must start off by understanding the concept of an entity map. These are extremely useful when programming non-text console games. It usually is a 2-dimensional numerical array the size of the console screen, and will hold basic data of the entities on screen.
2そうだね
プレイ済み
返信[36]
親投稿
bill r10l12
oh ok, i didnt understand any of that except “entity” and “array”, i guess im not ready
0そうだね
プレイ済み
返信[37]
親投稿
Oscar PwnageBlock
Everyone must start off somewhere. Don't worry. An entity can mean literally anything. In your game, it can be a wall, an enemy, a laser, or even the player itself. You can represent these as a number in a 2-dimensional plane, assigning a number for each different type of entity. E.g.: 0 can be nothing, 1 can be a wall, 2 can be an enemy, etc.
1そうだね
プレイ済み
返信[38]
親投稿
bill r10l12
can you give me a code example?
0そうだね
プレイ済み