16
Games / Tic Tac Toe Rings by Fellippe Heitor
« on: May 24, 2020, 05:40:12 am »
Tic Tac Toe Rings
Author: @FellippeHeitor
Source: qb64.org Forum
URL: https://www.qb64.org/forum/index.php?topic=2368.0
Version: 1
Tags: [Graphics], [Skill], [Addictive]
Description:
I recently found the game Rings by a studio called Gamezaur. This is my attempt at recreating it.
I won't elaborate on the gameplay here. Keep the concept of "Tic Tac Toe" in mind - except it's single-player mode - and you should master it in no time.
https://github.com/FellippeHeitor/TicTacToeRing/archive/master.zip
Author: @FellippeHeitor
Source: qb64.org Forum
URL: https://www.qb64.org/forum/index.php?topic=2368.0
Version: 1
Tags: [Graphics], [Skill], [Addictive]
Description:
I recently found the game Rings by a studio called Gamezaur. This is my attempt at recreating it.
I won't elaborate on the gameplay here. Keep the concept of "Tic Tac Toe" in mind - except it's single-player mode - and you should master it in no time.
Code: QB64: [Select]
- $EXEICON:'./assets/images/tttr.ico'
- $VERSIONINFO:CompanyName=Fellippe Heitor
- $VERSIONINFO:ProductName=Tic Tac Toe Ring
- $VERSIONINFO:InternalName=tictactoering.bas
- 'Required shared variables for printLarge
- initializeCharSetPrintLarge
- TYPE object
- SCREEN canvas
- _DELAY .1
- _TITLE "Tic Tac Toe Ring"
- DIM emptySet$
- peg(0).set = emptySet$
- 'set pegs positions
- setPegs
- 'set combo messages
- setComboMessages
- setRingColors
- generateRingImages
- generateCrownIcon
- generateBG
- 'flash warning
- music = true
- sfx = true
- loadGame
- 'load sounds
- j = TIMER
- mainTrackVolume = 1
- RESTORE comboSoundFiles
- READ a$
- comboSoundFiles:
- 'if loading sounds took more than 2 seconds, no need to pause
- doIntro
- 'add divs to bg
- _DEST bg
- 'game
- animation(0).duration = .25 'board flash
- animation(i).duration = .5 'matches
- animation(6).duration = 1 'new set spawn
- animation(7).duration = 1 'combo info
- multiplier = 1
- visibleScore = score
- visibleHighScore = highscore
- DO 'main game loop
- 'read mouse data
- 'read keyboard
- keyb = _KEYHIT
- mainTrackVolume = mainTrackVolume - .05
- 'redraw board
- 'print osd
- createMainScreenButtons
- drawPegs
- generateNewSets
- prevbt = currentButton
- 'drag?
- 'are we beginning to drag a ring or set of rings?
- dragging = 0
- dragging = i
- mouseDown = true
- enterSettings = true
- pauseGame = true
- 'place rings
- placed = false
- 'check that the chosen peg can hold the current set of rings
- placed = true
- placed = false
- peg(dragging).set = emptySet$
- 'prepare backup copies for deletion tagging
- del(j) = peg(j)
- 'check matches
- totalMatches = 0
- previousScore = score
- 'look for 3 same-color rings on peg(i) --> ((o))
- score = score + 3 * multiplier
- animation(5).x = peg(i).x
- animation(5).y = peg(i).y
- del(i).set = emptySet$
- addParticles peg(i).x, peg(i).y, 70, c(r(1))
- totalMatches = totalMatches + 1
- 'look for line matches |, -, /, \
- checks = 3
- r(1) = 1
- r(2) = 4
- r(3) = 7
- nextPeg(1) = 1
- nextPeg(2) = 2
- checks = 3
- r(1) = 1
- r(2) = 2
- r(3) = 3
- nextPeg(1) = 3
- nextPeg(2) = 6
- checks = 1
- r(1) = 1
- nextPeg(1) = 4
- nextPeg(2) = 8
- checks = 1
- r(1) = 3
- nextPeg(1) = 2
- nextPeg(2) = 4
- 'look at each ring on the first peg of each row
- scored = false
- 'match! clear all rings of the same color in this group of pegs
- score = score + multiplier
- scored = true
- totalMatches = totalMatches + 1
- animation(m).x = peg(r(i)).x
- animation(m).y = peg(r(i)).y
- 'perform deletion, if any items were marked = MKI$(-1)
- peg(j) = del(j)
- multiplier = multiplier + 1
- animation(8).xa = score - previousScore
- animation(8).duration = 5
- multiplier = 1
- mouseDown = false
- dragging = 0
- hoverHighlight
- checkAvailableMoves
- drawRings
- doAnimations
- updateScore
- updateParticles
- 'update display
- settingsScreen
- enterSettings = false
- keyb = -27
- pauseGame = false
- 'limit fps
- _LIMIT 60
- userQuit = _EXIT
- saveGame
- endScreen
- SUB setPegs
- SHARED emptySet$
- spacing = 6
- j = j + 1
- peg(i).set = emptySet$
- SUB setComboMessages
- RESTORE megaComboMsgs
- megaComboMsgs:
- SUB setRingColors
- SUB generateRingImages
- SUB generateCrownIcon
- RESTORE crownIconData
- _DEST crownIcon
- READ px
- CASE 1
- CASE 2
- crownIconData:
- SUB generateBG
- _DEST bg
- SUB doIntro
- introTimer = TIMER
- introRings(i).xa = introRings(i).xa + .01
- introRings(i).r = introRings(i).r + introRings(i).xv
- updateParticles
- _LIMIT 60
- SUB drawPegs
- SUB generateNewSets
- SHARED emptySet$
- 'new sets must be generated according to
- 'current board's available positions
- level = level + 1
- pegsUsed = ""
- 'reset this peg
- peg(i).set = emptySet$
- 'choose an existing peg randomly
- thisPeg = newPeg
- 'found a peg with an empty slot or more
- thisPeg = thisPeg + 1
- 'full circle
- thisPeg = 0
- 'store the chosen peg's id
- 'generate a set, with random colors
- SUB doAnimations
- CircleFill animation(i).x, animation(i).y, k, _RGB32(animation(i).r, animation(i).g, animation(i).b, 20)
- animation(8).y = lerp(animation(8).y, 45, .06)
- animation(8).start = 0
- a = map(a, 0, animation(8).ya, 0, 1024)
- SUB saveGame
- signature = "tttring"
- CLOSE #1
- SUB loadGame
- CLOSE #1
- gameOver = false
- score = 0
- level = 0
- 'user just upgraded from first versions?
- 'retrieve their highscore and kill old file
- CLOSE #1
- gameOver = false
- score = 0
- level = 0
- CLOSE #1
- KILL "tictactoering.score"
- CLOSE #1
- addedP = 0: p = 0
- p = p + 1
- addedP = addedP + 1
- particle(p).state = true
- particle(p).x = x
- particle(p).y = y
- SUB updateScore
- visibleScore = visibleScore + 1
- lastScoreUpdate = TIMER
- visibleHighScore = visibleHighScore + 1
- lastHighScoreUpdate = TIMER
- SUB updateParticles
- particle(i).xv = particle(i).xv + particle(i).xa
- particle(i).x = particle(i).x + particle(i).xv
- particle(i).yv = particle(i).yv + particle(i).ya + gravity
- particle(i).y = particle(i).y + particle(i).yv
- particle(i).state = false
- SUB hoverHighlight
- SHARED emptySet$
- k = 0
- halo = 40
- halo = 25
- halo = 12
- highLit = i
- glow = 10
- glowStep = .2
- glow = glow + glowStep
- k = k + .8
- SUB checkAvailableMoves
- SHARED emptySet$
- gameOver = true 'glass is half empty; consider no more moves
- 'can this set fit the board?
- placed = true
- placed = false
- 'is board full?
- 'that means we used all sets and no matches were found = game over
- DIM board$
- board$ = ""
- board$ = board$ + peg(i).set
- SUB drawRings
- x = _MOUSEX
- y = _MOUSEY
- x = peg(i).x
- y = peg(i).y
- x0 = R
- y0 = 0
- e = -R
- y0 = y0 + 1
- e = e + 2 * y0
- x0 = x0 - 1
- e = e - 2 * x0
- map! = ((value! - minRange!) / (maxRange! - minRange!)) * (newMaxRange! - newMinRange!) + newMinRange!
- lerp! = (mult * amt!) * (stp! - start!) + start!
- LINE ((x - fontSize) + j * fontSize + ((c - 1) * (fontSize * 8)), (y - fontSize) + i * fontSize)-STEP(fontSize - 1, fontSize - 1), _DEFAULTCOLOR, BF
- LINE ((x - fontSize) + j * fontSize + ((c - 1) * (fontSize * 8)), (y - fontSize) + i * fontSize)-STEP(fontSize - 1, fontSize - 1), _BACKGROUNDCOLOR, BF
- fontHeightLarge = fontSize * 16
- fontWidthLarge = fontSize * 8
- SUB initializeCharSetPrintLarge
- RESTORE charSet8x16
- charSet8x16:
- DATA 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-1,-1,-1,-1,-1,-1,0,-1,0,0,0,0,0,0,-1,-1,0,-1,0,0,-1,0,-1,-1,0,0,0,0,0,0,-1,-1,0,0,0,0,0,0,-1,-1,0,-1,-1,-1,-1,0,-1,-1,0,0,-1,-1,0,0,-1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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
- j = TIMER
- _LIMIT 30
- SUB endScreen
- 'flash and screenshot
- zoomOut = 200
- updateParticles
- _LIMIT 60
- m$(1) = "Game Over"
- k = 4
- 'end screen buttons
- currentButton = 0
- totalButtons = 2
- button(i).x = startX
- startX = startX + button(i).w
- caption(1) = "Restart"
- caption(2) = "Quit"
- caption(1) = "Continue"
- caption(2) = "Restart"
- mainTrackVolume = mainTrackVolume + .05
- keyb = _KEYHIT
- mx = _MOUSEX
- my = _MOUSEY
- doButtons
- checkButtons
- prevbt = currentButton
- currentButton = 1
- currentButton = 2
- mouseDown = true
- mouseDown = true
- CASE 1
- keyb = -121
- CASE 2
- keyb = -110
- mouseDown = false
- updateParticles
- userQuit = _EXIT
- _LIMIT 30
- gameOver = false
- score = 0
- visibleScore = 0
- level = 0
- peg(i).set = emptySet$
- 'bring screenshot back to front
- zoomOut = 200
- _LIMIT 60
- _FREEIMAGE screenshot
- _FREEIMAGE screenshot2
- currentButton = 0
- SUB settingsScreen
- 'flash and screenshot
- zoomOut = 400
- updateParticles
- _LIMIT 60
- 'settings buttons
- currentButton = 0
- totalButtons = 4
- caption(3) = "Return to game"
- button(i).y = startY
- startY = startY + button(i).h
- button(4).x = 0
- button(4).w = screenshotSize
- button(4).h = screenshotSize
- mx = _MOUSEX
- my = _MOUSEY
- keyb = _KEYHIT
- userQuit = _EXIT
- caption(1) = "Music: ON"
- caption(1) = "Music: OFF"
- caption(2) = "Sound effects: ON"
- caption(2) = "Sound effects: OFF"
- doButtons
- checkButtons
- prevbt = currentButton
- currentButton = currentButton - 1
- currentButton = currentButton + 1
- mouseDown = true
- mx = button(currentButton).x + button(currentButton).w / 2
- my = button(currentButton).y + button(currentButton).h / 2
- mouseDown = true
- CASE 1
- music = NOT music
- CASE 2
- sfx = NOT sfx
- mouseDown = false
- 'game title
- updateParticles
- _LIMIT 30
- 'bring screenshot back to front
- zoomOut = 200
- _LIMIT 60
- _FREEIMAGE screenshot
- currentButton = 0
- SUB createMainScreenButtons
- totalButtons = 1
- caption(1) = "Settings"
- 'caption(2) = CHR$(221) + CHR$(222)
- 'button(2).h = _FONTHEIGHT + 10
- 'button(2).w = _PRINTWIDTH(caption(2) + " ")
- 'button(2).y = 0
- 'button(2).x = button(1).x - button(2).w
- SUB doButtons
- shadowDepth = 2
- _PRINTSTRING (button(i).x + (button(i).w - _PRINTWIDTH(caption(i))) / 2 + shadowDepth, button(i).y + button(i).h / 2 - _FONTHEIGHT / 2 + shadowDepth), caption(i)
- _PRINTSTRING (button(i).x + (button(i).w - _PRINTWIDTH(caption(i))) / 2, button(i).y + button(i).h / 2 - _FONTHEIGHT / 2), caption(i)
- SUB checkButtons
- lastMouseX = _MOUSEX
- lastMouseY = _MOUSEY
- currentButton = 0
- currentButton = i
https://github.com/FellippeHeitor/TicTacToeRing/archive/master.zip