Repository navigation
Expand file tree
/
Copy pathdevlog.txt
More file actions
466 lines (412 loc) · 25.2 KB
/
Copy pathdevlog.txt
File metadata and controls
466 lines (412 loc) · 25.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
Raisins
Samantha Hua
Ruby Friedman
Nada Hameed
pd 7
---------------------
Pokemon
A fun game in which the user can catch pokemon and buy berries to enhance their
chances of catching pokemon!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/////////// Zone of Reflection \\\\\\\\\\\
------------------------------------------
OBSTACLES OVERCOME
Figured out how to catch pokemon and add them to storage
Able to figure out the equation for the pokeball parabola
Parsing a CSV file and putting that info into trainer
Visuals of disappearing images must be overlayed
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
wow we so BOSS bc...
- we learned processing just for this project!
- we spent far more than 10hws on this project, super cool hehe
- we tried to make the graphics for this game as clean as possible
- we went to the cs dojo often, and met almost every single night
UNRESOLVED ISSUES
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
evolution trees are in progress - we have a structure planned and sort of
implemented, but it is not complete
getting pop-up text to remain there for several seconds / delaying animations
there is a weird bug where two pokemon show up in a single encounter. the user
only sees one however but sometimes two get added to their backpack. IT'S SO
FRUSTRATINGGGGGG (peace and love)
font is not loading
raspberry moves after entering shop :(
COOL STUFF LEARNED
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- delay(# milliseconds) => cool method that we can use to include some sort of pause,
but it can't be used to control the timing of an animation. according to the processing
library, this method should only be used to pause scripts
- we learned how to create an object that follows a parabolic curve, though it utilizes
many variables. we used the processing library as a reference, and then modified the code
there to create the curve type that we wanted.
- we learned how to use processing, and it's a tool that we can now add to our hefty belt.
we learned how to implement images, how to use keys to perform different functions/animations,
how to incorporate the mouse, and much more.
- we learned how to parse csv files, and incorporate that in processing; we have our own
little library of pokemon (aka pokedex!), and the pokemon that you catch can be differentiated
between common, uncommon, and rare.
MID-DEVELOPMENT DESIGN CHANGES
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
we changed having pokedex store rarity value of the pokemon to having three
separate csv files for the different levels of rarity bc it makes spawning pokemon
of different rarities easier. (we wanted to have different rates of spawning for
the different levels of rarity)
we eliminated the ArrayList of Items that we planned to have, which we called a
backpack. because a backpack only holds two types of items, berries and pokeballs,
we decided to get rid of the notion of a backpack, and replace it with counters for
berries and pokeballs the user has, and then display those at the top. while this
perhaps is harder to visualize, it's more efficient when it comes to implementation.
we decided to not implement battles with other trainers, due to time constraints.
while this would've implemented stacks, we decided that implementing evolution takes
priority, because this utilizes trees. this is something that we definitely would've
implemented if we had the time.
we removed potions because we did not have enough time T-T
LESSONS LEARNED
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
When planning a project, make sure your goals are realistic for the time given
A good nights sleep really helps with code sometimes (louder for those in the back)
The CSDojo is SUPER DUPER helpful. It's also just a great environment to get down
and dirty and CODEEEEEEE. Special thanks to Sensei Yaying :3, Senpais Faiza :PPPPP,
Gabriel :D and Ruiwen <3333333
A plan is always nice but most of the time the plan has to change
tales of wisdom gained...
||||||||||||||||||||||||||||||||||||||||||
DO NOT underestimate how long code takes, we had unrealistic expectations
and are now sad we didn't have time to implement everything we wanted to have.
At the same time, we did everything we could for this project to succeed.
Learning new things takes a lot of time. Navigating through unchartered territory
is difficult, time-consuming, and at times frustrating. Make space and time to
grow don't rush it, it just creates more pain in the long run.
______ ______ __ __ __ ______ _______
/_____/\ /_____/\ /_/\ /_/\ /_/\ /_____/\ /______/\
\:::_ \ \\::::_\/_\:\ \\ \ \\:\ \ \:::_ \ \\::::__\/__
\:\ \ \ \\:\/___/\\:\ \\ \ \\:\ \ \:\ \ \ \\:\ /____/\
\:\ \ \ \\::___\/_\:\_/.:\ \\:\ \____\:\ \ \ \\:\\_ _\/
\:\/.:| |\:\____/\\ ..::/ / \:\/___/\\:\_\ \ \\:\_\ \ \
\____/_/ \_____\/ \___/_( \_____\/ \_____\/ \_____\/
==============================================================
2022-05-26 (in class)
--------------------------------------------------------------
Ruby :: Created the propro document, completed the showcase section
Nada :: Worked on propro document, completed the extends section
Samantha :: Created the team flag, completed the Solidify section of the propro
==============================================================
2022-05-30 (in class)
--------------------------------------------------------------
Ruby :: Explained how TreeNode should have type Pokemon in the cargo. Proposed that
pokedex should just be a csv file that our program would read.
Nada :: Finished the TreeNode.pde file by referencing the TreeNode.java file we had
previously completed in Homeworks 95-97. Explained how a PriorityQueue could be used
in the pokedex so that the easier to catch Pokemon are in the front of the queue and
have "priority."
Samantha :: Brought up how TreeNode's left and right pointers should be of type
TreeNode instead of type Pokemon. Remembered that we had previously read and processed
csv files and pulled up that code as reference.
All :: Discussed, debated and decided that the rarity should be on a 1,2,3 scale
with 3 being the most rare. The alternative was a 0 to 1 scale which allowed for more
variety in the rarity and would be more scalable. Fleshed out the PriorityQueue option
and discussed how it would it would only be similar to the PriorityQueue in its
separation between the group of data. In the execution of our pokedex, we would simply
have a random double to determine which group we would pick a Pokemon from (easy, med, rare)
and another random double to determine which random Pokemon would be selected. Completed
UML diagrams.
==============================================================
2022-05-31 (in class)
--------------------------------------------------------------
Ruby :: Proposed that we should begin creating a visual tutorial instead of focusing
on the functionality of the program. Suggested the sprite should move like PacMan
where once the sprite goes beyond the boundary of the screen, it should reappear
on the other side.
Nada :: Referenced the processing nuggets created by our classmates and learned how
to load an image. Brought up the processing library to see how to resize the image.
Created the v1 (separate from v1 in the visuals and UI)
Samantha :: Noticed the size of the screen was the wrong proportions for the
background image. Found how to find the dimensions of the background image to set
the screen the right size. Showed the group the remove.bg website which can be
used to remove a background of an image.
All :: Selected the trainer sprite we wanted to use. Picked the background image
we wanted to use. Coded the sprite's movement and worked on the boundaries.
==============================================================
2022-05-31 (CSDojo)
--------------------------------------------------------------
Ruby :: added a few urls to pokedex.csv, worked on further incorporating images in the code.
Nada :: came up with the idea of creating a separate object for the user that's
a trainer, without association with the image; saved us from the crisis of using our images.
Samantha :: Reminded the group that the image for the sprite should be saved within
the repo to be referenced in the driver file.
All: Had a mini crisis because all of our files almost vroom vroomed away. We were
able to resolve all issues. We asked our great Dojo Sensei TRT how we could connect
our visuals to our backend code. She very nicely explained to us and helped us develop the idea
that we should have an object of the type we want and separate it from the visuals. This would
allow us to have a sprite moving on screen and a working Trainer object. The
various Trainer methods would be called when the sprite fills certain requirements.
==============================================================
2022-05-31 (At home)
--------------------------------------------------------------
Ruby :: Added functionality so that the up/down/left/right arrow keys also move
the sprite. Used the processing library to find how to connect the program to the
arrow keys. Started experimenting with a tutorial.
Nada :: Started the flowchart in google docs, discussed ease of user experience
and encouraged the group to simplify the flow.
Samantha :: Consulted piazza for new flowchart software and ended up using draw.io
as a group
All :: Worked on flowchart and talked about user experience in the game.
==============================================================
2022-06-1 (In class)
--------------------------------------------------------------
Ruby :: Continued working on the opening tutorial and worked on creating a button
to close and re-open the tutorial. Added additional functionality to the Woo.pde file.
Nada :: Referenced the processing library to create a visual illusion of text
disappearing on the screen. Refined Trainer.pde to make sure it has all of the
functionality that will be used later on. Completed move() method and started
fight() method.
Samantha :: Went to piazza to check what nuggs have been shared with the class.
Found a great post by TAP about buttons in processing and used that code to guide
our development of the tutorial. Added comments to the code to explain what each
component does.
==============================================================
2022-06-01 (CS Dojo)
--------------------------------------------------------------
Ruby :: was unavailable :(
Nada :: proposed the idea of using a tutorial boolean to determine when that
screen would pop up; found some code for parsing a csv file
Samantha :: went back to v1 to fix player movement error, referenced rumpus
room nuggets; worked on v2 in order to get the tutorial screen to pop up; updated
README.md; added TreeNode class to v3, worked on parsing csv file based on previous
lab/hws; diagrammed and coded parsing of csv file
All :: Good senpai TFH at the Dojo helped us fix player movement; closed v1, and
v2 functionality (aside from visual aspects); updated v3 so that it compiles and runs.
Sensei YL provided sage advice regarding certain methods and their return statements. We
believe that we are able to properly parse the csv file and create corresponding Pokemon.
There are still edits to be made, especially when we consider the implementation of trees/
evolution.
==============================================================
2022-06-01 (At home)
--------------------------------------------------------------
Ruby :: Added all of the png files of our Pokemon sprite images into
the csv file and assets folder
Nada :: Created the assets folder in v3. Created test cases for our evolution
tree algo.
Samantha :: Proposed the idea that while reading and parsing through the csv file,
the program should create Pokemon objects to be passed into a TreeNode constructor
so that the TreeNodes will eventually contain Pokemon cargo.
All :: Closed out v2 because we decided the tutorial was finished for now. We will
most likely revisit it later. Planned out how to implement evolutions in our pokedex.
==============================================================
2022-06-02 (in class)
--------------------------------------------------------------
Ruby :: made piazza post with a helpful tidbit regarding processing that could perhaps
save the projects and lives of other thinkeren; created String array of Parent Tokens
Nada :: brought TRF up to speed. contributed to the development of the csv reading
and processing algo.
Samantha :: brought TRF up to speed. diagrammed the parsing of the csv file. created
test cases to trace the evolution tree from csv file data algo.
All :: reviewed the code we have in place for v3 for parsing the csv file, started
implementing evolution into pokedex; discussed modifications to csv to have variables accounting
for number of children and number of evolutions; edited parsing code
==============================================================
2022-06-02 (at home)
--------------------------------------------------------------
Ruby :: Proposed the idea that wallet should be an instance variable within Woo
instead of Trainer. Created the idea that all methods involving a sort of coin
exchange would require the passing through of the value of wallet.
Nada :: Picked out a coin image and added it to the assets folder. Downloaded the
new font and incorporated it into the code.
Samantha :: Brought up scenarios where wallet being in Woo might create problems.
Thought about new ratio for nothing/catch/fight when the player is moving. Proposed
that the ratio should be around 6:3:1
All :: Closed out v3. Picked out a font for our game (Avenir-Book). Implemented
the font and referenced the processing library to learn about how to do so. Created
a coin icon and a wallet tracker that updates with the user's movement.
==============================================================
2022-06-03 (in class)
--------------------------------------------------------------
Ruby :: proposed that there be separate csv files for the different levels of
rarity in Pokemon. Sorted the Pokemon by rarity and created 3 new csv files with
the respective Pokemon
Nada :: had an exciting english guest speaker event and could not attend cs class
womp womp
Samantha :: finished the uml diagrams to show their relationships with one another.
used one of the websites for flowcharts + diagrams suggested in a piazza post (ty TGT)
and updated the instance variables + methods in the diagrams to reflect the
changes in our code
==============================================================
2022-06-04 (at home)
--------------------------------------------------------------
Ruby :: started reading and processing the separate csv files in the Trainer
method. Realized that having an extra blank line in the csv file was the reason
the code kept breaking.
Nada :: was not available to attend
Samantha :: put the uml diagrams into the repo. checked that the flowchart was
up to date (it was). Noticed that the program took a long time to load and
advocated for a prioritization on run time efficiency. Noticed that the images for
the Pokemon weren't loading because there was a space before the url link in the csv
file.
All :: Worked through an error in the process of reading the csv file.
==============================================================
2022-06-05 (at home)
--------------------------------------------------------------
Ruby :: Re-sized every pokemon png image, created a catch screen
and placed the pokemon and player sprite on the ground. Was able to
start encountering pokemon.
Nada :: not available
Samantha :: not available
==============================================================
2022-06-05 (at home)
--------------------------------------------------------------
Ruby :: Brought TNH and TSH up to speed. Worked on curve of ballThrow. Came up
with boolean thrown. Came up with idea of creating a second set of variables for
ballThrow.
Nada :: Found and added pokeball image, created ballThrow() method. Worked
on curve of ballThrow. Implemented thrown variable.
Samantha :: Found a tutorial on the processing library about how to move objects
on a curved line. Brought TNH up to speed.
All :: Followed the tutorial to implement a parabolic curve to the pokeball's
movement. Worked on Catch() method so that it would only happen once. Discussed
whether the pokeball animation should be in Woo or in Trainer
==============================================================
2022-06-05 (at home)
--------------------------------------------------------------
Ruby :: not available
Nada :: not available
Samantha :: Worked out the curve for the pokeball animation. Removed redundant code.
==============================================================
2022-06-06 (in class)
--------------------------------------------------------------
Ruby :: did some math to figure out the curve. pulled up desmos to demonstrate
how the curve shifts should work
Nada :: edited the readme, contributed to the discussion.
Samantha :: brought TRF and TNH up to speed on ball curve. finished UML diagrams
with the correct arrow types.
All :: worked on adjusting exponents/vars to create a parabolic curve, and successfully
did so.
==============================================================
2022-06-06 (at home)
--------------------------------------------------------------
Ruby :: Suggested we remove potions in our game because of time purposes.
Guided TNH through editing the background image for our store
Nada :: Picked out a lil shop image. Edited the dimensions of the background image
for our store.
Samantha :: Brought up the discussion about how the user would exit with the shop
and how we should implement the exit. Came up with the idea to place the items on
the little stools in the store.
All :: We started creating the shop and decided it would be a separate screen where
the user would click on what they wanted to buy to purchase it. Picked out the
location on the screen where our shop would reside.
==============================================================
2022-06-07 (in... another class)
--------------------------------------------------------------
Ruby :: not available
Nada :: added mouseClicked() method to Woo; added functionality so that in
the shop, if the user clicks on the berry, a berry is added to the backpack,
and if they click on the pokeball, a pokeball is added to the backpack. Both also
have their own lil popup screen, but the screen only appears when you click (so
for a brief second)
Samantha :: not available
==============================================================
2022-06-07 (in class)
--------------------------------------------------------------
Ruby :: Decided ballThrow() should return a float instead of a boolean so that the
image of the Pokeball would only be removed when the animation was completely
done. Found an issue where the wallet could have a negative number of coins. (debt
is a big problem in the world and we should PROTECT our players. (no debt allowed))
proposed that the backpack be removed and in its place we have counters for
berries and pokeballs so that the user can constantly see how many of each they have
Nada :: Brought TSH and TRF up to speed on what she did. Noticed an if statement
was missing which is why the pokeball animation was running out of turn tsk tsk
Samantha :: Researched how to remove an image in processing. Came to the conclusion
that other images simply have to layer over the one you are trying to remove.
Noticed that there was a bug in the code where the pokeball animation was running
without pressing the p key. Was concerned that removing the backpack would make
the program less complex but agreed with Ruby's idea to create counters instead of
a backpack because of our time constraints.
All :: Established the prices of berries and pokeballs. started working on printing
the contents of the backpack. debated whether backpack inst var should exist and
how it should be used to display the number of berries and pokeballs the player
has. Decided that backpack would be removed and instead we have counters.
==============================================================
2022-06-07 (CS Dojo)
--------------------------------------------------------------
Ruby :: not available
Nada :: Proposed that we should change the conditions for the tutorial popping up.
instead of pressing t to open the tutorial and then pressing x to close it, the
player would just press and hold t to see the tutorial. once they let go, the
tutorial would close. Referenced an old project she had worked on to use as the
basis for our keyReleased() code. Changed the rates of the user finding a wild
pokemon and battling another trainer. Implemented a button in the catch
screen so that the user can flee the pokemon. Encountered a bug where the berry image
moves after entering the shop. worked on, yelled at, completely frustrated with the
visuals for the counters. but we're continuing this journey because in our hearts
we have a lot of peace and love.
Samantha :: Referenced the processing library to see how to implement keyReleased()
Found out why the tutorial wasn't showing up in the catch screen and the shop
(the draw function was placing the other elements like the background and sprite
over the tutorial so we never got to see it) Worked on updating the popup confirmation
that the user can see after they purchase something in the store so that it stays
on the screen for a longer time. Researched how to use time methods to show the
popup animation for a longer amount of time. Experimented with different combinations
of loops to have the popup show up for longer
All :: worked in v10 to add more functionality to the purchasing action in the shop
and started creating the counters for berry and pokeballs. New button to flee in
catch screen.
==============================================================
2022-06-07 (at home)
--------------------------------------------------------------
Ruby :: Came up with the idea to use a sort of pause/hold method to stop the
screen when the popup in shop is displayed; fixed the issue of changing ball count
when catching. Suggested that the counters be displayed in all of the backgrounds.
Suggested different places to place the delay method so that the animation would
run properly (did not end up resolving this issue but we just moved on because
of time)
Nada :: Fixed up the graphics of the berry and pokeball counter, edited readme,
added to tutorial
Samantha :: Consulted the processing library and found the delay() method. ran code
from the wrong version---- but it's ok....... :), moved ball and berry counts to
the Trainer class. Suggested moving berry and pokeball counters to the Trainer
class because that's more of a Trainer responsibility than a Woo/driver file
responsibility. Suggested that the catchPct should be a local variable in the
catch method because it is not needed anywhere else.
All :: Started working on berry throw. Decided on the catchPct for the various
level of pokemon.
==============================================================
2022-06-08 (in class)
--------------------------------------------------------------
Ruby :: proposed making the pokemon disappear instead of the pokeball.
Nada :: proposed and created second set of variables for berryThrow() to differentiate
from ballThrow()
Samantha :: modified berryThrow so it WORKS, added limits so that you can only throw
the number of berries you have. Noticed that the berry and pokeball animation weren't
working because they both depended on the same set of variables.
All :: changed ballThrow and berryThrow to boolean methods, got the pokeball and berry
to disappear after using them, with the counts updated.
==============================================================
2022-06-08 (at home)
--------------------------------------------------------------
Ruby :: created booleans berryThrow and pokeThrow in Trainer class, worked on catch
percentage so it works
Nada :: updated tutorial and graphics and readme; started printStorage method in Trainer
class, modeled after tutorial method ; printStorage currently constantly prints out
the name of the pokemon, because it's called in the draw method, which is problematic
because that means that the first pokemon's name will constantly be printed out (this
method is called by the g key)
Samantha :: updated flowchart, discussed the nature of catch percentage. unfortunately,
had to concede to catchPct being a inst var
All :: worked on catch percentage and the utilization of the catchPct in the
catch method to include the usage of berries
==============================================================
2022-06-09 (at home)
--------------------------------------------------------------
Ruby :: worked on the catch method, got it to WORK, so pokemon could be properly caught
and added to player's storage. created pop-up for when one catches a pokemon, implemented
the notion of a pokemon running away before you could catch it, updated readme and questions
the top of the devlog.
Nada :: worked on getting exit button to work in the shop, attempted to reconstruct the
code around the inShop boolean (cough and failed and then SUCCEEDED), updated readme and
things learned and developments in devlog
Samantha :: was printing out variables mid development and thought that there was
an error with random(1) but the real problem was just that we had another print
statement we forgot about. the strings were concatenating which made us believe
we had an error in our program, updated flowchart and devlog qs
All :: got catch method to work more or less, and got the exit button to work in the shop,
decided what we would implement in our final version of the game.
==============================================================